SKY-D354 · CI/CD pipelines
AI agent action version with a published advisory
A GitHub security advisory (GHSA) is a public notice that a release has a vulnerability and which release fixes it. SKY-D354 reports AI agent actions in a workflow that are pinned to a release with such an advisory. The list of advisories ships with Skylos, so no network is needed.
- Languages
- GitHub Actions workflows
- Quality gate
- counted toward the gate limits (full and diff scans).
skylos cicd risk-reviewalso marks a new HIGH finding of this rule as "CI weakened", which needs a human approval. - Finding type
- review
- Catalog name
- GitHub Actions AI agent action with published advisory
Why it matters
Both advisories let a pull request or issue take over the agent: before the fixes, a pull request's .mcp.json could make Claude Code run code and read the workflow's secrets, and Gemini CLI applied a pull request's own settings and ignored tool limits. A pin to an old release keeps that hole open after the fix ships.
What Skylos flags
name: Gemini reviewon: issue_comment: types: [created]permissions: contents: read pull-requests: writejobs: review: if: >- github.event.issue.pull_request && contains(github.event.comment.body, '@gemini-cli /review') runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with: persist-credentials: false - uses: google-github-actions/run-gemini-cli@v0.1.21 with: gemini_api_key: ${{ secrets.GEMINI_API_KEY }} prompt: Review this pull request and post your findings as comments.What Skylos leaves alone
name: Gemini reviewon: issue_comment: types: [created]permissions: contents: read pull-requests: writejobs: review: if: >- github.event.issue.pull_request && contains(github.event.comment.body, '@gemini-cli /review') runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with: persist-credentials: false - uses: google-github-actions/run-gemini-cli@v0.1.22 with: gemini_api_key: ${{ secrets.GEMINI_API_KEY }} gemini_cli_version: 0.39.1 prompt: Review this pull request and post your findings as comments.Why Skylos leaves it alone
It is still pinned to exact versions, but both are fixed releases: the action from v0.1.22 and Gemini CLI itself from 0.39.1. Pinning the CLI below 0.39.1 would be reported on the gemini_cli_version line.
More languages
YAML
Flagged
name: Claudeon: issue_comment: types: [created]jobs: claude: if: contains(github.event.comment.body, '@claude') runs-on: ubuntu-latest permissions: contents: write issues: write pull-requests: write steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: anthropics/claude-code-action@1b422b3517b51140e4484faab676c5e68b914866 with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}Not flagged
name: Claudeon: issue_comment: types: [created]jobs: claude: if: contains(github.event.comment.body, '@claude') runs-on: ubuntu-latest permissions: contents: write issues: write pull-requests: write steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: anthropics/claude-code-action@1ba15be4f0b0c9a026c0c7986668f8f2aa998440 with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}Why Skylos leaves it alone
Both are full commit pins. Skylos looks each commit up in a table of release commits: the flagged one is v1.0.73, the last affected release, this one is v1.0.74, which has the fix.
How Skylos decides
- Finds
anthropics/claude-code-actionandgoogle-github-actions/run-gemini-clisteps in.github/workflowsfiles. - Reads the version from the
@reference: a tag such asv1.0.73, or a full commit SHA found in a table of each release's commit that ships with Skylos. Moving tags such asv1, branches and unknown commits are not reported. - claude-code-action 1.0.0 to 1.0.73 has GHSA-8q5r-mmjf-575q (fixed in 1.0.74). run-gemini-cli before 0.1.22 has GHSA-wpqr-6v78-jr5g; on a fixed action, a
gemini_cli_versionbelow 0.39.1 (or0.40.0-preview.2) has it too. - HIGH (Gemini) or MEDIUM (Claude) when the workflow has a trigger that outsiders can cause, such as
issue_commentorpull_request_target, and it reaches the step, even through an actor check; one step lower otherwise. - One finding per advisory, on the
uses:line or thegemini_cli_versionline. The inline marker must be a YAML comment.
How to fix it
Upgrade to a fixed release. If you pin actions by commit, as SKY-D292 asks, pin the commit of a fixed release and let Dependabot propose new ones, so the pin does not freeze a vulnerable version.
name: Gemini reviewon: issue_comment: types: [created]permissions: contents: read pull-requests: writejobs: review: if: >- github.event.issue.pull_request && contains(github.event.comment.body, '@gemini-cli /review') runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with: persist-credentials: falseRemoved: - uses: google-github-actions/run-gemini-cli@v0.1.21Added: - uses: google-github-actions/run-gemini-cli@v0.1.22 with: gemini_api_key: ${{ secrets.GEMINI_API_KEY }} prompt: Review this pull request and post your findings as comments.When it can be wrong
- Only these two advisories and these two actions are known; the table is updated with Skylos releases, so a newer advisory is missed until then.
claude-code-base-action, CLI agents inrun:blocks and Claude v0 releases are not checked. - A commit that is not a release commit, for example a fork's, is treated as unknown and not reported.
Seeing a case that isn't listed here? Report the wrong result so the rule can be fixed. Don't paste company code: describe the shape of it.
How to silence it
Put a YAML comment with exactly one rule at the end of the reported line or on its own line directly above it.
YAML # skylos: ignore[SKY-D354] upgrade tracked in #482, workflow disabled- uses: google-github-actions/run-gemini-cli@v0.1.21[tool.skylos] ignore = ["SKY-D354"]turns the rule off for the whole project.