Skip to content

Harden CI workflow (permissions, SHA-pinned v6 actions, concurrency) - #5

Merged
ShiosOS merged 1 commit into
mainfrom
ci/harden-workflow
Jun 4, 2026
Merged

ShiosOS merged 1 commit into
mainfrom
ci/harden-workflow

Conversation

@ShiosOS

@ShiosOS ShiosOS commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Brings CI up to supply-chain best practices:

  • Least privilege: permissions: contents: read.
  • Pinned actions: actions/checkout and actions/setup-node pinned to commit SHAs (v6), with the version in a trailing comment. v6 runs on the Node 24 action runtime, which clears the Node 20 deprecation warning that the earlier node-version bump did not.
  • Concurrency: cancels superseded runs for the same ref.
  • Adds .nvmrc (24) and a package.json engines floor (>=22).

🤖 Generated with Claude Code

- Add a least-privilege `permissions: contents: read` block.
- Pin actions to commit SHAs and move to v6 (runs on the Node 24 action runtime, clearing the Node 20 deprecation warning).
- Cancel superseded runs for the same ref via concurrency.
- Add .nvmrc (24) and a package.json engines floor (>=22).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ShiosOS
ShiosOS merged commit 2d072b6 into main Jun 4, 2026
2 checks passed
@ShiosOS
ShiosOS deleted the ci/harden-workflow branch June 4, 2026 05:01
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