You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @jamesarosen,
Thank you for your suggestion! We can definitely see the value in supporting this use case, and we appreciate you bringing it up.
We’d love to see a contribution for this feature! If you’re interested in implementing it, please feel free to open a pull request. We’d be happy to review and collaborate with you on it.
In the meantime, as a potential workaround, you can make use of GitHub Action’s workflow command for masking values in logs. This should help mitigate your issue until there is a more permanent solution in place. For your use case, it can look like this:
while IFS= read -r line || [[ -n "$line" ]]; do
env=${line%\=*}
[ -z "$env" ] && echo "::add-mask::$env"
done < "path/to/.env.tpl"
op inject -i "path/to/.env.tpl" >> $GITHUB_ENV
Thanks again for your input, and feel free to reach out if you have any more questions!
Activity
moward98 commentedon Jan 3, 2025
Hello @jamesarosen,
Thank you for your suggestion! We can definitely see the value in supporting this use case, and we appreciate you bringing it up.
We’d love to see a contribution for this feature! If you’re interested in implementing it, please feel free to open a pull request. We’d be happy to review and collaborate with you on it.
In the meantime, as a potential workaround, you can make use of GitHub Action’s workflow command for masking values in logs. This should help mitigate your issue until there is a more permanent solution in place. For your use case, it can look like this:
Thanks again for your input, and feel free to reach out if you have any more questions!