From 706d66e80d8f77cbbb8012856d27a89a5c137cda Mon Sep 17 00:00:00 2001 From: Kevin Jones Date: Fri, 9 Aug 2024 11:58:58 -0400 Subject: [PATCH] Add permissions to build workflow and pin ruby --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 67827e1..c6b26a1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,9 @@ name: Build + Test on: [pull_request, push] +permissions: + contents: read + jobs: build: name: Build + Test @@ -12,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Ruby ${{ matrix.ruby }} - uses: ruby/setup-ruby@v1 + uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 #v1.190.0 tag with: ruby-version: ${{ matrix.ruby }} bundler-cache: true