From c0ae4c1584d3e4432d9de3732803ac832471abfb Mon Sep 17 00:00:00 2001 From: Jack Chu Date: Fri, 22 May 2026 23:49:32 -0400 Subject: [PATCH] Harden CI workflow permissions --- .github/workflows/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 78d312b..668a814 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,6 +7,9 @@ on: branches: [main] types: [opened, synchronize, reopened] +permissions: + contents: read + jobs: ci: # The type of runner that the job will run on @@ -34,10 +37,10 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Setup ruby - uses: ruby/setup-ruby@v1 + uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true