Skip to content

Commit

Permalink
Add SAST
Browse files Browse the repository at this point in the history
  • Loading branch information
Polina Sheviakova committed Jun 14, 2024
1 parent fe70466 commit 4d4a8da
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/sast.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: SAST

on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]

jobs:
scan:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@0.22.0
with:
scan-type: 'fs'
ignore-unfixed: true
format: 'sarif'
output: 'trivy-results.sarif'
severity: 'LOW'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'

0 comments on commit 4d4a8da

Please sign in to comment.