Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fetch-depth: 0

- name: Install Go
uses: actions/setup-go@v6
uses: actions/setup-go@v7

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -u

printf '%s\n' '--- cited references ---'
for f in .github/workflows/release.yml .github/workflows/test-ansible.yml .github/workflows/test-sanity.yml .github/workflows/unit.yml; do
  if [ -f "$f" ]; then
    printf '%s\n' "--- $f ---"
    rg -n -C 1 'actions/setup-go@' "$f" || true
  else
    printf 'MISSING %s\n' "$f"
  fi
done

printf '%s\n' '--- repository-wide setup-go references ---'
rg -n 'actions/setup-go@' .github/workflows || true

printf '%s\n' '--- tag ref ---'
curl -fsSL 'https://api.github.com/repos/actions/setup-go/git/refs/tags/v7.0.0' |
  jq '{ref, object}' || true

printf '%s\n' '--- proposed SHA commit ---'
curl -fsSL 'https://api.github.com/repos/actions/setup-go/commits/b7ad1dad31e06c5925ef5d2fc7ad053ef454303e' |
  jq '{sha, html_url, message: .commit.message}' || true

Repository: openshift/ansible-operator-plugins

Length of output: 1428


🏁 Script executed:

#!/bin/bash
set -u
repo='https://github.com/actions/setup-go.git'
printf '%s\n' '--- v7.0.0 tag refs ---'
git ls-remote "$repo" 'refs/tags/v7.0.0' 'refs/tags/v7.0.0^{}' || true

printf '%s\n' '--- proposed SHA reachability ---'
git ls-remote "$repo" | awk '$1 == "b7ad1dad31e06c5925ef5d2fc7ad053ef454303e" { print }'

Repository: openshift/ansible-operator-plugins

Length of output: 400


🌐 Web query:

actions/setup-go b7ad1dad31e06c5925ef5d2fc7ad053ef454303e v7.0.0

💡 Result:

The commit b7ad1dad31e06c5925ef5d2fc7ad053ef454303e corresponds to the official release of actions/setup-go version v7.0.0 [1][2]. This release, published on July 16, 2026, primarily focused on technical maintenance and internal upgrades rather than changes to the action's user-facing functionality [1][3]. Key updates include: * ESM Migration: The action's internals were migrated to ECMAScript Modules (ESM) to ensure compatibility with the latest @actions/* packages [3]. * Dependency Updates: The release included an upgrade of @actions/cache to version 6.2.0 [1][2]. The documentation explicitly notes that there were no changes to the action's inputs, outputs, or general behavior in this version [3]. As with previous versions, v7.0.0 continues to support Go environment setup, caching for Go modules, and problem matcher registration [4][3].

Citations:


Pin all six actions/setup-go@v7 references to b7ad1dad31e06c5925ef5d2fc7ad053ef454303e, the v7.0.0 commit SHA.

🧰 Tools
🪛 zizmor (1.29.0)

[error] 33-33: runtime artifacts potentially vulnerable to a cache poisoning attack (cache-poisoning): enables caching by default

(cache-poisoning)

📍 Affects 4 files
  • .github/workflows/release.yml#L33-L33 (this comment)
  • .github/workflows/release.yml#L71-L71
  • .github/workflows/test-ansible.yml#L13-L13
  • .github/workflows/test-ansible.yml#L26-L26
  • .github/workflows/test-sanity.yml#L13-L13
  • .github/workflows/unit.yml#L13-L13
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/release.yml at line 33, Pin all six actions/setup-go
references to commit SHA b7ad1dad31e06c5925ef5d2fc7ad053ef454303e: update
.github/workflows/release.yml at lines 33-33 and 71-71,
.github/workflows/test-ansible.yml at lines 13-13 and 26-26,
.github/workflows/test-sanity.yml at line 13-13, and .github/workflows/unit.yml
at line 13-13, preserving the existing v7.0.0 action usage.

Sources: Path instructions, MCP tools

with:
go-version-file: "go.mod"

Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
fetch-depth: 0

- name: Install Go
uses: actions/setup-go@v6
uses: actions/setup-go@v7
with:
go-version-file: "go.mod"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-go@v6
- uses: actions/setup-go@v7
with:
go-version-file: "go.mod"
- run: sudo rm -rf /usr/local/bin/kustomize
Expand All @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-go@v6
- uses: actions/setup-go@v7
with:
go-version-file: "go.mod"
- run: sudo rm -rf /usr/local/bin/kustomize
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-go@v6
- uses: actions/setup-go@v7
with:
go-version-file: "go.mod"
id: go
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-go@v6
- uses: actions/setup-go@v7
with:
go-version-file: "go.mod"
- run: make test-unit