Skip to content

Avoid third-party actions in fork go-tests workflow#265

Merged
manu-ns merged 2 commits into
1.22.3-criteofrom
ci-go-tests-selected-actions
Jul 3, 2026
Merged

Avoid third-party actions in fork go-tests workflow#265
manu-ns merged 2 commits into
1.22.3-criteofrom
ci-go-tests-selected-actions

Conversation

@manu-ns

@manu-ns manu-ns commented Jul 3, 2026

Copy link
Copy Markdown

Summary

  • replace the changed-files action with local git diff logic
  • install and run golangci-lint directly from the Makefile-pinned version
  • remove Enterprise Vault and protected-branch Slack action references from the go-tests path
  • fix a pre-existing gofmt drift in api/acl.go that surfaced once go-tests started running

Why

criteo-forks/consul allows only selected GitHub Actions. GitHub validates referenced actions before job conditions are evaluated, so unused Vault/Slack references and third-party helper actions can make go-tests fail at workflow startup before any test job is created.

After the workflow started creating jobs, CI also reported api/acl.go as not gofmt-formatted. That formatting issue is unrelated to the workflow commit, so it is kept as a separate commit in this PR.

GitHub selected-actions blocks workflows at startup when a referenced action is not allowlisted, even if the step would be skipped at runtime.

Replace changed-files and golangci-lint action usage with shell/go install steps, and remove Enterprise/Slack-only action references from the fork test path.
@manu-ns
manu-ns requested a review from a team July 3, 2026 12:03
The fork go-tests workflow now runs far enough to surface an existing gofmt drift in api/acl.go.

Apply gofmt so the CI check can pass without mixing this formatting fix into the workflow commit.
@manu-ns
manu-ns merged commit f74d514 into 1.22.3-criteo Jul 3, 2026
33 of 35 checks passed
@manu-ns
manu-ns deleted the ci-go-tests-selected-actions branch July 3, 2026 14:37
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.

2 participants