From 55311cda259ab7e0ba80089651518f497729bd60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Andreassa?= Date: Wed, 8 Jul 2026 19:40:38 -0700 Subject: [PATCH] chore(ci): pin action versions and resolve zizmor security warnings Used go/github-zizmor-help?polyglot=github-com#local-scans-run-zizmor-on-your-cloudtop --- .github/workflows/ci.yml | 10 ++++++++-- .github/workflows/release-please-now.yml | 20 ++++++++++++++------ 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b4bd3f..13d88aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,8 @@ name: CI + +permissions: + contents: read + on: pull_request: branches: @@ -25,9 +29,11 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout repo - uses: actions/checkout@v4 + 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 tools diff --git a/.github/workflows/release-please-now.yml b/.github/workflows/release-please-now.yml index 1995898..31bb535 100644 --- a/.github/workflows/release-please-now.yml +++ b/.github/workflows/release-please-now.yml @@ -1,4 +1,9 @@ name: Release-Please Now + +permissions: + contents: read + pull-requests: write # Required for 'toys release label-please' to add PR labels + on: workflow_dispatch: inputs: @@ -15,18 +20,21 @@ jobs: RELEASE_PLEASE_DISABLE: ${{ secrets.RELEASE_PLEASE_DISABLE }} steps: - name: Checkout repo - uses: actions/checkout@v4 + uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + with: + persist-credentials: false - name: Install Ruby 3.3 - uses: ruby/setup-ruby@v1 + uses: ruby/setup-ruby@d45b1a4e94b71acab930e56e79c6aa188764e7f9 # v1.316.0 with: ruby-version: "3.3" - name: Install tools run: | gem install --no-document toys - name: execute - run: | - toys release label-please -v \ - --github-event-name=${{ github.event_name }} \ - ${GITHUB_EVENT_INPUTS_ARGS} env: + GITHUB_EVENT_NAME: ${{ github.event_name }} GITHUB_EVENT_INPUTS_ARGS: ${{ github.event.inputs.args }} + run: | + toys release label-please -v \ + --github-event-name="$GITHUB_EVENT_NAME" \ + $GITHUB_EVENT_INPUTS_ARGS