File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6565 fetch-depth : 0
6666 - name : setup trivy
6767 run : |
68- docker build --output=/usr/local/bin/ -f "src/base/.devcontainer/Dockerfile.trivy.${ARCH}" .
68+ mkdir -p "$RUNNER_TEMP/bin"
69+ docker build --output="$RUNNER_TEMP/bin" -f "src/base/.devcontainer/Dockerfile.trivy.${ARCH}" .
70+ echo "$RUNNER_TEMP/bin" >> "$GITHUB_PATH"
6971 env :
7072 ARCH : ' ${{ matrix.arch }}'
7173 - name : setup node
Original file line number Diff line number Diff line change 11FROM alpine:3.23.3 AS build
22ARG TARGETARCH
33RUN apk add --no-cache cosign bash curl jq
4- COPY scripts/install_trivy.sh /tmp/install_trivy.sh
4+ COPY --chmod=755 scripts/install_trivy.sh /tmp/install_trivy.sh
55RUN case "${TARGETARCH}" in \
66 x86_64|amd64) TRIVY_ARCH=64bit ;; \
77 aarch64|arm64) TRIVY_ARCH=ARM64 ;; \
Original file line number Diff line number Diff line change 11FROM alpine:3.23.3 AS build
2- ARG TARGETARCH
32RUN apk add --no-cache cosign bash curl jq
4- COPY src/base/.devcontainer/scripts/install_trivy.sh /tmp/install_trivy.sh
3+ COPY --chmod=755 src/base/.devcontainer/scripts/install_trivy.sh /tmp/install_trivy.sh
54RUN INSTALL_DIR=/tmp/trivy/ ARCH=64bit /tmp/install_trivy.sh
65
76FROM scratch
Original file line number Diff line number Diff line change 11FROM alpine:3.23.3 AS build
2- ARG TARGETARCH
32RUN apk add --no-cache cosign bash curl jq
4- COPY src/base/.devcontainer/scripts/install_trivy.sh /tmp/install_trivy.sh
3+ COPY --chmod=755 src/base/.devcontainer/scripts/install_trivy.sh /tmp/install_trivy.sh
54RUN INSTALL_DIR=/tmp/trivy/ ARCH=ARM64 /tmp/install_trivy.sh
65
76FROM scratch
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ set -euo pipefail
33
44DEFAULT_INSTALL_DIR=" /usr/local/bin"
55INSTALL_DIR=" ${INSTALL_DIR:- $DEFAULT_INSTALL_DIR } "
6- VERSION=" v0.69.3"
6+ VERSION=" ${VERSION :- v0.69.3} "
77DEFAULT_ARCH=" 64bit"
88ARCH=" ${ARCH:- $DEFAULT_ARCH } "
99RELEASE_NUMBER=" ${VERSION# v} "
You can’t perform that action at this time.
0 commit comments