Skip to content

Commit 60b3f7e

Browse files
Merge pull request #66 from Siddhant-K-code/coadcy-analysis-integration
Added Codacy Analysis CLI Action #66
2 parents 04e85a1 + e3356c7 commit 60b3f7e

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Codacy Security Scan
2+
3+
on:
4+
push:
5+
branches: ["master", "main"]
6+
pull_request:
7+
branches: ["master", "main"]
8+
9+
jobs:
10+
codacy-security-scan:
11+
name: Codacy Security Scan
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@master
16+
17+
- name: Run Codacy Analysis CLI
18+
uses: codacy/codacy-analysis-cli-action@master
19+
with:
20+
output: results.sarif
21+
format: sarif
22+
# Adjust severity of non-security issues
23+
gh-code-scanning-compat: true
24+
# Force 0 exit code to allow SARIF file generation
25+
# This will handover control about PR rejection to the GitHub side
26+
max-allowed-issues: 2147483647
27+
28+
# Upload the SARIF file generated in the previous step
29+
- name: Upload SARIF results file
30+
uses: github/codeql-action/upload-sarif@main
31+
with:
32+
sarif_file: results.sarif

0 commit comments

Comments
 (0)