Skip to content

Commit f9ea321

Browse files
committed
[Tool] Trivy Pipeline
Signed-off-by: AndyZiYe <[email protected]>
1 parent a750964 commit f9ea321

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/trivy-pipeline.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ concurrency:
1616

1717
jobs:
1818
trivy-checker:
19-
runs-on: [self-hosted, normal]
19+
runs-on: [self-hosted, trivy]
2020
name: RUN
2121
steps:
22-
- name: Init
23-
run: |
24-
mkdir ${{ github.workspace }}/trivy_temp
22+
- name: Checkout code
23+
uses: actions/checkout@v3
2524

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

0 commit comments

Comments
 (0)