Skip to content

Commit

Permalink
ci(lint): Add Differential PyLint GitHub Action (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku authored Jan 31, 2023
1 parent a4b46e3 commit feef283
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/differential-pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---

name: Differential PyLint

on:
pull_request:
branches: [ main ]

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest

permissions:
security-events: write

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

- id: PyLint
name: Differential PyLint
uses: fedora-copr/vcs-diff-lint-action@v1

- if: ${{ always() }}
name: Upload artifact with detected PyLint defects in SARIF format
uses: actions/upload-artifact@v3
with:
name: Differential PyLint SARIF
path: ${{ steps.PyLint.outputs.sarif }}

- if: ${{ failure() }}
name: Upload SARIF to GitHub using github/codeql-action/upload-sarif
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.PyLint.outputs.sarif }}

...

0 comments on commit feef283

Please sign in to comment.