ci: fix trivy failure for release PR
Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
parent
e573c14f27
commit
30ea718e23
|
|
@ -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'
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue