Skip to content

chore(ci): add explicit GITHUB_TOKEN permissions to workflows#106

Merged
ilhan007 merged 1 commit into
mainfrom
chore/workflow-permissions
May 15, 2026
Merged

chore(ci): add explicit GITHUB_TOKEN permissions to workflows#106
ilhan007 merged 1 commit into
mainfrom
chore/workflow-permissions

Conversation

@ilhan007
Copy link
Copy Markdown
Contributor

Summary

Add explicit top-level permissions: blocks to all GitHub Actions workflows to follow the principle of least privilege and prepare for GitHub's upcoming enforcement of read-only default GITHUB_TOKEN permissions.

Permissions Applied

Workflow Permission Reason
ci.yml contents: read Only checks out code and runs build — no write access needed
lint.yml contents: read Only checks out code and runs linting — no write access needed
deploy.yml contents: write Uses JamesIves/github-pages-deploy-action which pushes the built artifacts to the gh-pages branch

Context

GitHub is enforcing read-only as the default permission for GITHUB_TOKEN in all new repositories, and will roll this out more broadly. Adding explicit permissions ensures workflows continue to function correctly after this change, and documents the intended access level for each workflow.

Add top-level `permissions:` blocks to all GitHub Actions workflows
to prepare for the upcoming read-only default GITHUB_TOKEN enforcement.
@ilhan007 ilhan007 merged commit 9ef3343 into main May 15, 2026
2 of 3 checks passed
@ilhan007 ilhan007 deleted the chore/workflow-permissions branch May 15, 2026 07:08
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