You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extend the cross-organization CLI portability standard to Go-based command-line repositories without changing the already-certified Rust/Node workflow.
Matrix and validation
Every caller runs independently on Ubuntu 24.04, macOS 15, and Windows 2025. The workflow installs Go from the caller's go.mod, enforces a read-only module graph, verifies formatting of every tracked Go source, runs go vet ./... and go test ./..., proves the selected package is main, builds a trimmed real executable, executes it with --help, and verifies a clean checkout.
Security and reproducibility
contents: read only;
checkout and setup-go pinned by full commit SHA;
no persisted checkout credentials;
repository-relative working-directory validation;
GOFLAGS=-mod=readonly and GOTOOLCHAIN=local;
build output written only under runner temporary storage;
optional private Git access accepted only as an explicit reusable-workflow secret and removed afterward;
no package publication, release, API calls, or deployment behavior.
Certification
A companion zed-pkg-test/.github PR will invoke this exact candidate commit with a dependency-free Go CLI fixture on all three operating systems. This PR remains draft until those jobs pass. The test caller will then be repinned to the immutable merge commit and rerun before its own merge.
Public test-organization certification is complete for exact head ac77dc43ccda86797bf7b41901125d799d1dff40.
zed-pkg-test/.github run 31272936571 passed all three independent jobs:
Ubuntu 24.04
macOS 15
Windows 2025
Every job passed exact line-ending normalization, repository-relative input validation, Go installation from go.mod, read-only module download and verification, tracked-source gofmt, go vet ./..., go test ./..., proof that the selected package is main, trimmed real executable build, --help process smoke, and clean-worktree verification.
Central exact-head baseline policy run 31272927974 and public privacy boundary run 31272927964 also passed. The final PR contains only the reusable workflow and its standard; no temporary writer remains.
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
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.
Purpose
Extend the cross-organization CLI portability standard to Go-based command-line repositories without changing the already-certified Rust/Node workflow.
Matrix and validation
Every caller runs independently on Ubuntu 24.04, macOS 15, and Windows 2025. The workflow installs Go from the caller's
go.mod, enforces a read-only module graph, verifies formatting of every tracked Go source, runsgo vet ./...andgo test ./..., proves the selected package ismain, builds a trimmed real executable, executes it with--help, and verifies a clean checkout.Security and reproducibility
contents: readonly;GOFLAGS=-mod=readonlyandGOTOOLCHAIN=local;Certification
A companion
zed-pkg-test/.githubPR will invoke this exact candidate commit with a dependency-free Go CLI fixture on all three operating systems. This PR remains draft until those jobs pass. The test caller will then be repinned to the immutable merge commit and rerun before its own merge.Refs DEN-3020