diff --git a/.github/workflows/codacy-analysis.yaml b/.github/workflows/codacy-analysis.yaml new file mode 100644 index 00000000..c1c5de28 --- /dev/null +++ b/.github/workflows/codacy-analysis.yaml @@ -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 diff --git a/.vscode/cSpell.json b/.vscode/cSpell.json index c5c629df..3d2903b6 100644 --- a/.vscode/cSpell.json +++ b/.vscode/cSpell.json @@ -23,7 +23,9 @@ "calcext", "Choco", "chocolately", + "Codacy", "codecov", + "codeql", "commitlint", "concat", "datastyle", @@ -61,6 +63,7 @@ "Remoting", "repo", "rsid", + "sarif", "Segoe", "shellcheck", "showvariable",