Merge pull request #214 from koic/add_explicit_permissions_to_ci_workflow

Add explicit permissions to CI workflow
This commit is contained in:
Koichi ITO 2026-01-21 02:12:47 +09:00 • committed by GitHub
commit 830913be5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,8 @@ on: [push, pull_request]
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: read
strategy: strategy:
matrix: matrix:
entry: entry:
@ -27,6 +29,8 @@ jobs:
rubocop: rubocop:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: read
name: RuboCop name: RuboCop
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
@ -38,6 +42,8 @@ jobs:
yard: yard:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: read
name: YARD Documentation name: YARD Documentation
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6