Skip to content

[pre-commit.ci] pre-commit autoupdate #787

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #787

---
name: Lint Python issues
on:
push:
pull_request:
branches: [main]
jobs:
python-lint-job:
runs-on: ubuntu-latest
permissions:
# required for all workflows
security-events: write
steps:
- name: Repository checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: VCS Diff Lint
uses: fedora-copr/vcs-diff-lint-action@3fe529c95a55cf7d25d1ef73d53f790710c9a352 # v1.10.0
id: VCS_Diff_Lint
with:
subdirectory: backend
install_rpm_packages: |
python3-starlette python3-requests python3-sentry-sdk+fastapi python3-regex python3-httpx
- name: Upload artifact with detected defects in SARIF format
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
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@ae9ef3a1d2e3413523c3741725c30064970cc0d4 # v3.32.5
with:
sarif_file: ${{ steps.VCS_Diff_Lint.outputs.sarif }}
if: ${{ always() }}