Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ jobs:
.dockerignore
.trivyignore
.trivyignore-mcp-server
.trivyignore-tofu
src
pyproject.toml
uv.lock
Expand Down Expand Up @@ -563,6 +564,7 @@ jobs:
.dockerignore
.trivyignore
.trivyignore-mcp-server
.trivyignore-tofu
src
pyproject.toml
uv.lock
Expand Down Expand Up @@ -678,6 +680,7 @@ jobs:
.dockerignore
.trivyignore
.trivyignore-mcp-server
.trivyignore-tofu
src
pyproject.toml
uv.lock
Expand Down
10 changes: 3 additions & 7 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Trivy vulnerability ignore file.
# Pinned findings that cannot be remediated immediately must record a reason and expiration date (exp: YYYY-MM-DD).

# CVE-2026-78661 (HIGH) in golang.org/x/net v0.60.0, which the pinned gh v2.103.3 (usr/local/bin/gh)
# vendors; fixed in x/net 0.62.0. No cli/cli release has the fix: v2.103.3, the newest, has x/net
# 0.60.0 and trunk has 0.61.0. The owner allowed this entry for 14 days on 2026-11-07. The fix is a bump of the
# gh pin, tracked in #3920 (see #3881). Trivy has no path field in this file format, so the entry
# matches the id in every binary of the image.
CVE-2026-78661 exp:2026-11-21
# The scans of the Service, runner and MCP server images read this file. An entry here matches its
# ID in every binary of each image, so a finding of a tool that only the runner and MCP server
# images hold goes in `.trivyignore-tofu` or `.trivyignore-mcp-server`, and not here.
3 changes: 3 additions & 0 deletions .trivyignore-mcp-server
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ CVE-2026-78669 exp:2026-11-20

# CVE-2026-78661 (HIGH) in golang.org/x/net v0.57.0, vendored by pinned kubectl v1.37.2; fixed in x/net 0.62.0. On 2026-11-17 kubectl v1.37.2 is the newest stable release, and the go.mod of v1.37.2 and of the branch release-1.37 has x/net 0.57.0. Added in #5582. Renewed in #6079. Tracked in #6084 (see SECURITY.md #a-finding-with-no-fix).
CVE-2026-78661 exp:2026-11-20

# CVE-2026-97054 (HIGH) in the Go stdlib v1.26.10 of pinned kubectl v1.37.2; fixed in Go 1.26.11 and 1.27.4 (2026-11-10). On 2026-11-19 kubectl v1.37.2 (published 2026-10-28) is the newest stable release, and v1.38.0-beta.0 is a pre-release. The entry of `.trivyignore-tofu` for this id is for the runner tools; this entry keeps kubectl covered when that entry goes. Added on 2026-11-19, so its limit of 14 days in all is 2026-12-03. Tracked in #6084 (see SECURITY.md #a-finding-with-no-fix).
CVE-2026-97054 exp:2026-11-22
21 changes: 16 additions & 5 deletions .trivyignore-tofu
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Trivy vulnerability ignore file for the images that hold OpenTofu (#5866).
# Trivy vulnerability ignore file for the runner and MCP server images, which hold OpenTofu and the
# other tools of the `runner-tools` stage (#5866).
# Pinned findings that cannot be remediated immediately must record a reason and expiration date (exp: YYYY-MM-DD).
# Only the scans of the runner and MCP server images read this file, so its entries do not hide a
# finding of the Service image. Trivy has no path field in this file format, so an entry matches
# the id in every binary of the runner and MCP server images.
# The runner and MCP server images hold the pinned OpenTofu v1.13.9
# (opt/devops-tools/tools/tofu/1.13.9/tofu), and its vendored Go modules are older than the fixed
# versions. Read on 2026-11-18: v1.13.9 (published 2026-11-05) is the newest release. Its go.mod
# holds go-jose v4.1.4 (fixed 4.1.6), x/mod v0.39.0 (fixed 0.40.0), x/net v0.57.0 (fixed 0.60.0)
# and grpc v1.83.1 (fixed 1.83.2). OpenTofu main holds every fix, so the next release should hold
# them. The entries expire in 3 days, and the entry in `.trivyignore` for the pinned gh does not
# cover them: the pinned gh holds x/net v0.60.0, so a copy of this file there would hide that
# finding if it returns. Trivy has no path field in this file format, so an entry matches the id
# in every binary of the image. Tracked in #5866.
# them. The entries expire in 3 days. Tracked in #5866.
# go-jose v4.1.4 in OpenTofu v1.13.9; fixed in 4.1.6 (#5866).
CVE-2026-116587 exp:2026-11-21
# x/mod v0.39.0 in OpenTofu v1.13.9; fixed in 0.40.0 (#5866).
Expand All @@ -19,3 +20,13 @@ CVE-2026-56865 exp:2026-11-21
CVE-2026-78669 exp:2026-11-21
# grpc v1.83.1 in OpenTofu v1.13.9; fixed in 1.83.2 (#5866).
CVE-2026-84445 exp:2026-11-21
# x/net v0.61.0 in promtool v3.16.0 and v0.57.0 in OpenTofu v1.13.9; fixed in 0.62.0. Read on
# 2026-11-19: both are the newest releases. The pinned gh v2.105.0 holds x/net v0.62.0, so the
# entry left `.trivyignore`. The owner allowed this id on 2026-11-07 for 14 days, to 2026-11-21.
# Tracked in #6365 (promtool) and #5866 (OpenTofu).
CVE-2026-78661 exp:2026-11-21
# Go stdlib v1.27.3 in promtool v3.16.0, OpenTofu v1.13.9, Trivy v0.76.2 and actionlint 1.17.1;
# fixed in Go 1.26.11 and 1.27.4 (2026-11-10). Read on 2026-11-19: each is the newest release of
# its tool and is older than Go 1.27.4. Added on 2026-11-19. Tracked in #6365 (promtool), #5866
# (OpenTofu), #6366 (Trivy) and #6367 (actionlint).
CVE-2026-97054 exp:2026-11-22
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ FROM ghcr.io/astral-sh/uv:0.13.9@sha256:d3b601f0c7b118bc1753febf7c41cc80981df678
FROM node:24-trixie-slim@sha256:af02d57b57719b9657a45199a79264a9437940cd55b3c7b3fc99615654f124a0 AS node

# The maintained actionlint fork that knows current runner labels, pinned by digest (#1501,
# #3108). Its 1.17.1 release holds a fixed Go toolchain, so the image scan accepts it.
# #3108). Its 1.17.1 release holds Go 1.27.3, and `.trivyignore-tofu` names the finding of that Go
# version until a release holds the fix (#6367).
FROM docker.io/kjanat/actionlint:1.17.1@sha256:c0a63b3e5c974c2466ead39404b70e448176beaff8c5ec7af0b2e96191aea661 AS actionlint

# The requirements of `uv.lock`, with their hashes and without the project (#4550). A release
Expand Down Expand Up @@ -41,17 +42,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends -o Acquire::Ret
rm -rf /var/lib/apt/lists/* && \
case "${TARGETARCH}" in \
amd64) \
url="https://github.com/cli/cli/releases/download/v2.103.3/gh_2.103.3_linux_amd64.tar.gz"; \
sha=4c806978ffce1cec70853302a56d70ac6da4f19bae7adca4e1a8ab00633dd91d ;; \
url="https://github.com/cli/cli/releases/download/v2.105.0/gh_2.105.0_linux_amd64.tar.gz"; \
sha=79e7ab5db738c48777b696e374f8b428f0647debfb424f44d2f426370407fe2f ;; \
arm64) \
url="https://github.com/cli/cli/releases/download/v2.103.3/gh_2.103.3_linux_arm64.tar.gz"; \
sha=ee32df2323c8847f5fac6cb6b4b69ca75828e9329a8f22f677021f7b3306ce63 ;; \
url="https://github.com/cli/cli/releases/download/v2.105.0/gh_2.105.0_linux_arm64.tar.gz"; \
sha=b1278c75107423d818f1937fd92cafc9e5e9b606631568f68d7fb816f5885a02 ;; \
*) echo "no gh build for ${TARGETARCH}" >&2; exit 1 ;; \
esac && \
curl -fsSL --retry 8 --retry-all-errors --retry-delay 2 -o /tmp/gh.tar.gz "$url" && \
echo "$sha /tmp/gh.tar.gz" | sha256sum -c - && \
tar -xzf /tmp/gh.tar.gz -C /tmp && \
install -m 755 "/tmp/gh_2.103.3_linux_${TARGETARCH}/bin/gh" /usr/local/bin/gh && \
install -m 755 "/tmp/gh_2.105.0_linux_${TARGETARCH}/bin/gh" /usr/local/bin/gh && \
rm -rf /tmp/gh*

COPY --from=lock /lock/runtime.txt /lock/runtime.txt
Expand Down
Loading
Loading