You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/codacy-analysis.yml
+19-6
Original file line number
Diff line number
Diff line change
@@ -10,37 +10,50 @@ name: Codacy Security Scan
10
10
11
11
on:
12
12
push:
13
-
branches: [ '**' ]
13
+
branches: ["**"]
14
14
pull_request:
15
-
branches: [ '**' ]
15
+
branches: ["**"]
16
+
workflow_dispatch:
16
17
17
18
jobs:
18
19
codacy-security-scan:
19
20
name: Codacy Security Scan
20
21
runs-on: ubuntu-latest
22
+
strategy:
23
+
matrix:
24
+
# List of Codacy-supported tools: https://docs.codacy.com/repositories-configure/codacy-configuration-file/#which-tools-can-be-configured-and-which-name-should-i-use%20%20tool-timeout:
25
+
tool: [
26
+
cppcheck, # static analysis of C/C++ code
27
+
flawfinder, # a static analysis tool for finding vulnerabilities in C/C++ source code
28
+
pmd, # includes CPD, the copy-paste-detector. CPD finds duplicated code in C/C++, etc
29
+
markdownlint, # A Node.js style checker and lint tool for Markdown/CommonMark files
30
+
shellcheck, # a static analysis tool for shell scripts
31
+
pylintpython3, # a static code analyser for Python 3
32
+
]
21
33
steps:
22
34
# Checkout the repository to the GitHub Actions runner
23
35
- name: Checkout code
24
36
uses: actions/checkout@v4
25
37
26
38
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
27
39
- name: Run Codacy Analysis CLI
28
-
uses: codacy/codacy-analysis-cli-action@1.1.0
40
+
uses: codacy/codacy-analysis-cli-action@master
29
41
with:
30
42
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
31
43
# You can also omit the token and run the tools that support default configurations
0 commit comments