You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI hardening: SHA-pin actions, pin npm in the provenance job, scope permissions, fix label-sync, add CodeQL #191
The package is published with npm provenance (id-token: write), so the workflows that hold that token are the project's supply chain. Today they rely on mutable references. One workflow is also leftover template code that fails on fork PRs. None of this is an active exploit; it is standard hardening.
Evidence
Actions are pinned by mutable tag:actions/checkout@v7, actions/setup-node@v6, actions/stale@v10, and the drift check TMHSDigital/Developer-Tools-Directory/[email protected].
publish.yml:31 runs npm install -g npm@latest in the job that holds id-token: write.
release.yml grants contents: write and actions: write at workflow level instead of per job.
label-sync.yml is template leftovers.
It labels skills/ and rules/ paths that don't exist, and nothing labels src/.
It runs on pull_request, so fork PRs get a read-only token and the labeling step fails.
It checks out code it never uses.
No code scanning. There is no CodeQL or OpenSSF Scorecard workflow.
Suggested approach
SHA-pin all third-party actions with a version comment. Dependabot's github-actions ecosystem is already configured and keeps them current.
Pin npm to a major (for example npm@11).
Move permissions to the jobs that need them.
Replace label-sync with actions/labeler (paths for src/tools, src/utils, docs, .github) or delete it.
Add CodeQL (javascript-typescript) and, optionally, the Scorecard action with a README badge.
Activity