@@ -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.
4747FROM apt-base as just
48- ARG JUST_VERSION=1.41.0 # repo=casey/just
48+ ARG JUST_VERSION=1.42.4 # repo=casey/just
4949RUN 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.
5353FROM apt-base as yq
54- ARG YQ_VERSION=v4.46 .1 # repo=mikefarah/yq
54+ ARG YQ_VERSION=v4.47 .1 # repo=mikefarah/yq
5555RUN 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.
8282FROM apt-base as kubectl
83- ARG KUBECTL_VERSION=v1.33.2 # repo=kubernetes/kubernetes
83+ ARG KUBECTL_VERSION=v1.33.3 # repo=kubernetes/kubernetes
8484RUN 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.
100100FROM apt-base as step
101- ARG STEP_VERSION=v0.28.6 # repo=smallstep/cli
101+ ARG STEP_VERSION=v0.28.7 # repo=smallstep/cli
102102RUN 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"
111111COPY --link --from=kubectl /usr/local/bin/kubectl /bin/
112112COPY --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
165179RUN 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.
169188FROM apt-base as cargo-deny
170189ARG 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.
175194FROM 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-
177196RUN 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
186205FROM scratch as tools-rust
187206COPY --link --from=cargo-action-fmt /usr/local/bin/cargo-action-fmt /bin/
207+ COPY --link --from=cargo-auditable /usr/local/bin/cargo-auditable /bin/
188208COPY --link --from=cargo-deny /usr/local/bin/cargo-deny /bin/
189209COPY --link --from=cargo-nextest /usr/local/bin/cargo-nextest /bin/
190210COPY --link --from=cargo-tarpaulin /usr/local/bin/cargo-tarpaulin /bin/
@@ -259,6 +279,7 @@ COPY --link --from=tools-k8s /etc/* /etc/
259279ENV K3S_IMAGES_JSON=/etc/k3s-images.json
260280COPY --link --from=tools-lint /bin/* /bin/
261281COPY --link --from=tools-net /bin/* /bin/
282+ COPY --link --from=tools-oci /bin/* /bin/
262283COPY --link --from=tools-rust /bin/* /bin/
263284COPY --link --from=tools-script /bin/* /bin/
264285
0 commit comments