Skip to content

fix: pin 3 unpinned action(s)#1985

Closed
dagecko wants to merge 1 commit intogithub:mainfrom
dagecko:runner-guard/fix-ci-security
Closed

fix: pin 3 unpinned action(s)#1985
dagecko wants to merge 1 commit intogithub:mainfrom
dagecko:runner-guard/fix-ci-security

Conversation

@dagecko
Copy link

@dagecko dagecko commented Mar 26, 2026

Security: Harden GitHub Actions workflows

Hey, we found some CI/CD security issues in this repo's workflows using Runner Guard, our open-source CI/CD security scanner at Vigilant. These are the same vulnerability classes being actively exploited right now in the tj-actions, Trivy, LiteLLM supply chain attack chain. We scanned the top 50K repos on GitHub and over 20,000 have this same problem. We're trying to get fixes out to as many maintainers as possible before more repos get hit.

This PR fixes what we could automatically, and flags anything else that needs a manual look. There's a real person behind this PR, we're actively checking back on comments so if you have any questions just drop them here and we'll respond.

Fixes applied (in this PR)

Rule Severity File Description
RGS-007 high .github/workflows/lint.yml Pinned 1 third-party action(s) to commit SHA
RGS-007 high .github/workflows/test.yml Pinned 2 third-party action(s) to commit SHA

Advisory: additional findings (manual review recommended)

| Rule | Severity | File | Description |
| RGS-003 | high | .github/workflows/release-trigger.yml | Filename Injection via Git Diff or File Listing |
| RGS-003 | high | .github/workflows/release-trigger.yml | Filename Injection via Git Diff or File Listing |

Why this matters

GitHub Actions workflows that use untrusted input in run: blocks, expose
secrets inline, or use unpinned third-party actions are vulnerable to
code injection, credential theft, and supply chain attacks. These are the same
vulnerability classes exploited in the tj-actions/changed-files incident
and subsequent supply chain attacks, which compromised CI secrets across
thousands of repositories.

How to verify

Review the diff — each change is mechanical and preserves workflow behavior:

  • SHA pinning (RGS-007): Pins third-party actions to immutable commit SHAs
    (original version tag preserved as comment)

Run brew install Vigilant-LLC/tap/runner-guard && runner-guard scan . or install from the
repo to verify.


Found by Runner Guard | Built by Vigilant Cyber Security | Learn more

If this PR is not welcome, just close it -- we won't send another.

Automated security fixes applied by Runner Guard (https://github.com/Vigilant-LLC/runner-guard).

Changes:
 .github/workflows/lint.yml | 2 +-
 .github/workflows/test.yml | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Hardens the CI GitHub Actions workflows by pinning previously unpinned third-party actions to immutable commit SHAs, reducing supply-chain risk in the repo’s automation.

Changes:

  • Pin astral-sh/setup-uv to a specific commit SHA in .github/workflows/test.yml (both jobs).
  • Pin DavidAnson/markdownlint-cli2-action to a specific commit SHA in .github/workflows/lint.yml.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/test.yml Pins astral-sh/setup-uv to a commit SHA in ruff + pytest jobs.
.github/workflows/lint.yml Pins DavidAnson/markdownlint-cli2-action to a commit SHA for markdown linting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dagecko dagecko closed this by deleting the head repository Mar 26, 2026
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.

3 participants