ci: disable setup-go cache to prevent cache poisoning

The build-test workflow runs on push/PR to protected branches; leaving `actions/setup-go` caching on lets a PR-populated cache be restored into a trusted run. Disable it.

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
pull/32491/head
Benoit Tigeot 6 days ago
parent 070fd6056d
commit 4c5c9ead24
No known key found for this signature in database
GPG Key ID: 8E6D4FC8AEBDA62C

@ -28,6 +28,7 @@ jobs:
with:
go-version: '${{ env.GOLANG_VERSION }}'
check-latest: true
cache: false
- name: Test source headers are present
run: make test-source-headers
- name: Check if go modules need to be tidied

Loading…
Cancel
Save