Skip to content

ci: limit workflow token permissions#3

Draft
Scarabaeus1031 wants to merge 1 commit into
mainfrom
codex/limit-actions-permissions
Draft

ci: limit workflow token permissions#3
Scarabaeus1031 wants to merge 1 commit into
mainfrom
codex/limit-actions-permissions

Conversation

@Scarabaeus1031

Copy link
Copy Markdown
Owner

What changed

  • limit the GitHub Actions GITHUB_TOKEN to read-only repository contents

Why

The CI jobs only check out and test the repository. They do not require write
access. Declaring the minimal permission removes both medium-severity CodeQL
findings and makes the workflow authority explicit.

Verification

  • parsed .github/workflows/ci.yml as YAML
  • git diff --check
  • python -m pytest -q
  • 302 tests 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