Skip to content

Commit adc8d96

Browse files
authored
v47 (#65)
* Add cargo-auditable * Add syft and grype
1 parent b54c94b commit adc8d96

File tree

2 files changed

+27
-6
lines changed

2 files changed

+27
-6
lines changed

Dockerfile

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ RUN url="https://github.com/olix0r/j5j/releases/download/${J5J_VERSION}/j5j-${J5
4545

4646
# just runs build/test recipes. Like `make` but a bit more ergonomic.
4747
FROM apt-base as just
48-
ARG JUST_VERSION=1.41.0 # repo=casey/just
48+
ARG JUST_VERSION=1.42.4 # repo=casey/just
4949
RUN url="https://github.com/casey/just/releases/download/${JUST_VERSION}/just-${JUST_VERSION}-x86_64-unknown-linux-musl.tar.gz" ; \
5050
scurl "$url" | tar zvxf - -C /usr/local/bin just
5151

5252
# yq is kind of like jq, but for YAML.
5353
FROM apt-base as yq
54-
ARG YQ_VERSION=v4.46.1 # repo=mikefarah/yq
54+
ARG YQ_VERSION=v4.47.1 # repo=mikefarah/yq
5555
RUN url="https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64" ; \
5656
scurl -o /yq "$url" && chmod +x /yq
5757

@@ -80,7 +80,7 @@ RUN url="https://github.com/norwoodj/helm-docs/releases/download/$HELM_DOCS_VERS
8080

8181
# kubectl controls kubernetes clusters.
8282
FROM apt-base as kubectl
83-
ARG KUBECTL_VERSION=v1.33.2 # repo=kubernetes/kubernetes
83+
ARG KUBECTL_VERSION=v1.33.3 # repo=kubernetes/kubernetes
8484
RUN url="https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" ; \
8585
scurl -o /usr/local/bin/kubectl "$url" && chmod +x /usr/local/bin/kubectl
8686

@@ -98,7 +98,7 @@ COPY --link k3s-images.json "$K3S_IMAGES_JSON"
9898

9999
# step is a tool for managing certificates.
100100
FROM apt-base as step
101-
ARG STEP_VERSION=v0.28.6 # repo=smallstep/cli
101+
ARG STEP_VERSION=v0.28.7 # repo=smallstep/cli
102102
RUN url="https://dl.smallstep.com/gh-release/cli/gh-release-header/${STEP_VERSION}/step_linux_${STEP_VERSION#v}_amd64.tar.gz" ; \
103103
scurl "$url" | tar xzvf - --strip-components=2 -C /usr/local/bin step_"${STEP_VERSION#v}"/bin/step
104104

@@ -111,6 +111,20 @@ COPY --link --from=k3d /usr/local/etc/k3s-images.json "$K3S_IMAGES_JSON"
111111
COPY --link --from=kubectl /usr/local/bin/kubectl /bin/
112112
COPY --link --from=step /usr/local/bin/step /bin/
113113

114+
FROM apt-base as syft
115+
ARG SYFT_VERSION=v1.29.0 # repo=anchore/syft
116+
RUN url="https://github.com/anchore/syft/releases/download/${SYFT_VERSION}/syft_${SYFT_VERSION#v}_linux_amd64.tar.gz" ; \
117+
scurl "$url" | tar xzvf - -C /usr/local/bin syft
118+
119+
FROM apt-base as grype
120+
ARG GRYPE_VERSION=v0.96.1 # repo=anchore/grype
121+
RUN url="https://github.com/anchore/grype/releases/download/${GRYPE_VERSION}/grype_${GRYPE_VERSION#v}_linux_amd64.tar.gz" ; \
122+
scurl "$url" | tar xzvf - -C /usr/local/bin grype
123+
124+
FROM scratch as tools-oci
125+
COPY --link --from=syft /usr/local/bin/syft /bin/
126+
COPY --link --from=grype /usr/local/bin/grype /bin/
127+
114128
##
115129
## Linting tools
116130
##
@@ -165,6 +179,11 @@ ARG CARGO_ACTION_FMT_VERSION=v1.0.4 # ignore
165179
RUN url="https://github.com/olix0r/cargo-action-fmt/releases/download/release%2F${CARGO_ACTION_FMT_VERSION}/cargo-action-fmt-${CARGO_ACTION_FMT_VERSION}-x86_64-unknown-linux-musl.tar.gz" ; \
166180
scurl "$url" | tar zvxf - -C /usr/local/bin cargo-action-fmt
167181

182+
FROM apt-base as cargo-auditable
183+
ARG CARGO_AUDITABLE_VERSION=v0.6.6 # repo=rust-secure-code/cargo-auditable
184+
RUN url="https://github.com/rust-secure-code/cargo-auditable/releases/download/${CARGO_AUDITABLE_VERSION}/cargo-auditable-x86_64-unknown-linux-gnu.tar.xz" ; \
185+
scurl "$url" | tar xJvf - --strip-components=1 -C /usr/local/bin cargo-auditable-x86_64-unknown-linux-gnu/cargo-auditable
186+
168187
# cargo-deny checks cargo dependencies for licensing and RUSTSEC security issues.
169188
FROM apt-base as cargo-deny
170189
ARG CARGO_DENY_VERSION=0.18.3 # repo=EmbarkStudios/cargo-deny
@@ -173,7 +192,7 @@ RUN url="https://github.com/EmbarkStudios/cargo-deny/releases/download/${CARGO_D
173192

174193
# cargo-nextest is a nicer test runner.
175194
FROM apt-base as cargo-nextest
176-
ARG NEXTEST_VERSION=0.9.100 # repo=nextest-rs/nextest,prefix=cargo-nextest-
195+
ARG NEXTEST_VERSION=0.9.101 # repo=nextest-rs/nextest,prefix=cargo-nextest-
177196
RUN url="https://github.com/nextest-rs/nextest/releases/download/cargo-nextest-${NEXTEST_VERSION}/cargo-nextest-${NEXTEST_VERSION}-x86_64-unknown-linux-gnu.tar.gz" ; \
178197
scurl "$url" | tar zvxf - -C /usr/local/bin cargo-nextest
179198

@@ -185,6 +204,7 @@ RUN url="https://github.com/xd009642/tarpaulin/releases/download/${CARGO_TARPAUL
185204

186205
FROM scratch as tools-rust
187206
COPY --link --from=cargo-action-fmt /usr/local/bin/cargo-action-fmt /bin/
207+
COPY --link --from=cargo-auditable /usr/local/bin/cargo-auditable /bin/
188208
COPY --link --from=cargo-deny /usr/local/bin/cargo-deny /bin/
189209
COPY --link --from=cargo-nextest /usr/local/bin/cargo-nextest /bin/
190210
COPY --link --from=cargo-tarpaulin /usr/local/bin/cargo-tarpaulin /bin/
@@ -259,6 +279,7 @@ COPY --link --from=tools-k8s /etc/* /etc/
259279
ENV K3S_IMAGES_JSON=/etc/k3s-images.json
260280
COPY --link --from=tools-lint /bin/* /bin/
261281
COPY --link --from=tools-net /bin/* /bin/
282+
COPY --link --from=tools-oci /bin/* /bin/
262283
COPY --link --from=tools-rust /bin/* /bin/
263284
COPY --link --from=tools-script /bin/* /bin/
264285

actions/setup-tools/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ inputs:
55
# TODO(ver): CI should validate at this version matches the most recent release tag
66
version:
77
description: Container image version
8-
default: v46
8+
default: v47
99

1010
runs:
1111
using: composite

0 commit comments

Comments
 (0)