Skip to content

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

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

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

Conversation

@ilhan007
Copy link
Copy Markdown
Contributor

Summary

Adds explicit top-level permissions blocks to all GitHub Actions workflow files. This follows the principle of least privilege and prepares the repository for the upcoming enforcement of read-only GITHUB_TOKEN permissions by default.

Permissions Applied

Workflow Permission Reason
ci.yml contents: read Only checks out code and runs build/test — 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 default permissions for GITHUB_TOKEN across organizations. Without explicit permissions blocks, workflows that rely on write access (like the deploy workflow) will break once the default changes. Adding explicit declarations now ensures workflows continue to function correctly and documents the intended access level for each.

Add top-level `permissions` blocks to all workflow files to follow the
principle of least privilege and prepare for the upcoming default
read-only GITHUB_TOKEN enforcement.
@ilhan007 ilhan007 merged commit 434598c into main May 15, 2026
3 checks passed
@ilhan007 ilhan007 deleted the chore/workflow-permissions branch May 15, 2026 06:40
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