Skip to content

ci: pin GitHub Actions and set least-privilege permissions#1434

Closed
grtninja wants to merge 1 commit into
SYSTRAN:masterfrom
grtninja:codex/workflow-hardening-actions-pin
Closed

ci: pin GitHub Actions and set least-privilege permissions#1434
grtninja wants to merge 1 commit into
SYSTRAN:masterfrom
grtninja:codex/workflow-hardening-actions-pin

Conversation

@grtninja

Copy link
Copy Markdown

What

Harden .github/workflows/ci.yml without changing behavior:

  • Add least-privilege permissions: contents: read.
  • Pin actions/checkout, actions/setup-python, and pypa/gh-action-pypi-publish to full commit SHAs.

Why

Using tag-based action refs (e.g. @v4, @v5, @release/v1) increases supply-chain risk if a tag is moved or compromised.

Testing

  • YAML parsed locally (PyYAML yaml.safe_load).

@grtninja grtninja marked this pull request as ready for review April 10, 2026 15:41
@grtninja grtninja deleted the codex/workflow-hardening-actions-pin branch April 14, 2026 22:29
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.

2 participants