Skip to content

[cloclo] Add storage.googleapis.com to go ecosystem#15953

Merged
pelikhan merged 2 commits intomainfrom
cloclo/add-storage-googleapis-to-go-ecosystem-ff805f9a70690fb6
Feb 15, 2026
Merged

[cloclo] Add storage.googleapis.com to go ecosystem#15953
pelikhan merged 2 commits intomainfrom
cloclo/add-storage-googleapis-to-go-ecosystem-ff805f9a70690fb6

Conversation

@github-actions
Copy link
Contributor

Summary

Fixes #14216 by adding storage.googleapis.com to the go ecosystem network allowlist.

Problem

When workflows use network allowed [defaults, go], the AWF firewall allows proxy.golang.org but blocks redirects to storage.googleapis.com (the CDN backing store for Go modules), causing 403 Forbidden errors during go build, go test, etc.

Changes Made

  1. Updated pkg/workflow/data/ecosystem_domains.json: Added storage.googleapis.com to the go ecosystem identifier
  2. Updated pkg/workflow/ecosystem_domains_test.go: Added test assertion to verify storage.googleapis.com is included in the go ecosystem

Impact

Workflows using the go ecosystem identifier will now be able to download Go modules successfully without manually adding storage.googleapis.com to their allowed domains list.

Testing

The ecosystem test has been updated to verify that storage.googleapis.com is properly included. The test will pass once the changes are deployed and the firewall configuration is updated.


✨ Created by Claude via /cloclo 🎭

AI generated by /cloclo

  • expires on Feb 17, 2026, 4:29 PM UTC

Fixes issue #14216 where Go module downloads fail with 403 Forbidden
errors because proxy.golang.org redirects to storage.googleapis.com,
which was not included in the go ecosystem network allowlist.

The go ecosystem identifier now includes storage.googleapis.com,
allowing workflows using [defaults, go] to successfully download
Go modules without manually adding the domain.

Also updated the ecosystem test to verify storage.googleapis.com
is properly included in the go ecosystem domains.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@pelikhan pelikhan marked this pull request as ready for review February 15, 2026 16:42
Copilot AI review requested due to automatic review settings February 15, 2026 16:42
@pelikhan pelikhan merged commit 38dad27 into main Feb 15, 2026
53 of 56 checks passed
@pelikhan pelikhan deleted the cloclo/add-storage-googleapis-to-go-ecosystem-ff805f9a70690fb6 branch February 15, 2026 16:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds storage.googleapis.com to the Go ecosystem domain allowlist so Go module downloads work when network allowed [defaults, go] is used (fixing redirects from proxy.golang.org).

Changes:

  • Add storage.googleapis.com to the go entry in ecosystem_domains.json.
  • Update the Go ecosystem expansion test to assert storage.googleapis.com is included.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
pkg/workflow/data/ecosystem_domains.json Expands Go ecosystem allowlist to include the CDN host used for module archive downloads.
pkg/workflow/ecosystem_domains_test.go Adds a test expectation ensuring storage.googleapis.com is present when expanding the Go ecosystem.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 152 to 159
expectedDomains := []string{
"go.dev",
"golang.org",
"proxy.golang.org",
"sum.golang.org",
"pkg.go.dev",
"storage.googleapis.com",
}
Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

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

The embedded go ecosystem list in ecosystem_domains.json includes goproxy.io, but this test doesn’t assert it. That means the test could pass even if goproxy.io is accidentally removed from the go allowlist. Add goproxy.io to expectedDomains here to keep the test aligned with the source allowlist.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant