diff --git a/.github/workflows/python-diff-lint.yml b/.github/workflows/python-diff-lint.yml index 60d2728..733f791 100644 --- a/.github/workflows/python-diff-lint.yml +++ b/.github/workflows/python-diff-lint.yml @@ -2,6 +2,7 @@ name: Lint Python issues on: + push: pull_request: branches: [main] @@ -13,4 +14,18 @@ jobs: uses: actions/checkout@v3 - name: VCS Diff Lint - uses: fedora-copr/vcs-diff-lint-action@v0.0.2 + uses: fedora-copr/vcs-diff-lint-action@v1 + id: VCS_Diff_Lint + + - name: Upload artifact with detected defects in SARIF format + uses: actions/upload-artifact@v3 + with: + name: VCS Diff Lint SARIF + path: ${{ steps.VCS_Diff_Lint.outputs.sarif }} + if: ${{ always() }} + + - name: Upload SARIF to GitHub using github/codeql-action/upload-sarif + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: ${{ steps.VCS_Diff_Lint.outputs.sarif }} + if: ${{ always() }}