Skip to content

Scope admin app tokens to least-privilege permissions - #80

Open
rgarcia wants to merge 2 commits into
mainfrom
hypeship/scope-admin-app-tokens
Open

rgarcia wants to merge 2 commits into
mainfrom
hypeship/scope-admin-app-tokens

Conversation

@rgarcia

@rgarcia rgarcia commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

actions/create-github-app-token called without any permission-* inputs mints a token carrying every permission the app installation holds, including administration and workflows write. This PR requests only what each token is used for downstream. Repository scope is unchanged unless noted.

Workflow Job Before After Why
publish-release.yml goreleaser all app permissions on homebrew-tap contents: write used only as HOMEBREW_TAP_GITHUB_TOKEN for GoReleaser's formula push to kernel/homebrew-tap

actionlint: no findings. Not exercised by a tag push.

Action version: permission inputs only work from v2.0.4

actions/create-github-app-token releases before v2.0.4, v1.12.0 included, read INPUT_PERMISSION_* environment variables, but the Actions runner exports INPUT_PERMISSION-*. The permission-* inputs are silently ignored there, and the token still gets every permission the app holds. This PR moves the admin-app token steps to v3.3.0, the version already used elsewhere in the org, and updates actions.lock, so the permissions above actually take effect. gh actions-lock --no-fix reports the same results as on main.

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