gha-secrets
Create or update your GitHub Actions secrets.
It's probably simpler to just use the gh cli which is installed on GitHub runners
⚠️ The new Secret value wont change for the workflow using this action or any jobs currently running⚠️
Options
option | value | notes |
---|---|---|
token |
GitHub Token w/ correct permissions | required |
location |
Where the secret is repo , org , (evnironment name) |
defaults to repo /repository |
name |
Name of the secret to update | required |
value |
New value to update with | required |
visibility |
required for org secrets | defaults to selected |
Usage
- id: generate_secret
run: Generate my token
- uses: dacbd/gha-secrets@v1
with:
token: ${{ secrets.TOKEN }}
name: 'GHA_SECRETS_TEST'
value: ${{ steps.generate_secret.outputs.value }}
References
Similar actions
- https://github.com/hmanzur/actions-set-secret
- https://github.com/jon-grey/github-actions-secrets-creator
License
MIT