File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ # https://go.dev/security/vuln
2+ name : govulncheck
3+
4+ on :
5+ pull_request :
6+ push :
7+ branches :
8+ - main
9+
10+ env :
11+ # Use the Go toolchain installed by setup-go
12+ # https://github.com/actions/setup-go/issues/457
13+ GOTOOLCHAIN : local
14+
15+ jobs :
16+ vulnerabilities :
17+ if : ${{ github.repository == 'CrunchyData/postgres-operator' }}
18+ permissions :
19+ security-events : write
20+
21+ runs-on : ubuntu-latest
22+ steps :
23+ - uses : actions/checkout@v4
24+
25+ # Install Go and produce a SARIF report. This fails only when the tool is
26+ # unable to scan.
27+ - uses : golang/govulncheck-action@v1
28+ with :
29+ output-format : ' sarif'
30+ output-file : ' govulncheck-results.sarif'
31+ repo-checkout : false
32+
33+ # Submit the SARIF report to GitHub code scanning. Pull request checks
34+ # succeed or fail according to branch protection rules.
35+ # - https://docs.github.com/en/code-security/code-scanning
36+ # TODO: https://go.dev/issue/70157
37+ - if : ${{ false }}
38+ uses : github/codeql-action/upload-sarif@v3
39+ with :
40+ sarif_file : ' govulncheck-results.sarif'
41+
42+ # Print any detected vulnerabilities to the workflow log. This step fails
43+ # when the tool detects a vulnerability in code that is called.
44+ # - https://go.dev/blog/govulncheck
45+ - uses : golang/govulncheck-action@v1
46+ with :
47+ repo-checkout : false
You can’t perform that action at this time.
0 commit comments