Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cx-ruiaraujo committed Apr 10, 2024
1 parent 36c4fd9 commit 4e41a6a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/sec-checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: security-checks-manager
on:
push:
branches:
- main
pull_request:
jobs:
trivy-file-system:
name: Trivy Scan
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@master
with:
scan-type: "fs"
ignore-unfixed: true
format: "json"
output: "./trivy-results.json"
severity: "CRITICAL,HIGH,MEDIUM"
exit-code: "1"
- name: Inspect action report
if: always()
shell: bash
run: cat ./trivy-results.json
- if: always()
name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: trivy code report
path: ./trivy-results.json

0 comments on commit 4e41a6a

Please sign in to comment.