chore(ci): migrate all workflows from PAT to GITHUB_TOKEN/App Token [SEC-58]#26
Open
chore(ci): migrate all workflows from PAT to GITHUB_TOKEN/App Token [SEC-58]#26
Conversation
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> 🔒 Scanned for secrets using gitleaks 8.30.0
…b App token [SEC-58] 🔒 Scanned for secrets using gitleaks 8.30.0
…C-58] Replace git add/commit/push with ryancyq/github-signed-commit action to create verified commits. Git push with tokens (PAT, GITHUB_TOKEN, or App Token) does not create verified commits - must use GitHub API. Changes: - Remove git add README.md (signed-commit reads files from disk) - Add --skip.commit --skip.tag to standard-version (skip git commit/tag) - Replace git push --follow-tags with github-signed-commit action - Files committed: CHANGELOG.md, package.json, package-lock.json, README.md Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> 🔒 Scanned for secrets using gitleaks 8.30.0
…EC-58] 🔒 Scanned for secrets using gitleaks 8.30.0
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.
Summary
Files Changed
Migration Details
pull-requests: readcontents: write,pull-requests: writecontents: writeMigration Pattern Evolution
The key insight from the pattern evolution is:
ryancyq/github-signed-commit) creates commits via GitHub's GraphQL API, producing verified commits with the App's identitygit config,git add,git commit,git pushgh api .../git/refs) before the signed-commit action can push to themChanges in draft-new-release.yml
REMOVED (no longer needed):
git config user.name/emailsteps - signed commit uses App identitygit push --set-upstream origin- branch created via APIREPLACED WITH:
gh api repos/${{ github.repository }}/git/refs --method POST--skip.commit --skip.tagwith standard-version (file modifications only)ryancyq/github-signed-commit@v1.2.0for verified commitsWhy These Changes?
notion-pr-sync.yml: Uses GITHUB_TOKEN because it only reads PR metadata for Notion sync. No workflow triggering needed.
draft-new-release.yml: Uses GitHub App Token + simplified pattern because:
ryancyq/github-signed-commit@v1.2.0for verified commitsgit remote set-urlwith token-in-URLpublish-new-release.yml: Uses GitHub App Token because:
Security Improvements
contents: read)token:parameterTest plan
🤖 Generated with Claude Code