Skip to content

Commit 2868f93

Browse files
Piyush Singh GaurPiyush Singh Gaur
authored andcommitted
fix(deps): fix fast-xml-parser vulnerability
fix fast-xml-parser vulnerability GH-0
1 parent b8ad262 commit 2868f93

File tree

2 files changed

+1544
-1563
lines changed

2 files changed

+1544
-1563
lines changed

.github/workflows/trivy.yaml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,21 @@ on:
1313
jobs:
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"

0 commit comments

Comments
 (0)