From 1155a74117a2f61ec1c316125950f3c9d4b4c1ee Mon Sep 17 00:00:00 2001 From: Carlo Cabrera Date: Fri, 8 Nov 2024 14:15:30 +0800 Subject: [PATCH] workflows/tests: fix `template-injection` warning Fixes https://github.com/Homebrew/homebrew-portable-ruby/security/code-scanning/1 This may not warn anymore on the latest version of `zizmor`, but I would like to be able to run `zizmor` with `--pedantic`, and that will produce a warning here. It's simple enough to avoid, so let's just do that. --- .github/workflows/tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5e9c733..f988666 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -34,4 +34,7 @@ jobs: if: github.event_name != 'push' && !cancelled() steps: - name: Result - run: ${{ needs.build.result == 'success' }} + env: + RESULT: ${{ needs.build.result }} + run: | + [[ "${RESULT}" == success ]]