diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 02b9f74067..76c7afcdea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,6 +2,9 @@ name: Test on: [push, pull_request] +permissions: # added using https://github.com/step-security/secure-workflows + contents: read + jobs: build: strategy: @@ -15,9 +18,9 @@ jobs: - { ruby: 'jruby-head', os: 'ubuntu-latest' } runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 - name: Set up Ruby - uses: ruby/setup-ruby@v1 + uses: ruby/setup-ruby@c7079efafd956afb5d823e8999c2506e1053aefa # v1.126.0 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true # 'bundle install' and cache