-
Notifications
You must be signed in to change notification settings - Fork 67
47 lines (41 loc) · 1.11 KB
/
Copy pathcodacy.yml
File metadata and controls
47 lines (41 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Codacy Security Scan
on:
push:
branches: [ "main" ]
paths:
- "du_setup.sh"
- ".github/workflows/codacy.yml"
pull_request:
branches: [ "main" ]
paths:
- "du_setup.sh"
schedule:
- cron: '44 7 * * 0'
permissions:
contents: read
jobs:
codacy-security-scan:
permissions:
contents: read
security-events: write
actions: read
name: Codacy Security Scan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Run Codacy Analysis CLI
uses: codacy/codacy-analysis-cli-action@30783d03e758713bb5ed7b79292cfb14b9dd9a4a
with:
verbose: true
output: results.sarif
format: sarif
gh-code-scanning-compat: true
max-allowed-issues: 2147483647
- name: Sanitize SARIF for GitHub
run: |
jq '(.runs |= unique_by(.tool.driver.name))' results.sarif > codacy_cleaned.sarif
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: codacy_cleaned.sarif