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: with:
node-version: "20.x" node-version: "20.x"
- name: Setup safe-chain (Mac/Linux) - name: Setup safe-chain
if: runner.os != 'Windows'
run: curl -fsSL https://github.com/AikidoSec/safe-chain/releases/latest/download/install-safe-chain.sh | sh -s -- --ci run: curl -fsSL https://github.com/AikidoSec/safe-chain/releases/latest/download/install-safe-chain.sh | sh -s -- --ci
shell: bash
- 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"
- name: Install dependencies - name: Install dependencies
run: npm ci --ignore-scripts run: npm ci --ignore-scripts

View file

@ -22,14 +22,9 @@ jobs:
with: with:
node-version: "lts/*" node-version: "lts/*"
- name: Setup safe-chain (Mac/Linux) - name: Setup safe-chain
if: runner.os != 'Windows'
run: curl -fsSL https://github.com/AikidoSec/safe-chain/releases/latest/download/install-safe-chain.sh | sh -s -- --ci run: curl -fsSL https://github.com/AikidoSec/safe-chain/releases/latest/download/install-safe-chain.sh | sh -s -- --ci
shell: bash
- 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"
- name: Install dependencies - name: Install dependencies
run: npm ci --ignore-scripts run: npm ci --ignore-scripts