Repository navigation
Use GITHUB_TOKEN for the blog post workflow - #2
Merged
Merged
Conversation
The workflow only writes to this repo (profile/README.md and the action's keep-alive commit), so the built-in GITHUB_TOKEN with contents: write is enough. It no longer needs the broad RELEASE_PAT secret. The daily 12:00 UTC schedule is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
The daily blog post workflow now uses the built-in
GITHUB_TOKENinstead of the broadRELEASE_PATsecret.permissionsgoes fromcontents: readtocontents: write. That is all the job needs: it commitsprofile/README.md, plus the action's occasional keep-alive commit, to this repo.actions/checkoutuses the defaultGITHUB_TOKEN, andgautamkrishnar/blog-post-workflowgetssecrets.GITHUB_TOKENasgh_token. That is the action's documented default.0 12 * * *(12:00 UTC daily) schedule and the SHA pins are unchanged.mainhere has no branch protection, soGITHUB_TOKENcan push the README update. A fine-grained PAT is not needed.Test
A manual run of this workflow on this branch (see the checks below) uses
GITHUB_TOKEN. After merge,RELEASE_PATis no longer used by this repo. Revoke or narrow it if nothing else in the org relies on it.🤖 Generated with Claude Code