Skip to content

Commit

Permalink
ci: upload vcs-diff-lint sarif data to GitHub UI
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Aug 2, 2023
1 parent 7eb3c32 commit d0e7290
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/python-diff-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,30 @@ on:
jobs:
python-lint-job:
runs-on: ubuntu-latest

permissions:
# required for all workflows
security-events: write

steps:
- name: Repository checkout
uses: actions/checkout@v3

- name: VCS Diff Lint
uses: fedora-copr/[email protected]
- id: VCS_Diff_Lint
name: VCS Diff Lint
uses: fedora-copr/vcs-diff-lint-action@v1
with:
linter_tags: pylint

- 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() }}

0 comments on commit d0e7290

Please sign in to comment.