Comments (4)
as far as I know, that should work 🤔
basically, when opening a gs://
bucket, gocloud does gcp.DefaultCredentials()
, which will try to read that file... I can see if I can repro this later, but my guess would be that while creating the SA file in github actions it is somehow getting corrupted? Maybe when you set the secret on github actions you added an extra char or something... I would probably start with that...
from goreleaser.
closing for lack of response and probably user error.. please comment/reopen if that's not the case!
from goreleaser.
It ended up being a missing toplevel environment
key in the workflow. In other words, the secret was in a a Github environment and the workflow was not. Fundamentally, it was a user error; however it was incredibly difficult to figure out what was going on, so I think there's an opportunity for better documentation at the very least.
I think the docs should illustrate the use of google-github-actions/auth, first, along with an alternative example example demonstrating how to get a secret into a file where Goreleaser can find it. Right now, the goreleaser docs on GCS don't give you anything beyond the name of the GOOGLE_APPLICATION_CREDENTIALS
variable. Since this particular env var is a little different (a path, not a value), I think some better examples would go a long way to improving user experience.
from goreleaser.
Got it! Yeah, I can see that.
Do you wanna PR something? Even if it's raw, I can add some touches later...
from goreleaser.
Related Issues (20)
- Maximum SHA length in the changelog HOT 2
- What is needed for IPK support? HOT 2
- Support Github Artifact Attestations HOT 6
- Allow inline nfpm to build AIX rpms if/when that gets added HOT 1
- Draft release config is ignored for github release in latest version HOT 2
- Recommended to remove annoying thanks HOT 2
- allow to sign without notarizing
- Implement --auto-snapshot for build command too HOT 1
- Generated Homebrew formulae incompatible with brew v4.3.1 HOT 1
- Prebuilt builder error `prebuilt not found in type config.Build` HOT 2
- Gitlab, Get default branch fails in Gitlab CI HOT 5
- Add archive to -skip flag
- Cannot go install v2.0.0 HOT 3
- wrong current directory HOT 8
- init generates a version 1 config file HOT 1
- When `blobs: ids: []` is set, no artifacts should be uploaded
- Sign goreleaser nfpms HOT 1
- Building Multiple Binaries with a Single Command HOT 1
- Add checksum-related overrides for blobs HOT 2
- Can't add extra file to artifactory upload
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goreleaser.