Skip to content

chore(ci): harden GitHub Actions workflow#287

Merged
horsefacts merged 1 commit intomainfrom
horsefacts/harden-ci-workflow
Apr 13, 2026
Merged

chore(ci): harden GitHub Actions workflow#287
horsefacts merged 1 commit intomainfrom
horsefacts/harden-ci-workflow

Conversation

@decofe
Copy link
Copy Markdown
Member

@decofe decofe commented Apr 13, 2026

Pin all GitHub Actions to SHA hashes and apply least-privilege permissions.

Changes

  • Pin actions/checkout@v6@de0fac2e… (v6.0.2)
  • Pin pnpm/action-setup@v5@fc06bc12… (v5.0.0)
  • Pin actions/setup-node@v6@53b83947… (v6.3.0)
  • Pin actions/upload-artifact@v4@ea165f8d… (v4.6.2)
  • Add top-level permissions: {} (default deny)
  • Add permissions: {} to ci-gate job (was inheriting default)
  • Add persist-credentials: false to both actions/checkout steps

Why

Supply chain hardening flagged by dependency scan. Tag-based action refs (@v6) can be silently retagged — SHA pinning prevents that. Default-deny permissions + disabled credential persistence reduce blast radius.

Prompted by: horsefacts

- Pin all actions to SHA hashes (via pinact)
- Add top-level permissions: {} (default deny)
- Add permissions: {} to ci-gate job
- Add persist-credentials: false to both checkout steps

Co-Authored-By: horsefacts <109845214+horsefacts@users.noreply.github.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tempo-docs Ready Ready Preview, Comment Apr 13, 2026 2:22pm

Request Review

@horsefacts horsefacts merged commit 29b4029 into main Apr 13, 2026
9 checks passed
@horsefacts horsefacts deleted the horsefacts/harden-ci-workflow branch April 13, 2026 14:28
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