Package: githubsecrets
githubsecretsManage yourGitHub Actionssecrets, with a simple CLIGIF DemoInstallationpipPython v3.6.7 and aboveInstall with pip on your machine; the package is available atPyPi$pipinstallgithubsecretsFrom sourcePython v3.6.7 and aboveClone this repositoryRun thegithubsecretsmodule (directory)python -m githubsecrets --helpDockerExpand/CollapseMount a local directory toroot, the image is available atDockerHubLinux and macOSMount your home directory, or any other directory to save the credentials file$dockerrun--rm-it-v"${HOME}/:/root"unfor19/githubsecretssecret-list-punfor19-rgithubsecrets
...# Output belowOutput[{"base_url":"https://api.github.com/repos/unfor19/githubsecrets","body":{"secrets":[{"created_at":"2020-04-11T00:01:12Z","name":"PIP_PASSWORD","updated_at":"2020-04-11T00:17:39Z"},{"created_at":"2020-04-10T23:21:28Z","name":"PIP_USERNAME","updated_at":"2020-04-11T00:17:20Z"},{"created_at":"2020-04-27T20:44:09Z","name":"testing","updated_at":"2020-04-27T20:45:43Z"},{"created_at":"2020-04-27T20:22:37Z","name":"testrepos","updated_at":"2020-04-27T20:22:37Z"},{"created_at":"2020-04-14T14:14:44Z","name":"TEST_GITHUB_TOKEN","updated_at":"2020-04-14T14:14:44Z"}],"total_count":5},"repository":"githubsecrets","status_code":200}]WindowsMount your Temp directory, or any other directory to save the credentials file. Make sure you use/and not\$ docker run --rm -it -v c:/Temp:/root unfor19/githubsecrets secret-delete -p unfor19 -r githubsecrets -s testrepos
... # Output belowOutput[{"base_url":"https://api.github.com/repos/unfor19/githubsecrets","repository":"githubsecrets","secret_name":"testrepos","status_code":204}]Getting StartedNote: When using Docker, no need to addghs; supply only a command and its argumentsInitialize this application - Creates a credentials file at~/.githubsecrets/credentials$ghsinitGenerate a GitHub Personal-Access-Tokenwith the following permssions:repo (all)admin:public_key > read:public_keySave the token in a safe place; we'll use it in the next stepCreate a profile, use the-pflag and supply a profile name$ghsprofile-apply-pwilly_wonka
...
SUCCESS:Appliedtheprofilewilly_wonkaYou'll be prompted to insert:Github owner - which is your GitHub Organization or GitHub Account name (not email address)Personal access token - that you've created in the previous stepsCreate a GitHub secret, use the-rflag and supply the repository's name. You can apply the same secret to multiple repositories at once, for example:-r "githubsecrets, aws-build-badges"ghssecret-apply-pwilly_wonka-rgithubsecretsYou'll be prompted to insert:Secret nameSecret valueUse it in yourGitHub Actions WorkflowsSnippetsteps:
 - uses: actions/checkout@v2
 - name: Set up Python
   uses: actions/setup-python@v1
   with:
     python-version: "3.6"
 - name: Install dependencies
   run: |
     ...
 - name: Build and publish
   env:
     TWINE_USERNAME: ${{ secrets.PIP_USERNAME }}
     TWINE_PASSWORD: ${{ secrets.PIP_PASSWORD }}
     ...
   run: |
     ...I'm using secrets in this repository, check outthis repository's workflowsStatus codes200 - success204 - success404 - secret or repository not foundAvailable commandsView all available commands withghs --helpUsage: ghs [OPTIONS] COMMAND [ARGS]...

  All commands can run without providing options, and then you'll be
  prompted to insert values.

  Secrets' values and Personal-Access-Tokens are hidden when prompted

Options:
  -ci, --ci  Use this flag to avoid deletion confirmation prompts
  --help     Show this message and exit.

Commands:
  init            Create a credentials file to store your profiles
  profile-apply   Create or modify multiple profiles providing a string...
  profile-delete  Delete multiple profiles providing a string delimited by...
  profile-list    List all profile - truncates personal access tokens
  secret-apply    Apply to multiple repositories providing a string...
  secret-delete   Delete secrets from multiple repositories providing a...
  secret-get      Get secrets from multiple repositories providing a string...
  secret-list     List secrets of multiple repositories providing a string...TroubleshootingUbuntu and DebianThis project uses thekeyringpackage, in some versions of Ubuntu and Debian, you might need to install the following packages$ sudo apt-get update && sudo apt-get install -y libdbus-glib-1-dev
$ pip install secretstorage dbus-python keyringContributingReport issues/questions/feature requests on theIssuessection.Pull requests are welcome! Ideally, create a feature branch and issue for every single change you make. These are the steps:Fork this repoCreate your feature branch from master (git checkout -b my-new-feature)Install from source$gitclonehttps://github.com/${GITHUB_OWNER}/githubsecrets.git&&cdgithubsecrets...$pipinstall--upgradepip...$python-mvenv./ENV$../ENV/bin/activate...$(ENV)pipinstall--editable....# Done! Now when you run 'ghs' it will get automatically updated when you modify the codeAdd the code of your new featureTest - generate a Personal Access Token for testing$(ENV)bashtest_functionality.sh-pPROFILE_NAME-oGITHUB_OWNER-tTEST_GITHUB_TOKEN-rGITHUB_REPOSITORY
...# All good? Move on to the next stepCommit your remarkable changes (git commit -am 'Added new feature')Push to the branch (git push --set-up-stream origin my-new-feature)Create a new Pull Request and tell us about your changesAuthorsCreated and maintained byMeir GabayDesign byfacebook.com/KerenOrDesignLicenseThis project is licensed under the MIT License - see theLICENSEfile for details