Skip to content

ci: restrict bench workflow token permissions#6

Merged
minagishl merged 1 commit into
mainfrom
bugfix/issue-3-bench-yml-permissions
Jun 29, 2026
Merged

ci: restrict bench workflow token permissions#6
minagishl merged 1 commit into
mainfrom
bugfix/issue-3-bench-yml-permissions

Conversation

@minagishl

@minagishl minagishl commented Jun 29, 2026

Copy link
Copy Markdown
Member

Summary

  • Add workflow-level permissions: contents: read to .github/workflows/bench.yml so GITHUB_TOKEN is scoped to the minimum required for checkout and benchmark runs.
  • Set persist-credentials: false on all three actions/checkout@v4 steps to avoid leaving credentials in the job environment.

Closes #3

Test plan

  • Confirm workflow YAML is valid (no syntax errors)
  • Trigger Benchmark workflow via workflow_dispatch and verify checkout + benchmark steps succeed

Limit GITHUB_TOKEN to contents:read and disable credential persistence
on checkout steps for defense in depth.
@github-actions

Copy link
Copy Markdown

Invisible characters check

No suspicious invisible characters detected in the PR diff.

@minagishl minagishl merged commit 2e2e7b5 into main Jun 29, 2026
4 checks passed
@minagishl minagishl deleted the bugfix/issue-3-bench-yml-permissions branch June 29, 2026 02:21
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.

bug: bench.yml lacks explicit permissions: block

1 participant