Skip to content

Commit aad7b4a

Browse files
committed
👷 add Codacy security scan workflow for automated analysis
1 parent d92c9f4 commit aad7b4a

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/codacy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Codacy Security Scan
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
schedule:
11+
- cron: '35 11 * * 0'
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
codacy-security-scan:
18+
permissions:
19+
contents: read
20+
security-events: write
21+
actions: read
22+
name: Codacy Security Scan
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v4
27+
- name: Run Codacy Analysis CLI
28+
uses: codacy/codacy-analysis-cli-action@master
29+
with:
30+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
31+
verbose: true
32+
output: results.sarif
33+
format: sarif
34+
gh-code-scanning-compat: true
35+
max-allowed-issues: 2147483647
36+
- name: Upload SARIF results file
37+
uses: github/codeql-action/upload-sarif@v3
38+
with:
39+
sarif_file: results.sarif

0 commit comments

Comments
 (0)