From 6bddbb5cf3ab0f92b47e9f685fdbce485b6548bc Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Wed, 30 Oct 2024 22:20:14 +0800 Subject: [PATCH] workflows/vendor-version: fix `template-injection` warnings Fixes https://github.com/Homebrew/brew/security/code-scanning/40 Fixes https://github.com/Homebrew/brew/security/code-scanning/41 --- .github/workflows/vendor-version.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/vendor-version.yml b/.github/workflows/vendor-version.yml index 25d9458e2bc0e..9ad05652ee82a 100644 --- a/.github/workflows/vendor-version.yml +++ b/.github/workflows/vendor-version.yml @@ -37,7 +37,7 @@ jobs: working-directory: ${{ steps.set-up-homebrew.outputs.gems-path }}/${{ steps.ruby-abi.outputs.version }}/gems run: | { - echo "vendor-version=$(cat ../.homebrew_vendor_version)" + echo "vendor-version=$(<../.homebrew_vendor_version)" echo "ignored<