From 8f3491605a1f1e42242d4386f351b411665855a4 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 16 Sep 2024 17:08:56 +0200 Subject: [PATCH] Sync the vcs-diff-lint-action config with latest specs --- .github/workflows/python-diff-lint.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-diff-lint.yml b/.github/workflows/python-diff-lint.yml index 60d2728..1c10071 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] @@ -10,7 +11,25 @@ jobs: runs-on: ubuntu-latest steps: - name: Repository checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - 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 + with: + linter_tags: | + ruff + pylint + + - name: Upload artifact with detected defects in SARIF format + uses: actions/upload-artifact@v4 + 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@v3 + with: + sarif_file: ${{ steps.VCS_Diff_Lint.outputs.sarif }} + if: ${{ always() }}