fix(ci): SHA-pin all GitHub Actions and fix pnpm version conflict #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Malware Safe Chain | |
| on: | |
| pull_request: ~ | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| malware-safe-chain: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # SHA-pinned actions (prevent tag hijacking) | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 | |
| - name: Use Node.js | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: '24' | |
| - name: Install safe-chain | |
| run: curl -fsSL https://raw.githubusercontent.com/AikidoSec/safe-chain/main/install-scripts/install-safe-chain.sh | sh -s -- --ci | |
| - name: Install dependencies with Safe Chain protection | |
| run: pnpm install --frozen-lockfile --ignore-scripts |