Skip to content

Make admin app token permission inputs take effect - #599

Merged
rgarcia merged 2 commits into
mainfrom
hypeship/scope-admin-app-tokens
Nov 23, 2026
Merged

rgarcia merged 2 commits 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

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
-->

✱ stlc build

✅ go code · compare

Your SDK build was successful.

generate ✅ → bootstrap ✅ → format ✅

116 files generated at d1c6a8d (pushed)

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

Your SDK build was successful.

generate ✅ → bootstrap ✅ → format ✅

233 files generated at 30af077 (pushed)

✅ typescript code · compare

Your SDK build was successful.

generate ✅ → bootstrap ✅ → format ✅

138 files generated at b957f0c (pushed)

Diagnostics: ❗ 0 new / 1 total error, 💡 0 new / 5 total note
LevelCodeMessageTargets
Build metadata
Buildbd_76pRZyhS-ovoid-pulley
Timestamp2026-11-23T16:49:31.788Z
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-23 16:50:02 UTC

@rgarcia
rgarcia requested a review from yummybomb November 23, 2026 15:02

@yummybomb yummybomb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The action now honors the declared permissions, and the lockfile matches the upstream commit. Non-blocking: only SDK integration-test runs that open PRs need pull-requests: write; omit it on other runs.

@rgarcia
rgarcia force-pushed the hypeship/scope-admin-app-tokens branch from 84ed5b5 to dc79f06 Compare November 23, 2026 16:45
@rgarcia
rgarcia merged commit a61d91f into main Nov 23, 2026
17 of 18 checks passed
@rgarcia
rgarcia deleted the hypeship/scope-admin-app-tokens branch November 23, 2026 17:02
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.

2 participants