Skip to content

Commit

Permalink
test: ✅ Add Codacy Security Scan
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-s-betke committed Apr 7, 2021
1 parent cc94fa3 commit 5e7932f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/codacy-analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Codacy Security Scan

on: [push, pull_request]

jobs:
codacy-security-scan:
name: Codacy Security Scan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master

- name: Run Codacy Analysis CLI
uses: codacy/codacy-analysis-cli-action@master
with:
output: results.sarif
format: sarif
# Adjust severity of non-security issues
gh-code-scanning-compat: true
# Force 0 exit code to allow SARIF file generation
# This will handover control about PR rejection to the GitHub side
max-allowed-issues: 2147483647

# Upload the SARIF file generated in the previous step
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@master
with:
sarif_file: results.sarif
3 changes: 3 additions & 0 deletions .vscode/cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
"calcext",
"Choco",
"chocolately",
"Codacy",
"codecov",
"codeql",
"commitlint",
"concat",
"datastyle",
Expand Down Expand Up @@ -61,6 +63,7 @@
"Remoting",
"repo",
"rsid",
"sarif",
"Segoe",
"shellcheck",
"showvariable",
Expand Down

0 comments on commit 5e7932f

Please sign in to comment.