Skip to content

ci: install golangci-lint with go install, not a third-party action - #396

Open
ktn-jamf wants to merge 1 commit into
mainfrom
claude/golangci-lint-action-restriction-a08ce9
Open

ktn-jamf wants to merge 1 commit into
mainfrom
claude/golangci-lint-action-restriction-a08ce9

Conversation

@ktn-jamf

Copy link
Copy Markdown
Collaborator

Summary

Since about 22:00 UTC on 2026-09-23, the Jamf-Concepts organization Actions policy allows only GitHub-owned actions and the pattern Jamf-Concepts/crypto-approval-action@*. CI on pull requests stops before it starts, with this error:

The action golangci/golangci-lint-action@v9 is not allowed in Jamf-Concepts/jamf-cli because all actions must be from a repository owned by your enterprise, created by GitHub, or match the pattern: Jamf-Concepts/crypto-approval-action@*.

Example: https://github.com/Jamf-Concepts/jamf-cli/actions/runs/36062148685

Change

The Lint step in .github/workflows/ci.yaml no longer uses golangci/golangci-lint-action. It runs these commands:

go install github.com/golangci/golangci-lint/v2/cmd/[email protected]
golangci-lint run
  • The version is pinned to v2.14.0. Before, the step used latest.
  • go install builds the binary with the Go toolchain from go.mod.

Not in this PR

sync-specs.yaml uses peter-evans/create-pull-request@v8, which the same policy blocks. That workflow runs only on manual dispatch. A separate change will replace it.

Test plan

  • Locally, go install [email protected] and golangci-lint run reported 0 issues.
  • The CI run on this PR starts and the Lint step passes.

🤖 Generated with Claude Code

Since 2026-09-23, the Jamf-Concepts Actions policy allows only
GitHub-owned actions and Jamf-Concepts/crypto-approval-action.
golangci/golangci-lint-action is not on that list, so every CI run on
a pull request stopped with startup_failure.

The Lint step now installs golangci-lint v2.14.0 with go install and
runs it. The version is pinned. Before, the step used "latest". The
binary is built with the Go toolchain from go.mod.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch has not been deployed

No deployments
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.

1 participant