Giter Site home page Giter Site logo

create-branch-password-action's People

Contributors

bmorrisondev avatar michaelhays avatar mscoutermarsh avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

create-branch-password-action's Issues

Unquoted outputs

Hello, I was so glad to see you had some github actions for planetscale, these make life easier ๐Ÿ˜

I had a quick question about the outputs though, would it possible to add some outputs that didn't contain the quotes?

Currently when I try to use ${{ steps.create_password.outputs.username }} it returns like this "new_username"

e.g. in my pipeline if im constructing my connection string on the fly I might do the following

"mysql://${{steps.create_password.outputs.username}}:${{ steps.create_password.outputs.password }}@eu-west.connect.psdb.cloud/something?sslaccept=strict"

this becomes

"mysql://"new_username":"new_password"@eu-west.connect.psdb.cloud/something?sslaccept=strict"

I believe this could be achieved by adding -r to your jq command e.g.

username_raw=$(jq -n "$CMDOUT" | jq -r '.username')

Thanks!

Service token unable to create a branch password

Hey!

I'm facing an issue with permissions. I am unsure if this was deprecated but I am unable to find create_branch_password permission anywhere.

I'm referring to the guide here: https://planetscale.com/docs/devops/create-branch-password-action
API Ref states that this is a required permission for service token: https://api-docs.planetscale.com/reference/create-a-password

The option to add create_branch_password to service token is nowhere to be found:
Screenshot 2024-02-14 at 14 01 56

Was this permission and therefore the action deprecated? How can we create a branch password with service token?

Edit:
Apparently it works if you give full branch permissions. Not sure which permission here is actually responsible for password creation.

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.