[PR #15068] [CLOSED] fix: pin 10 unpinned action(s),extract 1 unsafe expression(s) to env vars #25540

Closed
opened 2026-04-19 18:16:16 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15068
Author: @dagecko
Created: 3/26/2026
Status: Closed

Base: mainHead: runner-guard/fix-ci-security


📝 Commits (1)

  • 410f089 fix: pin 10 unpinned action(s),extract 1 unsafe expression(s) to env vars

📊 Changes

3 files changed (+13 additions, -11 deletions)

View changed files

📝 .github/workflows/latest.yaml (+1 -1)
📝 .github/workflows/release.yaml (+8 -8)
📝 .github/workflows/test.yaml (+4 -2)

📄 Description

Fix: CI/CD Security Vulnerabilities in GitHub Actions

Hi! Runner Guard, an open-source
CI/CD security scanner by Vigilant Cyber Security,
identified security vulnerabilities in this repository's GitHub Actions workflows.

This PR applies automated fixes where possible and reports additional findings
for your review.

Fixes applied (in this PR)

Rule Severity File Description
RGS-007 high .github/workflows/latest.yaml Pinned 1 third-party action(s) to commit SHA
RGS-007 high .github/workflows/release.yaml Pinned 8 third-party action(s) to commit SHA
RGS-007 high .github/workflows/test.yaml Pinned 1 third-party action(s) to commit SHA
RGS-002 high .github/workflows/test.yaml Extracted 1 unsafe expression(s) to env vars

| Rule | Severity | File | Description |
| RGS-003 | high | .github/workflows/release.yaml | 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:

  • Expression extraction (RGS-002/008/014): Moves ${{ }} expressions from
    run: blocks into env: mappings, preventing shell injection
  • SHA pinning (RGS-007): Pins third-party actions to immutable commit SHAs
    (original version tag preserved as comment)
  • Debug env removal (RGS-015): Removes ACTIONS_RUNNER_DEBUG/ACTIONS_STEP_DEBUG
    which leak secrets in workflow logs

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/15068 **Author:** [@dagecko](https://github.com/dagecko) **Created:** 3/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `runner-guard/fix-ci-security` --- ### 📝 Commits (1) - [`410f089`](https://github.com/ollama/ollama/commit/410f0894e320c2804d979d7ef7cd9bd360e4b261) fix: pin 10 unpinned action(s),extract 1 unsafe expression(s) to env vars ### 📊 Changes **3 files changed** (+13 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/latest.yaml` (+1 -1) 📝 `.github/workflows/release.yaml` (+8 -8) 📝 `.github/workflows/test.yaml` (+4 -2) </details> ### 📄 Description ## Fix: CI/CD Security Vulnerabilities in GitHub Actions Hi! [Runner Guard](https://github.com/Vigilant-LLC/runner-guard), an open-source CI/CD security scanner by [Vigilant Cyber Security](https://www.vigilantdefense.com), identified security vulnerabilities in this repository's GitHub Actions workflows. This PR applies automated fixes where possible and reports additional findings for your review. ### Fixes applied (in this PR) | Rule | Severity | File | Description | |------|----------|------|-------------| | RGS-007 | high | `.github/workflows/latest.yaml` | Pinned 1 third-party action(s) to commit SHA | | RGS-007 | high | `.github/workflows/release.yaml` | Pinned 8 third-party action(s) to commit SHA | | RGS-007 | high | `.github/workflows/test.yaml` | Pinned 1 third-party action(s) to commit SHA | | RGS-002 | high | `.github/workflows/test.yaml` | Extracted 1 unsafe expression(s) to env vars | ### Advisory: additional findings (manual review recommended) | Rule | Severity | File | Description | | RGS-003 | high | `.github/workflows/release.yaml` | 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](https://www.vigilantdefense.com/resources/runner-guard) 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: - **Expression extraction** (RGS-002/008/014): Moves `${{ }}` expressions from `run:` blocks into `env:` mappings, preventing shell injection - **SHA pinning** (RGS-007): Pins third-party actions to immutable commit SHAs (original version tag preserved as comment) - **Debug env removal** (RGS-015): Removes `ACTIONS_RUNNER_DEBUG`/`ACTIONS_STEP_DEBUG` which leak secrets in workflow logs Run `brew install Vigilant-LLC/tap/runner-guard && runner-guard scan .` or install from the [repo](https://github.com/Vigilant-LLC/runner-guard) to verify. --- Found by [Runner Guard](https://github.com/Vigilant-LLC/runner-guard) | Built by [Vigilant Cyber Security](https://www.vigilantdefense.com) | [Learn more](https://www.vigilantdefense.com/resources/runner-guard) If this PR is not welcome, just close it -- we won't send another. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-19 18:16:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#25540