Skip to content

Commit 8cb30db

Browse files
authored
Create security_scan.yml
1 parent a0e9543 commit 8cb30db

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

0 commit comments

Comments
 (0)