File tree Expand file tree Collapse file tree 2 files changed +1544
-1563
lines changed
Expand file tree Collapse file tree 2 files changed +1544
-1563
lines changed Original file line number Diff line number Diff line change 1313jobs :
1414 # This workflow contains a single job called "trivy"
1515 trivy :
16- # The type of runner that the job will run on
17- runs-on : [self-hosted, linux, codebuild]
16+ runs-on : ubuntu-latest
1817
1918 # Steps represent a sequence of tasks that will be executed as part of the job
2019 steps :
21- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22- - uses : actions/checkout@v3
20+ - uses : actions/checkout@v4
2321
24- - name : Run Trivy vulnerability scanner in repo mode
25- uses : aquasecurity/trivy-action@0.28.0
26- with :
27- scan-type : " fs"
28- scan-ref : " ${{ github.workspace }}"
29- trivy-config : " ${{ github.workspace }}/trivy.yml"
22+ - name : Install Trivy
23+ run : |
24+ sudo apt-get install -y wget apt-transport-https gnupg lsb-release
25+ wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | gpg --dearmor | sudo tee /usr/share/keyrings/trivy.gpg > /dev/null
26+ echo "deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb generic main" | sudo tee /etc/apt/sources.list.d/trivy.list
27+ sudo apt-get update -qq
28+ sudo apt-get install -y trivy
29+ trivy --version
30+
31+ - name : Run Trivy vulnerability scanner (fs)
32+ run : |
33+ trivy fs . --config "${{ github.workspace }}/trivy.yml"
You can’t perform that action at this time.
0 commit comments