Skip to content

[LOW] ci: limit workflow token permissions - #1903

Open
OskarEichler wants to merge 1 commit into
jantimon:mainfrom
OskarEichler:codex/security-limit-workflow-permissions
Open

[LOW] ci: limit workflow token permissions#1903
OskarEichler wants to merge 1 commit into
jantimon:mainfrom
OskarEichler:codex/security-limit-workflow-permissions

Conversation

@OskarEichler

Copy link
Copy Markdown

Summary

Declare read-only contents and pull-requests permissions for the CI workflow.

Security impact

Without an explicit permissions block, the workflow token inherits repository or organization defaults, which may grant broader write access than CI needs. The workflow only checks out source, reads pull-request commits for commit linting, and uploads coverage with a separate Codecov token.

Verification

  • workflow YAML parses successfully
  • verified the declared permissions are contents: read and pull-requests: read
  • git diff --check passes

This PR addresses only workflow token permissions.

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