From cc0329f0f9c3e5202ee04144ac1b0a196d974ade Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 17 Oct 2026 13:17:38 +0500 Subject: fix zizmor warnings --- .github/actions/check-cc/action.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to '.github/actions') diff --git a/.github/actions/check-cc/action.yml b/.github/actions/check-cc/action.yml index 9f29631..c388819 100644 --- a/.github/actions/check-cc/action.yml +++ b/.github/actions/check-cc/action.yml @@ -7,7 +7,9 @@ inputs: runs: using: composite steps: - - run: | + - env: + ARG_VERSION: ${{ inputs.version }} + run: | function Check-Exe { param( [Parameter(Mandatory=$true)] @@ -19,9 +21,10 @@ runs: echo $output # Is this really the most stable piece of `gcc --version` output? - $($output | Select-String -Pattern "This is free software; see the source for copying conditions." -SimpleMatch -Quiet) -or $(throw "Unexpected `$Exe --version` output") + $pattern = "This is free software; see the source for copying conditions." + $($output | Select-String -Pattern $pattern -SimpleMatch -Quiet) -or $(throw "Unexpected `$Exe --version` output") - $version = '${{ inputs.version }}' + $version = $env:ARG_VERSION if ($version) { $($output | Select-String -Pattern $version -SimpleMatch -Quiet) -or $(throw "Unexpected `$Exe --version` output") } -- cgit v1.3