Skip to content

Commit

Permalink
Add masking to encrypted environment variables in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Noam Ross committed Nov 28, 2023
1 parent bcd38fe commit e92c331
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
sudo apt-get install -y --no-install-recommends git-crypt
echo $GIT_CRYPT_KEY64 > git_crypt_key.key64 && base64 -di git_crypt_key.key64 > git_crypt_key.key && git-crypt unlock git_crypt_key.key
rm git_crypt_key.key git_crypt_key.key64
# Select all values in .env and print with "::add-mask::" to obfuscate
grep -v '^#' .env | sed -E 's/(.*)=(.*)/\2/' | xargs -I '{}' echo "::add-mask::{}"
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
Expand Down

0 comments on commit e92c331

Please sign in to comment.