Skip to content

Commit

Permalink
ci: update vcs-diff-lint config
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
praiskup committed Aug 31, 2024
1 parent 0989162 commit c6321a1
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/python-diff-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: Lint Python issues

on:
push:
pull_request:
branches: [main]

Expand All @@ -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() }}

0 comments on commit c6321a1

Please sign in to comment.