Skip to content

Fix lint workflow: drop unresolvable setup-goproxy action - #20

Merged
AleBaccin merged 1 commit into
mainfrom
alebaccin/fix-lint-goproxy
Sep 28, 2026
Merged

AleBaccin merged 1 commit into
mainfrom
alebaccin/fix-lint-goproxy

Conversation

@AleBaccin

Copy link
Copy Markdown
Contributor

Problem

Every PR in this repo fails lint at job setup, 3s in, before checkout:

##[error]Unable to resolve action `github/setup-goproxy`, not found

Root cause

github/setup-goproxy is not deleted, renamed, or archived — it is alive and maintained (gh api repos/github/setup-goproxy returns HTTP 200, archived: false, last push 2026-09-25), and the SHA we pin is still the current v1.1.0. Re-pinning would not help.

The actual cause is a visibility mismatch: github/setup-goproxy is private, and gh-elm is public. A public repository's workflow cannot resolve an action from a private repository in the same org without an explicit access grant. Hence the failure at "Prepare all required actions", before any step runs.

Why removing it is the right fix, rather than granting access

goproxy exists to resolve private github.com/github/* Go modules over OIDC. gh-elm has none — every dependency is public OSS (charmbracelet/*, spf13/cobra, stretchr/testify, google/uuid, golang.org/x/*, zalando/go-keyring). There are no replace directives, and no GOPRIVATE / GONOSUMDB / GOFLAGS anywhere in the workflows, Makefile or script/.

The clinching evidence: ci.yml builds, vets and tests the exact same module graph with no goproxy step, and passes. Lint pulls nothing extra — make lint calls script/lint-go-code, which calls script/golangci-lint, which fetches the linter by curling the public upstream installer, not through a Go module proxy.

id-token: write goes with it, since nothing else in the job needs OIDC.

Provenance

This is a cherry-pick of 61da97d (@ismith / copilot-swe-agent, 2026-09-09), which fixed this correctly but is stranded inside the unmerged feature PR #13, so it was not going to reach main any time soon. Pulled out standalone to unblock the repo.

One addition on top of the cherry-pick: it dropped the comment explaining cache: false along with the id-token rationale, leaving a bare unexplained cache: false. Reworded rather than deleted, since the tag-run reason still stands.

Verification

make lint passes locally on the same golangci-lint v2.11.4 the workflow installs — 0 issues. The lint job should now reach that command instead of dying at setup.

Every PR fails at job setup: "Unable to resolve action
github/setup-goproxy, not found". github/setup-goproxy is private and
gh-elm is public, so the workflow cannot resolve it. Not a bad pin; the
SHA is still the current v1.1.0.

goproxy exists to resolve private github.com/github/* modules. gh-elm has
none -- every dependency is public OSS, which is why ci.yml builds and
tests the same module graph without it.

Drops id-token: write with it, since nothing else needs OIDC.

Cherry-picked from 61da97d, stranded on an unmerged feature branch (#13).

Co-authored-by: ismith <172694+ismith@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e558d009-3ea1-4455-b1fd-c2a180332509
Copilot AI balanced review requested due to automatic review settings September 28, 2026 12:19
@AleBaccin
AleBaccin requested a review from a team as a code owner September 28, 2026 12:19

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.

Copilot review overview

🟢 Approval recommended

The removed action and permission are unnecessary, and the lint dependency path remains valid.

Review effort: Balanced
Findings: None

What changed in this PR

Removes the inaccessible private Go proxy action so the public repository’s lint workflow can run successfully.

Changes:

  • Removes unnecessary OIDC permissions and goproxy setup.
  • Retains the tag-related cache rationale.
File Description
.github/​workflows/​lint.yaml Simplifies lint setup to use public dependencies directly.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@AleBaccin
AleBaccin added this pull request to the merge queue Sep 28, 2026
Merged via the queue into main with commit 06059a9 Sep 28, 2026
14 checks passed
@AleBaccin
AleBaccin deleted the alebaccin/fix-lint-goproxy branch September 28, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants