Skip to content

Commit 7afaccd

Browse files
committed
Add Dependabot configuration for GitHub Actions and Docker
Inline base image references in Dockerfile (remove ARG indirection) so Dependabot can detect and propose updates to pinned digests.
1 parent 0d6d430 commit 7afaccd

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

.github/dependabot.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
cooldown:
8+
default-days: 7
9+
10+
- package-ecosystem: "docker"
11+
directories:
12+
- "/docker"
13+
- "/test"
14+
- "/test/test-dns"
15+
- "/test/test-server"
16+
schedule:
17+
interval: "weekly"
18+
cooldown:
19+
default-days: 7

docker/Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
ARG BUILDKIT_VERSION=v0.28.0
2-
ARG BUILDKIT_DIGEST=sha256:37539dd4d60fc70968d164d3850d903a2c56f6402214a1953fbf9fcb81ada731
31
ARG CNI_VERSION=v1.9.0
4-
ARG ALPINE_RELEASE=3.23
5-
ARG ALPINE_DIGEST=sha256:25109184c71bdad752c8312a8623239686a9a2071e8825f20acb8f2198c3f659
62

73
# Prepare dependencies
8-
FROM alpine:${ALPINE_RELEASE}@${ALPINE_DIGEST} AS deps
4+
FROM alpine:3.23@sha256:25109184c71bdad752c8312a8623239686a9a2071e8825f20acb8f2198c3f659 AS deps
95
ARG CNI_VERSION
106
RUN apk add --no-cache curl gettext && \
117
mkdir -p /opt/cni/bin && \
@@ -14,7 +10,7 @@ RUN apk add --no-cache curl gettext && \
1410
| tar -C /opt/cni/bin -xz ./bridge ./host-local ./loopback
1511

1612
# Final image
17-
FROM moby/buildkit:${BUILDKIT_VERSION}@${BUILDKIT_DIGEST}
13+
FROM moby/buildkit:v0.28.0@sha256:37539dd4d60fc70968d164d3850d903a2c56f6402214a1953fbf9fcb81ada731
1814

1915
LABEL org.opencontainers.image.title="buildcage" \
2016
org.opencontainers.image.description="Secure Docker build environment with network access control" \

0 commit comments

Comments
 (0)