build: harden test.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>
This commit is contained in:
Alex 2022-12-08 20:36:55 +02:00
parent 4162502937
commit 20cd090f32
1 changed files with 7 additions and 0 deletions

View File

@ -6,8 +6,15 @@ on:
- '**'
pull_request:
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
test:
permissions:
contents: read # to fetch code (actions/checkout)
actions: read # to list jobs for workflow run (8398a7/action-slack)
name: ${{ matrix.ruby }} (Rack ${{ matrix.rack }}, Puma ${{ matrix.puma }})
runs-on: ubuntu-latest
timeout-minutes: 15