From 71b60e1e2c8329bd70161979467ecfd917f4f464 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 17 Oct 2026 09:10:13 +0500 Subject: fix zizmor warnings --- .github/actions/build-threads/action.yml | 12 ++++++------ .github/actions/check-cc/action.yml | 6 ++++-- .github/actions/check-lld/action.yml | 6 ++++-- 3 files changed, 14 insertions(+), 10 deletions(-) (limited to '.github/actions') diff --git a/.github/actions/build-threads/action.yml b/.github/actions/build-threads/action.yml index 8c754b0..86515f7 100644 --- a/.github/actions/build-threads/action.yml +++ b/.github/actions/build-threads/action.yml @@ -11,12 +11,12 @@ inputs: runs: using: composite steps: - - run: | - $version = '${{ inputs.version }}' - $version = if ($version) { "-$version" } else { $version } - + - env: + ARG_BINARY: ${{ inputs.binary }} + ARG_PLATFORM: ${{ inputs.platform }} + run: | $flags = @() - if ('${{ matrix.platform }}' -eq 'x86') { + if ($env:ARG_PLATFORM -eq 'x86') { $flags += '-m32' } $flags += '-std=c++14','-o','test/threads.exe','test/threads.cpp' @@ -24,5 +24,5 @@ runs: $flags += '-lpthread' } - & '${{ inputs.binary }}' $flags + & $env:ARG_BINARY $flags shell: pwsh diff --git a/.github/actions/check-cc/action.yml b/.github/actions/check-cc/action.yml index 4dbeb0a..646babc 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)] @@ -20,7 +22,7 @@ runs: $($output | Select-String -Pattern "clang version" -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") } diff --git a/.github/actions/check-lld/action.yml b/.github/actions/check-lld/action.yml index 5bb25b6..1eea794 100644 --- a/.github/actions/check-lld/action.yml +++ b/.github/actions/check-lld/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)] @@ -23,7 +25,7 @@ runs: $($output | Select-String -Pattern $HelpString -SimpleMatch -Quiet) -or $(throw "Unexpected `$Exe --version` output") } - $version = '${{ inputs.version }}' + $version = $env:ARG_VERSION $driver_exe = 'lld' # Although the output of `lld --version` claims that it's ld-link on -- cgit v1.3