mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-08-11 13:11:56 +00:00
robot: Fixup trivy scans (#1093)
* 🐧 Delete any files dangling in /tmp Signed-off-by: mudler <mudler@c3os.io> * 🤖 Skip /tmp scan in trivy Signed-off-by: mudler <mudler@c3os.io> --------- Signed-off-by: mudler <mudler@c3os.io>
This commit is contained in:
parent
2b87d05def
commit
199f7fff43
@ -414,6 +414,8 @@ docker:
|
|||||||
END
|
END
|
||||||
END
|
END
|
||||||
|
|
||||||
|
RUN rm -rf /tmp/*
|
||||||
|
|
||||||
SAVE IMAGE $IMAGE
|
SAVE IMAGE $IMAGE
|
||||||
|
|
||||||
docker-rootfs:
|
docker-rootfs:
|
||||||
@ -537,9 +539,9 @@ trivy-scan:
|
|||||||
ARG FLAVOR
|
ARG FLAVOR
|
||||||
ARG VARIANT
|
ARG VARIANT
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
RUN /trivy filesystem --format sarif -o report.sarif --no-progress /
|
RUN /trivy filesystem --skip-dirs /tmp --format sarif -o report.sarif --no-progress /
|
||||||
RUN /trivy filesystem --format template --template "@/contrib/html.tpl" -o report.html --no-progress /
|
RUN /trivy filesystem --skip-dirs /tmp --format template --template "@/contrib/html.tpl" -o report.html --no-progress /
|
||||||
RUN /trivy filesystem -f json -o results.json --no-progress /
|
RUN /trivy filesystem --skip-dirs /tmp -f json -o results.json --no-progress /
|
||||||
SAVE ARTIFACT /build/report.sarif report.sartif AS LOCAL build/${VARIANT}-${FLAVOR}-${VERSION}-trivy.sarif
|
SAVE ARTIFACT /build/report.sarif report.sartif AS LOCAL build/${VARIANT}-${FLAVOR}-${VERSION}-trivy.sarif
|
||||||
SAVE ARTIFACT /build/report.html report.html AS LOCAL build/${VARIANT}-${FLAVOR}-${VERSION}-trivy.html
|
SAVE ARTIFACT /build/report.html report.html AS LOCAL build/${VARIANT}-${FLAVOR}-${VERSION}-trivy.html
|
||||||
SAVE ARTIFACT /build/results.json results.json AS LOCAL build/${VARIANT}-${FLAVOR}-${VERSION}-trivy.json
|
SAVE ARTIFACT /build/results.json results.json AS LOCAL build/${VARIANT}-${FLAVOR}-${VERSION}-trivy.json
|
||||||
|
Loading…
Reference in New Issue
Block a user