Skip to content

Commit 065263a

Browse files
authored
chore: update dependabot config and pin Docker images (#15194)
1 parent b529393 commit 065263a

File tree

5 files changed

+25
-6
lines changed

5 files changed

+25
-6
lines changed

.github/dependabot.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ updates:
5151

5252
# Update our Dockerfile.
5353
- package-ecosystem: "docker"
54-
directory: "/scripts/"
54+
directories:
55+
- "/dogfood/contents"
56+
- "/scripts"
57+
- "/examples/templates/docker/build"
58+
- "/examples/parameters/build"
59+
- "/scaletest/templates/scaletest-runner"
60+
- "/scripts/ironbank"
5561
schedule:
5662
interval: "weekly"
5763
time: "06:00"
@@ -68,6 +74,9 @@ updates:
6874
directories:
6975
- "/site"
7076
- "/offlinedocs"
77+
- "/scripts"
78+
- "/scripts/apidocgen"
79+
7180
schedule:
7281
interval: "monthly"
7382
time: "06:00"

.github/workflows/pr-deploy.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,11 @@ jobs:
216216
DOCKER_CLI_EXPERIMENTAL: "enabled"
217217
CODER_IMAGE_TAG: ${{ needs.get_info.outputs.CODER_IMAGE_TAG }}
218218
steps:
219+
- name: Harden Runner
220+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
221+
with:
222+
egress-policy: audit
223+
219224
- name: Checkout
220225
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
221226
with:
@@ -267,6 +272,11 @@ jobs:
267272
PR_URL: ${{ needs.get_info.outputs.PR_URL }}
268273
PR_HOSTNAME: "pr${{ needs.get_info.outputs.PR_NUMBER }}.${{ secrets.PR_DEPLOYMENTS_DOMAIN }}"
269274
steps:
275+
- name: Harden Runner
276+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
277+
with:
278+
egress-policy: audit
279+
270280
- name: Set up kubeconfig
271281
run: |
272282
set -euo pipefail

dogfood/contents/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM rust:slim AS rust-utils
1+
FROM rust:slim@sha256:9abf10cc84dfad6ace1b0aae3951dc5200f467c593394288c11db1e17bb4d349 AS rust-utils
22
# Install rust helper programs
33
# ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
44
ENV CARGO_INSTALL_ROOT=/tmp/
55
RUN cargo install exa bat ripgrep typos-cli watchexec-cli && \
66
# Reduce image size.
77
rm -rf /usr/local/cargo/registry
88

9-
FROM ubuntu:jammy AS go
9+
FROM ubuntu:jammy@sha256:0e5e4a57c2499249aafc3b40fcd541e9a456aab7296681a3994d631587203f97 AS go
1010

1111
# Install Go manually, so that we can control the version
1212
ARG GO_VERSION=1.22.5
@@ -94,7 +94,7 @@ RUN curl -L -o protoc.zip https://github.com/protocolbuffers/protobuf/releases/d
9494
unzip protoc.zip && \
9595
rm protoc.zip
9696

97-
FROM ubuntu:jammy
97+
FROM ubuntu:jammy@sha256:0e5e4a57c2499249aafc3b40fcd541e9a456aab7296681a3994d631587203f97
9898

9999
SHELL ["/bin/bash", "-c"]
100100

examples/jfrog/docker/build/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu
1+
FROM ubuntu@sha256:99c35190e22d294cdace2783ac55effc69d32896daaa265f0bbedbcde4fbe3e5
22

33
RUN apt-get update \
44
&& apt-get install -y \

scaletest/templates/scaletest-runner/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Future improvements will include versioning and including the version
66
# in the template push.
77

8-
FROM codercom/enterprise-base:ubuntu
8+
FROM codercom/enterprise-base:ubuntu@sha256:22837dba6f92f075c29797652699df748ec223e04dc87627f3d2bae0a6bce7bd
99

1010
ARG DEBIAN_FRONTEND=noninteractive
1111

0 commit comments

Comments
 (0)