Skip to content

Commit

Permalink
action: add trivy ci for image vulnerability scan
Browse files Browse the repository at this point in the history
Signed-off-by: Yan Song <[email protected]>
  • Loading branch information
imeoer committed Mar 2, 2023
1 parent 2fc62a6 commit e0dc454
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI

on:
push:
branches: ["*"]
pull_request:
branches: [main]

jobs:
build:
name: Trivy Scan
runs-on: ubuntu-latest
steps:
- name: Install Trivy
run: |
wget https://github.com/aquasecurity/trivy/releases/download/v0.38.0/trivy_0.38.0_Linux-64bit.deb
sudo dpkg -i trivy_0.18.3_Linux-64bit.deb
- name: Scan Image
run: |
trivy image --timeout 60m ghcr.io/containerd/nydus-snapshotter:latest

0 comments on commit e0dc454

Please sign in to comment.