github: workflow: another permissions fix - inherit
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
0c36a118e5
commit
20b5b714f0
2 changed files with 10 additions and 10 deletions
10
.github/workflows/label-automation.yml
vendored
10
.github/workflows/label-automation.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
10
.github/workflows/pr-validation.yml
vendored
10
.github/workflows/pr-validation.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue