Skip to content

Commit 6fb7950

Browse files
Update GHA workflow dependencies (#6842)
Signed-off-by: Neil Twigg <neil@nats.io>
2 parents b89ed24 + f290918 commit 6fb7950

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/release.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,14 @@ jobs:
3030
go test -race -v -run=TestVersionMatchesTag ./server -ldflags="-X=github.com/nats-io/nats-server/v2/server.serverVersion=$TRAVIS_TAG" -count=1 -vet=off
3131
3232
- name: Install cosign
33-
uses: sigstore/cosign-installer@v3.8.1
33+
# Use commit hash here to avoid a re-tagging attack, as this is a third-party action
34+
# Commit 3454372f43399081ed03b604cb2d021dabca52bb = tag v3.8.2
35+
uses: sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb
3436

3537
- name: Install syft
36-
uses: anchore/sbom-action/download-syft@v0.18.0
38+
# Use commit hash here to avoid a re-tagging attack, as this is a third-party action
39+
# Commit 9f7302141466aa6482940f15371237e9d9f4c34a = tag v0.19.0
40+
uses: anchore/sbom-action/download-syft@9f7302141466aa6482940f15371237e9d9f4c34a
3741
with:
3842
syft-version: "v1.20.0"
3943

.github/workflows/tests.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ jobs:
2626
go-version: stable
2727

2828
- name: Run golangci-lint
29-
uses: golangci/golangci-lint-action@v7
29+
# Use commit hash here to avoid a re-tagging attack, as this is a third-party action
30+
# Commit 1481404843c368bc19ca9406f87d6e0fc97bdcfd = tag v7.0.0
31+
uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd
3032
with:
3133
version: v2.1.2
3234
skip-cache: true

0 commit comments

Comments
 (0)