diff --git a/.github/workflows/codacy.yml b/.github/workflows/codacy.yml new file mode 100644 index 000000000..5e4732146 --- /dev/null +++ b/.github/workflows/codacy.yml @@ -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