Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:

- name: GoReleaser
id: goreleaser
uses: goreleaser/goreleaser-action@v6
uses: goreleaser/goreleaser-action@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.

🧹 Nitpick | 🔵 Trivial

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

ref_json="$(curl -fsSL https://api.github.com/repos/goreleaser/goreleaser-action/git/ref/tags/v7)"
obj_type="$(jq -r '.object.type' <<<"$ref_json")"
obj_sha="$(jq -r '.object.sha' <<<"$ref_json")"

if [ "$obj_type" = "tag" ]; then
  resolved_sha="$(curl -fsSL "https://api.github.com/repos/goreleaser/goreleaser-action/git/tags/${obj_sha}" | jq -r '.object.sha')"
else
  resolved_sha="$obj_sha"
fi

echo "Resolved SHA for goreleaser/goreleaser-action@v7: $resolved_sha"
echo
echo "v7 action outputs:"
curl -fsSL https://raw.githubusercontent.com/goreleaser/goreleaser-action/v7/action.yml \
  | awk '/^outputs:/,/^runs:/'

Repository: Hybirdss/jesses

Length of output: 293


🏁 Script executed:

cat -n .github/workflows/release.yml | sed -n '60,85p'

Repository: Hybirdss/jesses

Length of output: 1077


🏁 Script executed:

ls -la .goreleaser.yaml 2>/dev/null && echo "Found .goreleaser.yaml" || echo "Not found"

Repository: Hybirdss/jesses

Length of output: 147


Pin goreleaser-action to an immutable commit SHA for improved supply-chain security.

Line 64 uses a mutable major tag (@v7). For reproducible releases and stronger supply-chain guarantees, pin this to the full commit SHA of the v7 release: e24998b8b67b290c2fa8b7c14fcfa7de2c5c9b8c. The outputs.artifacts output is available in this version and will continue to work downstream at line 75.

Suggested diff
-        uses: goreleaser/goreleaser-action@v7
+        uses: goreleaser/goreleaser-action@e24998b8b67b290c2fa8b7c14fcfa7de2c5c9b8c # v7
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
uses: goreleaser/goreleaser-action@v7
uses: goreleaser/goreleaser-action@e24998b8b67b290c2fa8b7c14fcfa7de2c5c9b8c # v7
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/release.yml at line 64, Replace the mutable tag on the
GitHub Action usage of goreleaser/goreleaser-action@v7 with the immutable commit
SHA for the v7 release (e24998b8b67b290c2fa8b7c14fcfa7de2c5c9b8c) so the
workflow pins to a fixed artifact; locate the line using
goreleaser/goreleaser-action@v7 and update it to use the full SHA instead of the
`@v7` tag to ensure reproducible, supply-chain-safe releases while keeping
existing outputs (like outputs.artifacts) intact.

with:
distribution: goreleaser
version: latest
Expand Down
Loading