Skip to content

Commit

Permalink
Add Codacy Analysis CLI workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Marvin A. Ruder <[email protected]>
  • Loading branch information
marvinruder committed Nov 22, 2023
1 parent ae4c12e commit c4d3473
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Codacy Analysis CLI

on: ["push"]

jobs:
codacy-analysis-cli:
name: Codacy Analysis CLI
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Codacy Analysis CLI
uses: codacy/codacy-analysis-cli-action@v4
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
upload: true
output: results.sarif
format: sarif
gh-code-scanning-compat: true
run-gosec: "true"
run-staticcheck: "true"
max-allowed-issues: 2147483647
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif

0 comments on commit c4d3473

Please sign in to comment.