Skip to content

Use GITHUB_TOKEN for the blog post workflow - #2

Merged
sionsmith merged 1 commit into
mainfrom
chore/blog-post-workflow-github-token
Oct 12, 2026
Merged

sionsmith merged 1 commit into
mainfrom
chore/blog-post-workflow-github-token

Conversation

@sionsmith

Copy link
Copy Markdown
Contributor

Summary

The daily blog post workflow now uses the built-in GITHUB_TOKEN instead of the broad RELEASE_PAT secret.

  • permissions goes from contents: read to contents: write. That is all the job needs: it commits profile/README.md, plus the action's occasional keep-alive commit, to this repo.
  • actions/checkout uses the default GITHUB_TOKEN, and gautamkrishnar/blog-post-workflow gets secrets.GITHUB_TOKEN as gh_token. That is the action's documented default.
  • The 0 12 * * * (12:00 UTC daily) schedule and the SHA pins are unchanged.

main here has no branch protection, so GITHUB_TOKEN can 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_PAT is no longer used by this repo. Revoke or narrow it if nothing else in the org relies on it.

🤖 Generated with Claude Code

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]>
@sionsmith
sionsmith merged commit 5fb4078 into main Oct 12, 2026
1 check passed
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.

1 participant