diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index f0d6933fb..61a312f59 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -36,10 +36,8 @@ jobs: id: fetch-slack-webhook with: inlineScript: | - SECRET_VALUE=$(az keyvault secret show --name "SLACK-WEBHOOK" --vault-name "${{ secrets.INFRA_KEY_VAULT}}" --query "value") - SANITIZED_SECRET=$(echo $SECRET_VALUE | tr -d \") - echo "::add-mask::$SANITIZED_SECRET" - echo "SLACK-WEBHOOK=$SANITIZED_SECRET" >> $GITHUB_OUTPUT + SECRET_VALUE=$(az keyvault secret show --name "SLACK-WEBHOOK" --vault-name "${{ secrets.INFRA_KEY_VAULT}}" --query "value" -o tsv) + echo "SLACK-WEBHOOK=$SECRET_VALUE" >> $GITHUB_OUTPUT - name: Set up Docker Buildx id: buildx @@ -110,10 +108,8 @@ jobs: id: fetch-slack-webhook with: inlineScript: | - SECRET_VALUE=$(az keyvault secret show --name "SLACK-WEBHOOK" --vault-name "${{ secrets.INFRA_KEY_VAULT}}" --query "value") - SANITIZED_SECRET=$(echo $SECRET_VALUE | tr -d \") - echo "::add-mask::$SANITIZED_SECRET" - echo "SLACK-WEBHOOK=$SANITIZED_SECRET" >> $GITHUB_OUTPUT + SECRET_VALUE=$(az keyvault secret show --name "SLACK-WEBHOOK" --vault-name "${{ secrets.INFRA_KEY_VAULT}}" --query "value" -o tsv) + echo "SLACK-WEBHOOK=$SECRET_VALUE" >> $GITHUB_OUTPUT - name: Trigger Development Deployment uses: ./.github/workflows/actions/deploy_v2 @@ -156,10 +152,8 @@ jobs: id: fetch-slack-webhook with: inlineScript: | - SECRET_VALUE=$(az keyvault secret show --name "SLACK-WEBHOOK" --vault-name "${{ secrets.INFRA_KEY_VAULT}}" --query "value") - SANITIZED_SECRET=$(echo $SECRET_VALUE | tr -d \") - echo "::add-mask::$SANITIZED_SECRET" - echo "SLACK-WEBHOOK=$SANITIZED_SECRET" >> $GITHUB_OUTPUT + SECRET_VALUE=$(az keyvault secret show --name "SLACK-WEBHOOK" --vault-name "${{ secrets.INFRA_KEY_VAULT}}" --query "value" -o tsv) + echo "SLACK-WEBHOOK=$SECRET_VALUE" >> $GITHUB_OUTPUT - name: Trigger Test Deployment uses: ./.github/workflows/actions/deploy_v2 @@ -201,10 +195,8 @@ jobs: id: fetch-slack-webhook with: inlineScript: | - SECRET_VALUE=$(az keyvault secret show --name "SLACK-WEBHOOK" --vault-name "${{ secrets.INFRA_KEY_VAULT}}" --query "value") - SANITIZED_SECRET=$(echo $SECRET_VALUE | tr -d \") - echo "::add-mask::$SANITIZED_SECRET" - echo "SLACK-WEBHOOK=$SANITIZED_SECRET" >> $GITHUB_OUTPUT + SECRET_VALUE=$(az keyvault secret show --name "SLACK-WEBHOOK" --vault-name "${{ secrets.INFRA_KEY_VAULT}}" --query "value" -o tsv) + echo "SLACK-WEBHOOK=$SECRET_VALUE" >> $GITHUB_OUTPUT - name: Trigger Production Deployment uses: ./.github/workflows/actions/deploy_v2