From c209a8ae6c15fa9515e933d18add962070b60257 Mon Sep 17 00:00:00 2001 From: Artur Sawicki Date: Thu, 28 Nov 2024 10:07:17 +0100 Subject: [PATCH] chore: Apply masking (#3234) Based on the: - experiments here: https://github.com/Snowflake-Labs/terraform-provider-snowflake/pull/3232 - docs here: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#masking-a-value-in-a-log --- .github/workflows/tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3ec814e652..824bd0cb0e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -36,6 +36,14 @@ jobs: go-version-file: ./go.mod cache: false + - name: Apply masking + run: | + while IFS= read -r line || [[ -n $line ]]; do + echo "::add-mask::$line" + done < <(printf '%s' "$SF_TF_GH_MASKING") + env: + SF_TF_GH_MASKING: ${{ secrets.SF_TF_GH_MASKING }} + - name: Install dependencies run: make dev-setup