Skip to content

ci: harden workflows — permissions, concurrency, SHA-pinned actions#39

Merged
tonytino merged 2 commits into
mainfrom
fix/25-actions-hardening
Jun 10, 2026
Merged

ci: harden workflows — permissions, concurrency, SHA-pinned actions#39
tonytino merged 2 commits into
mainfrom
fix/25-actions-hardening

Conversation

@tonytino

Copy link
Copy Markdown
Owner

Closes #25.

Standard supply-chain + efficiency hardening across all three workflows:

  • permissions: { contents: read } — least privilege; none of the jobs need write access.
  • concurrency group keyed on workflow + ref with cancel-in-progress: true — superseded runs (rapid PR pushes) get cancelled instead of piling up.
  • SHA-pinned actions (with version comments):
    • actions/checkout @34e1148 # v4.3.1
    • actions/setup-node @49933ea # v4.4.0
    • pnpm/action-setup @fc06bc1 # v4.4.0

Verification

templates.test.ts (which reads the workflow files) still passes; the workflow YAML is validated by this PR's own CI run.

🤖 Generated with Claude Code

tonytino and others added 2 commits June 10, 2026 15:52
…loses #25)

Apply standard supply-chain and efficiency hardening to all three workflows:

- Add `permissions: { contents: read }` (least privilege; none of the jobs
  need write access).
- Add a `concurrency` group keyed on workflow + ref with cancel-in-progress,
  so superseded runs (e.g. rapid pushes to a PR) are cancelled.
- Pin actions to full commit SHAs with version comments:
  - actions/checkout    @34e1148 # v4.3.1
  - actions/setup-node  @49933ea # v4.4.0
  - pnpm/action-setup   @fc06bc1 # v4.4.0

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@tonytino tonytino enabled auto-merge (squash) June 10, 2026 22:08
@tonytino tonytino merged commit 072793e into main Jun 10, 2026
3 checks passed
@tonytino tonytino deleted the fix/25-actions-hardening branch June 10, 2026 22:09
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.

[Task]: Harden GitHub Actions workflows (permissions, concurrency, action pinning)

1 participant