From be2a56cb8790abbfe9f4bedff3dbe2d89d32d6bb Mon Sep 17 00:00:00 2001 From: "aikido-autofix[bot]" <119856028+aikido-autofix[bot]@users.noreply.github.com> Date: Thu, 26 Nov 2026 11:52:09 +0000 Subject: [PATCH] fix(security): autofix Template Injection in GitHub Workflows Action --- .github/actions/prepare-assets/action.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/actions/prepare-assets/action.yml b/.github/actions/prepare-assets/action.yml index 0993970..aebd15e 100644 --- a/.github/actions/prepare-assets/action.yml +++ b/.github/actions/prepare-assets/action.yml @@ -15,13 +15,15 @@ runs: steps: - name: Resolve architecture shell: bash + env: + INPUT_ARCH: ${{ inputs.arch }} run: | - case "${{ inputs.arch }}" in + case "$INPUT_ARCH" in aarch64) echo "TERMUX_ARCH=aarch64" >> "$GITHUB_ENV" ;; armv7) echo "TERMUX_ARCH=arm" >> "$GITHUB_ENV" ;; - *) echo "::error::unsupported arch '${{ inputs.arch }}' (aarch64 or armv7)"; exit 1 ;; + *) echo "::error::unsupported arch '$INPUT_ARCH' (aarch64 or armv7)"; exit 1 ;; esac - echo "KYANITE_ARCH=${{ inputs.arch }}" >> "$GITHUB_ENV" + echo "KYANITE_ARCH=$INPUT_ARCH" >> "$GITHUB_ENV" - shell: bash run: sudo apt-get update -qq && sudo apt-get install -y -qq patchelf binutils xz-utils cpio zstd kmod curl openssl - name: proot (termux/proot fork, from the Termux repo)