diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2026-05-16 13:16:52 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2026-05-16 13:16:52 +0900 |
| commit | 3edf47de504f099857fd1e7719713674fcf3b9ee (patch) | |
| tree | 39e3e8380614a70f77c645981b8885a3010683ed | |
| parent | 0cebfe9474b06f8ef4f92aeff82ab3fe4e181fb2 (diff) | |
Fix for zizmor
| -rw-r--r-- | .github/actions/setup/ubuntu/action.yml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/.github/actions/setup/ubuntu/action.yml b/.github/actions/setup/ubuntu/action.yml index 7a5e1991e5..5209ccc03f 100644 --- a/.github/actions/setup/ubuntu/action.yml +++ b/.github/actions/setup/ubuntu/action.yml @@ -33,6 +33,7 @@ runs: setarch="${arch:+setarch $arch --}" # normalize `uname` if uname=$(${setarch} uname -m 2> /dev/null); then + # `setarch` works, `$arch` is a valid architecture name. echo "setarch=${setarch}" >> "$GITHUB_OUTPUT" else # if `setarch` failed, take the given `arch` as-is. @@ -46,13 +47,15 @@ runs: shell: bash run: echo "SETARCH=${setarch}" >> "$GITHUB_ENV" # zizmor: ignore[github-env] env: - setarch: ${{ steps.uname.outputs.setarch }} + setarch: ${{ steps.uname.outputs.setarch }} # validated - name: dpkg setup shell: bash - run: | - sudo dpkg --add-architecture ${{ steps.uname.outputs.dpkg }} + run: sudo dpkg --add-architecture "${dpkg}" + # `dpkg` is valid, also `uname`. if: ${{ inputs.arch }} + env: + dpkg: ${{ steps.uname.outputs.dpkg }} - name: apt-get shell: bash |
