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

Hide env variables with a flag #672

Open
cjoecker opened this issue Mar 8, 2023 · 0 comments
Open

Hide env variables with a flag #672

cjoecker opened this issue Mar 8, 2023 · 0 comments

Comments

@cjoecker
Copy link

cjoecker commented Mar 8, 2023

I want to save the commit hash and date in an env variable when I deploy using Github Actions so that I can show it in my app. For that, I have this in my Github Action:

      - name: 📅 Save Commit Date
        run: |
          arc env -e staging --add LATEST_COMMIT_DATE "$(git show -s --format=%ci "$GITHUB_SHA")"
          arc env -e staging --add LATEST_COMMIT_SHA "$GITHUB_SHA"
        env:
          CI: true
          AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
          AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

The problem is, that whenever I add a new env variable with arc env, the console is logging the values of all my other values. That includes my secrets. I want to avoid the secrets being logged in GitHub Actions since that is not so safe.

image

I would love to have a flag like --quiet to avoid showing the secret values while adding a new variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant