From c6321a15d544830a95c3a8db96a7714c073e8687 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 30 Aug 2024 15:13:36 +0200 Subject: [PATCH] ci: update vcs-diff-lint config - sync with Copr: https://github.com/fedora-copr/copr/blob/main/.github/workflows/python-diff-lint.yml - enable debugging - lint also behave/ and releng/ files --- .github/workflows/python-diff-lint.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/python-diff-lint.yml b/.github/workflows/python-diff-lint.yml index 1f4b08fee..d9e431e49 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,26 +11,29 @@ 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@v1 id: VCS_Diff_Lint with: - subdirectory: mock + subdirectories: | + behave + mock + releng linter_tags: | ruff pylint - - if: ${{ always() }} - name: Upload artifact with detected defects in SARIF format - uses: actions/upload-artifact@v3 + - 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() }} - - if: ${{ always() }} - name: Upload SARIF to GitHub using github/codeql-action/upload-sarif - uses: github/codeql-action/upload-sarif@v2 + - 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() }}