planetscale / create-branch-password-action Goto Github PK
View Code? Open in Web Editor NEWA GitHub Action that creates a new password for your PlanetScale database branch
License: Apache License 2.0
A GitHub Action that creates a new password for your PlanetScale database branch
License: Apache License 2.0
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!
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:
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.