Skip to content

Commit

Permalink
fix: using new version for sarif upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed May 11, 2022
1 parent 4e73142 commit e7e2a46
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/_self-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,18 @@ jobs:
with:
args: --repo=https://github.com/${{github.repository}}

- name: 'Dependency Review'
uses: actions/dependency-review-action@v1
- name: Run Trivy scanner
uses: aquasecurity/trivy-action@master
with:
scan-type: fs
format: 'sarif'
severity: 'CRITICAL,HIGH'
output: 'trivy-results.sarif'

- name: Upload Trivy results
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand All @@ -34,6 +44,9 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

- name: 'Dependency Review'
uses: actions/dependency-review-action@v1

Ossar-Analysis:
runs-on: windows-latest

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_self-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
output: 'trivy-results.sarif'

- name: Upload Trivy results
uses: github/codeql-action/upload-sarif@v1
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'

Expand Down

0 comments on commit e7e2a46

Please sign in to comment.