Giter VIP home page Giter VIP logo

Comments (4)

caarlos0 avatar caarlos0 commented on June 15, 2024

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.

caarlos0 avatar caarlos0 commented on June 15, 2024

closing for lack of response and probably user error.. please comment/reopen if that's not the case!

from goreleaser.

flowchartsman avatar flowchartsman commented on June 15, 2024

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.

caarlos0 avatar caarlos0 commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.