File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Security Scan
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ codacy-security-scan :
11+ name : Scan
12+ runs-on : ${{ matrix.os }}
13+ strategy :
14+ matrix :
15+ os : [ubuntu-latest]
16+
17+ steps :
18+ - name : Check out code into $GITHUB_WORKSPACE directory
19+ uses : actions/checkout@v3.5.2
20+
21+ - name : Run Codacy Analysis CLI
22+ uses : codacy/codacy-analysis-cli-action@v4.3.0
23+ with :
24+ output : results.sarif
25+ format : sarif
26+ # Adjust severity of non-security issues
27+ gh-code-scanning-compat : true
28+ # Force 0 exit code to allow SARIF file generation
29+ # This will handover control about PR rejection to the GitHub side
30+ max-allowed-issues : 2147483647
31+
32+ - name : Upload SARIF results file
33+ uses : github/codeql-action/upload-sarif@v2
34+ with :
35+ sarif_file : results.sarif
You can’t perform that action at this time.
0 commit comments