Skip to content

Commit c23906e

Browse files
committed
fix(ci): install zizmor from release archive
1 parent 5f319f3 commit c23906e

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,20 @@ jobs:
4545
persist-credentials: false
4646
show-progress: false
4747

48+
- name: "Install zizmor"
49+
env:
50+
ZIZMOR_SHA256: "dd96df044a6e8538d5f423790f453bdd03d49e5b2bcc38214acc41a2f1297839"
51+
ZIZMOR_VERSION: "1.29.0"
52+
run: |
53+
archive="$RUNNER_TEMP/zizmor.tar.gz"
54+
curl --proto '=https' --tlsv1.2 -fsSL "https://github.com/zizmorcore/zizmor/releases/download/v${ZIZMOR_VERSION}/zizmor-x86_64-unknown-linux-gnu.tar.gz" -o "$archive"
55+
echo "${ZIZMOR_SHA256} ${archive}" | sha256sum --check
56+
tar -xzf "$archive" -C "$RUNNER_TEMP"
57+
4858
- name: "Run zizmor"
49-
uses: zizmorcore/zizmor-action@3dc1ecc9bcb9e94e9b2c709687979e1298497054 # v0.6.2
50-
with:
51-
advanced-security: false
52-
version: "1.29.0"
59+
env:
60+
GH_TOKEN: "${{ github.token }}"
61+
run: '"$RUNNER_TEMP/zizmor" --format github .'
5362

5463
ci:
5564
name: "Execute (PHP ${{ matrix.php-version }} with ${{ matrix.dependencies }} deps, composer v${{ matrix.composer-version}}.x, symfony v${{ matrix.symfony-version }})"

0 commit comments

Comments
 (0)