This repository was archived by the owner on Oct 6, 2026. It is now read-only.
Repository navigation
Enable Takumi Guard - #197
Merged
Merged
Conversation
Enable Takumi Guard in CI to protect against supply chain attacks.
Propagate GOPROXY and ${HOME}/.netrc into container images so that
Takumi Guard is also enabled during builds inside containers. Builds
will remain possible even if GOPROXY are not set or .netrc does not
exist.
Signed-off-by: Daichi Mukai <daichi-mukai@cybozu.co.jp>
There was a problem hiding this comment.
🟡 Changes recommended
The Docker build is currently miswired (GOPROXY build-arg is not applied to Go commands) and BuildKit reliance should be made deterministic for docker-build to avoid build failures when BuildKit is disabled.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR introduces Takumi Guard to the repository’s GitHub Actions by centralizing Go setup into a composite action, and improves container builds to support authenticated module fetching (via optional .netrc secret) and configurable Go module proxy settings.
Changes:
- Add a composite GitHub Action (
.github/actions/setup-go) to set up Go and Takumi Guard, and migrate workflows to use it. - Grant
id-token: writepermissions in workflows so Takumi Guard can authenticate where applicable. - Enhance container builds to pass
GOPROXYas a build-arg and optionally mount~/.netrcas a BuildKit secret during module download/build.
File summaries
| File | Description |
|---|---|
| Makefile | Adds docker build args for GOPROXY and optional .netrc secret; applies args to docker-build/docker-buildx. |
| Dockerfile | Adds ARG GOPROXY and uses BuildKit secret mounts for go mod download and go build. |
| .github/workflows/release.yaml | Switches to the composite setup action and enables OIDC permissions. |
| .github/workflows/meta-actions.yaml | Switches to the composite setup action for Go-dependent meta checks; enables OIDC permissions where needed. |
| .github/workflows/main.yaml | Switches to the composite setup action and enables OIDC permissions. |
| .github/workflows/helm.yaml | Switches to the composite setup action and enables OIDC permissions. |
| .github/workflows/e2e.yaml | Switches to the composite setup action and enables OIDC permissions. |
| .github/actions/setup-go/action.yaml | New composite action encapsulating actions/setup-go + Takumi Guard setup. |
Review details
- Files reviewed: 8/8 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
molpako
approved these changes
Sep 3, 2026
llamerada-jp
approved these changes
Sep 3, 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
See the commit message.