Skip to content
This repository was archived by the owner on Oct 6, 2026. It is now read-only.

Enable Takumi Guard - #197

Merged
llamerada-jp merged 1 commit into
mainfrom
enable-takumi-guard
Sep 3, 2026
Merged

llamerada-jp merged 1 commit into
mainfrom
enable-takumi-guard

Conversation

@daichimukai

Copy link
Copy Markdown
Contributor

See the commit message.

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>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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: write permissions in workflows so Takumi Guard can authenticate where applicable.
  • Enhance container builds to pass GOPROXY as a build-arg and optionally mount ~/.netrc as 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.

Comment thread Makefile Resolved
Comment thread Dockerfile Resolved
@daichimukai
daichimukai marked this pull request as ready for review September 3, 2026 08:27
@daichimukai
daichimukai requested a review from a team as a code owner September 3, 2026 08:27
@llamerada-jp
llamerada-jp merged commit f1906e4 into main Sep 3, 2026
14 checks passed
@llamerada-jp
llamerada-jp deleted the enable-takumi-guard branch September 3, 2026 10:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants