Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically add .env variables to repo secrets #11

Open
noamross opened this issue Dec 20, 2021 · 0 comments
Open

Automatically add .env variables to repo secrets #11

noamross opened this issue Dec 20, 2021 · 0 comments
Labels
enhancement New feature or request low-priority

Comments

@noamross
Copy link

noamross commented Dec 20, 2021

  • See https://gist.github.com/philip-gai/2b21293b178aa6ea6903e99cc1c32c4f for an action that modifies secrets
  • After git-crypt unlocking (in the same step), run a loop over the lines in .env adding all variables to secrets
    • cat .env >> $GITHUB_ENV is an option for just adding them to the environment, but that may not obfuscate them in logs and such.
    • use ${{ secret.VARIABLE}} syntax elsewhere.
    • Should this be a job rather than a step? Should other jobs depend on it?
@noamross noamross added enhancement New feature or request low-priority labels Dec 20, 2021
@noamross noamross changed the title Automatically and .env variables to repo secrets Automatically add .env variables to repo secrets Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low-priority
Projects
None yet
Development

No branches or pull requests

1 participant