Skip to content

Make admin app token permission inputs take effect - #599

Open
rgarcia wants to merge 1 commit into
mainfrom
hypeship/scope-admin-app-tokens
Open

rgarcia wants to merge 1 commit into
mainfrom
hypeship/scope-admin-app-tokens

Conversation

@rgarcia

@rgarcia rgarcia commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

actions/create-github-app-token only honors permission-* inputs from v2.0.4 on. Earlier releases, v1.12.0 included, look for INPUT_PERMISSION_* environment variables, but the Actions runner exports INPUT_PERMISSION-*. The inputs are silently ignored, and the token gets every permission the org admin app holds, including administration and workflows write. You can check this in lib/get-permissions-from-inputs.js at v1.12.0 and in the v2.0.4 fix.

This PR moves this repo's admin-app token steps to v3.3.0 and updates actions.lock, so the permission inputs these workflows already declare take effect. Repository scope is unchanged.

Workflow Token Permissions now enforced
deploy-staging.yml infra-token actions: write on infra
stlc-generate.yml sdk-token (generate) contents, pull-requests, workflows: write on the SDK repos
stlc-generate.yml seal-token contents, pull-requests: write on this repo
stlc-generate.yml sdk-token (cleanup-preview) contents: write on the staging SDK repos

actionlint: same single pre-existing finding before and after. gh actions-lock --no-fix reports the same results as on main.

@github-actions

Copy link
Copy Markdown
-->

✱ stlc build

✅ go code · compare

Your SDK build was successful.

generate ✅ → bootstrap ✅ → format ✅

116 files generated at 56a609a (pushed)

go get github.com/kernel/hypeman-go-staging@56a609a1dd310abd8a3f629e3cea74c3e1cadfc9
✅ python code · compare

Your SDK build was successful.

generate ✅ → bootstrap ✅ → format ✅

233 files generated at 0dbb394 (pushed)

✅ typescript code · compare

Your SDK build was successful.

generate ✅ → bootstrap ✅ → format ✅

138 files generated at 2c84df4 (pushed)

Diagnostics: ❗ 0 new / 1 total error, 💡 0 new / 5 total note
LevelCodeMessageTargets
Build metadata
Buildbd_76p9T7Wb-good-moose
Timestamp2026-11-22T20:00:08.709Z
stlc8413509
Spec hash9efe0f4156f2
Config hash659c3687c3f0

This comment is auto-generated by stlc and is kept up to date as you push.
If you push new commits, re-run this workflow to update this comment.
Last updated: 2026-11-22 20:00:32 UTC

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant