Skip to content

Commit 846dfc4

Browse files
committed
update github action with trivy scanning
1 parent 06aefe6 commit 846dfc4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/node.js.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ jobs:
3333
steps:
3434
- uses: actions/checkout@v4
3535
- name: Install Trivy
36-
run: curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh
36+
run: |
37+
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh
38+
sudo mv trivy /usr/local/bin/trivy
3739
- name: Scan Docker Image
38-
run: ./trivy image simple-application:sqlite
40+
run: trivy image simple-application:sqlite
3941
- name: Scan Kubernetes Manifests
40-
run: ./trivy k8s --report all --file simple-app/templates/deployment.yaml
42+
run: trivy k8s --report all --file simple-app/templates/deployment.yaml

0 commit comments

Comments
 (0)