Skip to content

ci: harden workflow with read-only token and SHA-pinned actions#3

Merged
owenwahlgren merged 1 commit into
mainfrom
fix/ci-harden
Jun 1, 2026
Merged

ci: harden workflow with read-only token and SHA-pinned actions#3
owenwahlgren merged 1 commit into
mainfrom
fix/ci-harden

Conversation

@owenwahlgren

Copy link
Copy Markdown
Collaborator

Summary

Pre-public housecleaning for the CI workflow. Neither change is functional, but both are low-effort supply-chain hardening.

  • Add top-level permissions: contents: read so GITHUB_TOKEN defaults to read-only for both jobs.
  • Pin all third-party actions to full commit SHAs (with version comments) to prevent tag-mutation supply-chain risk.
Action Tag
actions/checkout v4.3.1
foundry-rs/foundry-toolchain v1.8.0
pnpm/action-setup v4.4.0
actions/setup-node v4.4.0

All SHAs verified against the GitHub API to match their claimed tags.

Test plan

  • CI runs on this PR exercise the pinned actions end-to-end (Foundry tests + TS build/typecheck).

Add explicit `permissions: contents: read` so GITHUB_TOKEN defaults to
read-only, and pin all third-party actions to full commit SHAs (with
version comments) to prevent tag-mutation supply-chain risk.

- actions/checkout            -> v4.3.1
- foundry-rs/foundry-toolchain -> v1.8.0
- pnpm/action-setup            -> v4.4.0
- actions/setup-node           -> v4.4.0
@owenwahlgren owenwahlgren merged commit d0519f0 into main Jun 1, 2026
2 checks passed
@owenwahlgren owenwahlgren deleted the fix/ci-harden branch June 1, 2026 13:50
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