mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ci: Update trivy action to run on action updates (#95096)
Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
This commit is contained in:
parent
112763594a
commit
25e85f8947
6
.github/workflows/trivy-scan.yml
vendored
6
.github/workflows/trivy-scan.yml
vendored
@ -4,11 +4,13 @@ on:
|
||||
# only run on PRs where go.mod/go.sum/etc have been updated
|
||||
paths:
|
||||
- go.*
|
||||
- .github/workflows/trivy-scan.yml
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- go.*
|
||||
- .github/workflows/trivy-scan.yml
|
||||
|
||||
jobs:
|
||||
trivy-scan:
|
||||
@ -33,7 +35,9 @@ jobs:
|
||||
# for the PR check, ignore JS-related issues
|
||||
skip-files: 'yarn.lock,package.json'
|
||||
- name: Run Trivy vulnerability scanner (SARIF)
|
||||
uses: aquasecurity/trivy-action@0.28.0
|
||||
# Note: versions 0.27.0 and 0.28.0 are broken for SARIF output, but it's
|
||||
# unclear why - worth testing again in the future
|
||||
uses: aquasecurity/trivy-action@0.26.0
|
||||
with:
|
||||
scan-type: 'fs'
|
||||
scanners: 'vuln'
|
||||
|
Loading…
Reference in New Issue
Block a user