Skip to content

Commit

Permalink
Sync the vcs-diff-lint-action config with latest specs
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Sep 16, 2024
1 parent bebb42f commit 8f34916
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 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,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/[email protected]
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() }}

0 comments on commit 8f34916

Please sign in to comment.