Skip to content

Give the PR environment prune token Administration write - #70

Merged
hamishfagg merged 1 commit into
mainfrom
fix/prune-token-administration
Sep 29, 2026
Merged

hamishfagg merged 1 commit into
mainfrom
fix/prune-token-administration

Conversation

@hamishfagg

Copy link
Copy Markdown
Contributor

The first real run of prune-pr-environments.yml got HTTP 403 Resource not accessible by integration on every environment delete. Its token held Environments write, which GitHub's permission tables list as enough for that endpoint, but the endpoint refused it. The release-train installation already has Administration write, so this only stops the token being downscoped past it.

This is not verified yet: only a real run with the App token can confirm it. After merge, run the workflow without dry_run and check for deleted lines.

🤖 Generated with Claude Code

The first real run got HTTP 403 on every environment delete with a token
holding Environments write. The release-train installation already has
Administration write; the token was downscoped past it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hamishfagg
hamishfagg requested a review from a team September 29, 2026 01:29
@hamishfagg
hamishfagg merged commit 331c0be into main Sep 29, 2026
6 checks passed
@hamishfagg
hamishfagg deleted the fix/prune-token-administration branch September 29, 2026 01:30
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