From 8a1d651f3bab5d5f9295a199c3694735c10d58b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Andreassa?= Date: Wed, 8 Jul 2026 19:33:18 -0700 Subject: [PATCH] chore(ci): pin action versions and upgrade node to 24.x Used go/github-zizmor-help?polyglot=github-com#local-scans-run-zizmor-on-your-cloudtop --- .github/workflows/ci.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 78882e4..43cbcff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,8 @@ name: CI + +permissions: + contents: read + on: pull_request: branches: @@ -51,17 +55,23 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout repo - uses: actions/checkout@v6 + uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + with: + persist-credentials: false - name: Install Ruby ${{ matrix.ruby }} - uses: ruby/setup-ruby@v1 + uses: ruby/setup-ruby@d45b1a4e94b71acab930e56e79c6aa188764e7f9 # v1.316.0 with: ruby-version: "${{ matrix.ruby }}" - - name: Install NodeJS 18.x - uses: actions/setup-node@v6 + - name: Install NodeJS 24.x + uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version: "18.x || 22.x || 24.x" + node-version: "24.x" - name: Install tools run: "gem install --no-document toys && npm install linkinator" - name: Test ${{ matrix.task }} + env: + GITHUB_EVENT_NAME: ${{ github.event_name }} + GITHUB_EVENT_PATH: ${{ github.event_path }} + EXTRA_FLAGS: ${{ github.event.inputs.flags }} run: | - toys ci -v ${{ matrix.task }} --github-event-name=${{ github.event_name }} --github-event-payload=${{ github.event_path }} ${{ github.event.inputs.flags }} + toys ci -v ${{ matrix.task }} --github-event-name="$GITHUB_EVENT_NAME" --github-event-payload="$GITHUB_EVENT_PATH" $EXTRA_FLAGS