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)
- Naming inconsistency betweeen `folder` for Homebrew and `directory` for AUR HOT 1
- Why cannot GitHub PAT be used for AUR? HOT 7
- Allow intermediate (multi-stage) copies in Docker builds HOT 2
- GoReleaser edit draft status even for published release HOT 3
- `skip_upload: false` skip not only artifact upload, but also git tag pushing HOT 1
- Prebuilt binaries cannot be used with dockers HOT 4
- v1.25.0 creates draft GitHub releases with the wrong tag name HOT 2
- Support for `--draft` flag in `goreleaser release` command HOT 1
- Retry Gumroad API on failed network call HOT 4
- gorelease should output the warnings during builds HOT 1
- winget on windows runner creates wrong PR HOT 1
- bug: Creating a tag on non-`main` branch and releasing will move the tag to `main` HOT 2
- build failing on arm v7 HOT 3
- Sign step fails with: `Non-interactive mode detected, using device flow.` HOT 2
- Termux: bad system call
- Split does not work with snapshot HOT 3
- snapcraft 8.2.x not working with goreleaser HOT 14
- Termux can't access internet because android don't allow to `/etc/resolv.conf` HOT 1
- Supports `tar.zst` as an archive format HOT 1
- Maximum SHA length in the changelog HOT 2
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.