ci: fix trivy failure for release PR

Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
Jan Larwig 2026-03-19 00:59:56 +08:00
parent e573c14f27
commit 30ea718e23
No known key found for this signature in database
GPG Key ID: C2172BFA220A037A
2 changed files with 2 additions and 1 deletions

View File

@ -92,6 +92,7 @@ jobs:
exit-code: '0'
- name: Upload Trivy scan results
if: (!startsWith(github.head_ref, 'release'))
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: 'trivy-results.sarif'

View File

@ -147,7 +147,7 @@ test: lint ## Run all Go tests
GO111MODULE=on $(GO) test $(TESTCOVER) -v -race ./...
.PHONY: release
release: validate-go-version lint test ## Create a full release for all architectures (binaries and checksums)
release: validate-go-version ## Create a full release for all architectures (binaries and checksums)
BINARY=${BINARY} VERSION=${VERSION} ./dist.sh
.PHONY: clean