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
Pin GitHub-owned actions and the Pages site generator in write-privileged workflows #168
#127 pinned third-party actions. GitHub-owned actions are still referenced by mutable tags in the workflows that push to main, publish to npm and deploy Pages, and pages.yml runs the current HEAD of an external generator repository.
actions/checkout, actions/setup-node, actions/setup-python and the Pages actions are referenced as @vN. pages.yml checks out an external repository without a ref and runs its build script in a job with pages: write and id-token: write.
Impact
Defense in depth: a moved tag or a change upstream would run with permission to push to main, publish the package or deploy the site.
Suggested fix
Pin the actions to full commit SHAs with a version comment (Dependabot's github-actions updater keeps them current), and pin the external generator checkout to a tag or SHA.
Acceptance criteria
All uses: in release.yml, publish.yml and pages.yml are SHA-pinned
How to run tests: cd mcp-server && npm install && npm test (and npm run typecheck); structure tests: pip install -r requirements-test.txt && pytest tests/ -v
Conventions: see CLAUDE.md and CONTRIBUTING.md
Filed by repo-audit/full-audit at 636fefb. Severity: low. Effort: S. audit-key: ci|.github/workflows/pages.yml|pinning
Fixed in 490e7f2: all uses: in release.yml, publish.yml and pages.yml are SHA-pinned with version comments (each SHA equals what the major tag resolved to today, so no behavior change), and the generator checkout has ref: 2c7a7fe (its current main, v1.20.0 + Jinja2 floor). Note: Dependabot will not bump that ref, so it needs manual updates. YAML validated. Other workflows (ci, codeql, dependency-review, ...) still use major tags; they were outside this issue's scope.
Activity
TMHSDigital commentedon Nov 19, 2026
Fixed in 490e7f2: all uses: in release.yml, publish.yml and pages.yml are SHA-pinned with version comments (each SHA equals what the major tag resolved to today, so no behavior change), and the generator checkout has ref: 2c7a7fe (its current main, v1.20.0 + Jinja2 floor). Note: Dependabot will not bump that ref, so it needs manual updates. YAML validated. Other workflows (ci, codeql, dependency-review, ...) still use major tags; they were outside this issue's scope.