Repository navigation
PFM-ISSUE-34282 - Use GITHUB_TOKEN with scoped permissions for in-repo tag and release - #189
Merged
vladimir-arsov merged 9 commits intoNov 17, 2026
Conversation
Karthikyadav123
previously approved these changes
Nov 11, 2026
Base automatically changed from
improvement/PFM-ISSUE-34283-Consolidate-the-FE-2-0-release-flow-into-a-master
to
master
November 16, 2026 08:17
vladimir-arsov
dismissed
Karthikyadav123’s stale review
November 16, 2026 08:17
The base branch was changed.
Research on moving the FE release flow's tag push from the shared user PAT to GITHUB_TOKEN with job-scoped permissions, and the live test plan for clone-cplace-fe (release on release/26.4, main CI and forced release flow on main, recovery and permission-ceiling cases). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he PAT Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vladimir-arsov
force-pushed
the
improvement/PFM-ISSUE-34282-Use-GITHUB_TOKEN-with-scoped-permissions-for
branch
from
November 16, 2026 11:15
9acc313 to
8adb624
Compare
vladimir-arsov
marked this pull request as ready for review
November 16, 2026 11:42
vladimir-arsov
requested review from
alekhya-cplace,
senthanal and
slaven3kopic
as code owners
November 16, 2026 11:42
| required: true | ||
| GIT_USER_TOKEN: | ||
| required: true | ||
| GIT_USER: |
Contributor
There was a problem hiding this comment.
What about GIT_USER and GIT_USER_EMAIL? Can we use GITHUB_TOKEN there as well? Or this is separate issue?
Contributor
Author
There was a problem hiding this comment.
That is a separate issue, to clean up those secrets.
slaven3kopic
self-requested a review
November 17, 2026 07:55
slaven3kopic
approved these changes
Nov 17, 2026
vladimir-arsov
deleted the
improvement/PFM-ISSUE-34282-Use-GITHUB_TOKEN-with-scoped-permissions-for
branch
November 17, 2026 14:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves PFM-ISSUE-34282
Summary
PFM-ISSUE-34282: push the FE release flow's tag with the built-in
GITHUB_TOKENand job-scoped permissions instead of the shared user PAT.Changes
fe-release-flow.yml: thereleasejob requestscontents: write(wasread) and checks out with the persisted default token (notoken:);GIT_USER_TOKENis no longer a declared secret; guard comment reworded (check and message unchanged). No other scope is granted anywhere in the flow.workflow-templates/fe/fe-release.yml), README (migration note, required secrets, new "Tag rulesets" section, GitHub release) and the 34283 Q10 note describe theGITHUB_TOKENtag push.fe-tag.yml/workflows/fe-release.yml(still need the PAT),fe-main.yml,fe-snapshot.yml, the artifacts tool, the "Configure git user" step (PFM-ISSUE-34286).contents: writeand passessecrets: inherit.research.md,design.md,plan.md,live-test-plan.mdunderspecs/2026-10-26_PFM-ISSUE-34282_github-token-scoped-permissions/.Live validation (
clone-cplace-fe, test branchtest/PFM-ISSUE-34282-github-token)snapshotdist-tag moved (21), release-26.x and latest unchanged; no tag/release/tag run; no 403; perms per job Actions write, Contents read (push_main.yaml grant, unchanged)snapshotdist-tag moved; no tag/release, no git push in the log; T1 release = Contents write, others Contents read; T2 cleanlatest26.4.6 -> 26.4.9 (placeholder, as in A8)PAT vs. GITHUB_TOKEN
26.4.7, run42292826750)43061097423)releasejob token scopeContents: readContents: write42297425544, actorsquad-feGIT_USER_TOKENdeclaredgithub-actions[bot]github-actions[bot]Deviations
43094775513(first R3 dispatch): release job queued without a runner from 20:24Z until GitHub failed the run at 21:01Z, during the GitHub Actions incident of 2026-11-11. No step ran, nothing was published. Replaced by a fresh dispatch (43200686478) on the user's decision.cf-shelllatest26.4.6 -> 26.4.9. Not restored (no teardown).test/ceilingwas first pushed identical torelease/26.4(an edit failed on line endings); no run was triggered. Deleted after R5.Test plan
plan.md)live-test-plan.mdpassed (R6 skipped by decision); results above🤖 Generated with Claude Code