Take Trivy out of the PR jobs; composer audit stays, Trivy runs from the homelab
This commit is contained in:
1 parent
41d82a969a
commit
bb1f4e1292
6 files changed
+4
-30
No files matched your search
@@ -1,13 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Installs Trivy at a fixed version, checked against a fixed checksum, so a changed download fails the
|
||||
# job instead of running. To update: take the version and the checksum of the Linux-64bit tarball from
|
||||
# https://github.com/aquasecurity/trivy/releases (the checksums file of that release).
|
||||
set -eu
|
||||
|
||||
VERSION=0.77.0
|
||||
SHA256=c9504e6ff8184b91e8e7266c84ad8538f76347f1e5488e07cb083855883cd9a6
|
||||
|
||||
curl -fsSL -o /tmp/trivy.tar.gz "https://github.com/aquasecurity/trivy/releases/download/v${VERSION}/trivy_${VERSION}_Linux-64bit.tar.gz"
|
||||
echo "${SHA256} /tmp/trivy.tar.gz" | sha256sum -c -
|
||||
tar -xzf /tmp/trivy.tar.gz -C /usr/local/bin trivy
|
||||
trivy --version
|
||||
Reference in new issue
Block a user