Skip to content

Scope GITHUB_TOKEN to read-only in R-CMD-check - #37

Merged
GuySaar8 merged 1 commit into
masterfrom
GuySaar8/workflow-permissions
Nov 10, 2026
Merged

GuySaar8 merged 1 commit into
masterfrom
GuySaar8/workflow-permissions

Conversation

@GuySaar8

Copy link
Copy Markdown
Contributor

Adds a top-level permissions: contents: read to .github/workflows/r.yml, so the workflow's GITHUB_TOKEN no longer gets the repository's default (possibly write) scopes.

The workflow only checks out the code and runs R CMD check; the token is passed as GITHUB_PAT purely to raise the GitHub API rate limit while installing dependencies, which needs read access only.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@GuySaar8
GuySaar8 requested review from liyaka and obezpalko November 10, 2026 21:44
@GuySaar8
GuySaar8 merged commit fa89e2a into master Nov 10, 2026
0 of 5 checks passed
@GuySaar8
GuySaar8 deleted the GuySaar8/workflow-permissions branch November 10, 2026 21:45
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