Skip to content

Pin GitHub-owned actions and the Pages site generator in write-privileged workflows #168

Closed

Description

@TMHSDigital

Summary

#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.

Where

  • .github/workflows/release.yml:26, :57, :59, :73, :87
  • .github/workflows/publish.yml:22, :26
  • .github/workflows/pages.yml:16, :31, :33, :44, :47, :50-59

Details

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
  • The generator checkout has a fixed ref

Related: #127

Getting started

  • Relevant files: .github/workflows/release.yml, .github/workflows/publish.yml, .github/workflows/pages.yml
  • 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

Activity

  1. TMHSDigital commented on Nov 19, 2026

    @TMHSDigital
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ciseverity: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions