op-monitorism: harden Dockerfile with Chainguard base + Go 1.26 - #179
Merged
Conversation
Replace the golang:1.22-alpine builder and alpine:3.18 runtime with chainguard/wolfi-base for both stages (go-1.26 installed in the builder), matching the pattern used across the infra repos. Bump the go directive to 1.26.0. Bump dependencies to clear known vulnerabilities: - golang.org/x/crypto -> v0.52.0 - golang.org/x/net -> v0.55.0 - github.com/consensys/gnark-crypto -> v0.18.1 plus patch-level bumps across the module. Verified: docker build succeeds; op-monitorism binary runs (--help).
The ci-builder image ships golangci-lint v1.61 built with go1.22, which refuses go.mod >= 1.23. Move the lint job to cimg/go:1.26 and install golangci-lint v2.11.4, matching the setup used in the infra repo. Replace the v1 CLI flags with an equivalent .golangci.yml and fix the issues newly reported by the v2 staticcheck merge.
falcorocks
enabled auto-merge (squash)
July 22, 2026 12:13
Ethnical
reviewed
Jul 22, 2026
| ci_builder_image: | ||
| type: string | ||
| default: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:v0.55.0 | ||
| default: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest |
Collaborator
There was a problem hiding this comment.
Hmm to have the golint ci etc okay I see!
Ethnical
approved these changes
Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Harden the
op-monitorismimage and clear known dependency CVEs.Change
golang:1.22-alpinebuilder andalpine:3.18runtime withchainguard/wolfi-basefor both stages (go-1.26installed in the builder), matching the pattern used across the infra repos.godirective to1.26.0.golang.org/x/crypto→ v0.52.0golang.org/x/net→ v0.55.0github.com/consensys/gnark-crypto→ v0.18.1CI note
The
ci-builderimage ships golangci-lint v1.61 (built with go1.22), which refuses modules targeting go ≥ 1.23. The lint job now runs oncimg/go:1.26with golangci-lint v2.11.4 (same setup as the infra repo), with the previous CLI flags moved to.golangci.yml. The v2 staticcheck merge surfaced 6 pre-existing findings (unchecked defer, tagged switch, capitalized error strings), fixed here.Verification
docker build ./op-monitorismsucceeds.op-monitorism --helpruns in the built image.golangci-lint runclean; module tests pass.