Skip to content

Commit

Permalink
[Tool] Trivy Pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: AndyZiYe <[email protected]>
  • Loading branch information
andyziye committed May 21, 2024
1 parent a750964 commit f9ea321
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/trivy-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ concurrency:

jobs:
trivy-checker:
runs-on: [self-hosted, normal]
runs-on: [self-hosted, trivy]
name: RUN
steps:
- name: Init
run: |
mkdir ${{ github.workspace }}/trivy_temp
- name: Checkout code
uses: actions/checkout@v3

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@d710430a6722f083d3b36b8339ff66b32f22ee55 #0.19.0
env:
TMPDIR: ${{ github.workspace }}/trivy_temp # Required to prevent Trivy running out of space
with:
image-ref: "registry.cn-zhangjiakou.aliyuncs.com/starrocks/dev-env-centos7:3.1-latest"
scan-type: "image"
Expand Down

0 comments on commit f9ea321

Please sign in to comment.