Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update vcs-diff-lint config #1439

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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() }}
Loading