Merge pull request #297 from AikidoSec/use-bash-for-windows-ci-safe-chain-setup

Use bash for setting up safe-chain in CI
This commit is contained in:
bitterpanda 2026-03-02 12:35:52 +01:00 committed by GitHub
commit 6c6ce796d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 14 deletions

View file

@ -69,14 +69,9 @@ jobs:
with:
node-version: "20.x"
- name: Setup safe-chain (Mac/Linux)
if: runner.os != 'Windows'
- name: Setup safe-chain
run: curl -fsSL https://github.com/AikidoSec/safe-chain/releases/latest/download/install-safe-chain.sh | sh -s -- --ci
- name: Setup safe-chain (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: iex "& { $(iwr 'https://github.com/AikidoSec/safe-chain/releases/latest/download/install-safe-chain.ps1' -UseBasicParsing) } -ci"
shell: bash
- name: Install dependencies
run: npm ci --ignore-scripts

View file

@ -22,14 +22,9 @@ jobs:
with:
node-version: "lts/*"
- name: Setup safe-chain (Mac/Linux)
if: runner.os != 'Windows'
- name: Setup safe-chain
run: curl -fsSL https://github.com/AikidoSec/safe-chain/releases/latest/download/install-safe-chain.sh | sh -s -- --ci
- name: Setup safe-chain (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: iex "& { $(iwr 'https://github.com/AikidoSec/safe-chain/releases/latest/download/install-safe-chain.ps1' -UseBasicParsing) } -ci"
shell: bash
- name: Install dependencies
run: npm ci --ignore-scripts