ci: prevent cache poisoning in release-signed

setup-go's cache restores from a key derived on go.sum contents,
which a malicious PR could poison to smuggle tampered dependencies
into a release build. Release jobs run rarely enough that the cache
isn't worth the exposure.

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
pull/32490/head
Benoit Tigeot 1 month ago
parent cfd077bb21
commit 9ab0dd5923
No known key found for this signature in database
GPG Key ID: 8E6D4FC8AEBDA62C

@ -1,5 +1,5 @@
#
# PoC: signed release with SBOMs and build provenance.
# Signed release with SBOMs and build provenance.
# Modeled on https://github.com/goreleaser/example-secure
#
name: release-signed
@ -32,6 +32,7 @@ jobs:
with:
go-version: '${{ env.GOLANG_VERSION }}'
check-latest: true
cache: false
- name: Install Cosign
uses: sigstore/cosign-installer@cad07c2e89fa2edd6e2d7bab4c1aa38e53f76003 # v4.1.1

Loading…
Cancel
Save