Skip to content

dmitry-workato/fetch-secrets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fetch-secrets

Fetch github secrets of a given repository the github user has write access to.

Usage

The 'git', 'curl' and 'jq' utilities are required to run this script. From the root of the cloned github repo run:

curl -s https://raw.githubusercontent.com/dmitry-workato/fetch-secrets/main/script.sh | bash -s DATABRICKS_PERSONAL_ACCESS_TOKEN

The script relies on the GITHUB_TOKEN environment variable to get write access to the github repository and read access to the github actions of the repository. Here are the required permissions for the token:

img

It is a good practice always have such a token in your environment to simplify work with the Github.

On successful run the secrets will be stored in local file 'fetch-gha-secrets-unix_time.txt' in ready to "source" by a shell format.

About

Fetch github secrets of given respository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages