Skip to content

Commit

Permalink
fix(actions): fix osv action in code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoDerp committed Feb 1, 2025
1 parent 233a9c7 commit c830a47
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
jobs:
build:
runs-on: ${{ matrix.os }}
permissions:
contents: read
packages: write
attestations: write
id-token: write
strategy:
matrix:
os: [ubuntu-latest]
Expand All @@ -30,14 +35,6 @@ jobs:

- name: Run Ruff
run: ruff check --output-format=github .

- name: OSV scan
uses: "geoderp/osv-scanner-action/.github/workflows/[email protected]"
with:
fail-on-vuln: false
scan-args: |-
--recursive
./

# - name: Type Check with Mypy
# shell: bash
Expand All @@ -47,4 +44,17 @@ jobs:
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v4
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
scan-pr:
needs:
- build
uses: "geoderp/osv-scanner-action/.github/workflows/[email protected]"
with:
fail-on-vuln: false
scan-args: |-
--recursive
./
permissions:
security-events: write
contents: read
actions: read

0 comments on commit c830a47

Please sign in to comment.