github: workflow: another permissions fix - inherit

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2026-04-01 16:49:12 +02:00
commit 20b5b714f0
2 changed files with 10 additions and 10 deletions

View file

@ -11,13 +11,13 @@ on:
pull_request_target:
types: [labeled, unlabeled]
permissions:
contents: read
pull-requests: write
issues: write
jobs:
handle-label:
uses: ./.github/workflows/reusable-label-commenter.yml
permissions:
contents: read
pull-requests: write
issues: write
with:
config-path: '.github/label-descriptions.yml'
secrets: inherit

View file

@ -15,15 +15,15 @@ on:
required: true
type: number
permissions:
contents: read
pull-requests: write
issues: write
jobs:
validate-commits:
uses: ./.github/workflows/reusable-sob-validator.yml
permissions:
contents: read
pull-requests: write
issues: write
with:
config-path: '.github/label-descriptions.yml'
sob-label: 'signed off by'
pr-number: ${{ github.event_name == 'workflow_dispatch' && format('{0}', inputs.pr_number) || '' }}
secrets: inherit