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:
|
pull_request_target:
|
||||||
types: [labeled, unlabeled]
|
types: [labeled, unlabeled]
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pull-requests: write
|
|
||||||
issues: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
handle-label:
|
handle-label:
|
||||||
uses: ./.github/workflows/reusable-label-commenter.yml
|
uses: ./.github/workflows/reusable-label-commenter.yml
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
issues: write
|
||||||
with:
|
with:
|
||||||
config-path: '.github/label-descriptions.yml'
|
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
|
required: true
|
||||||
type: number
|
type: number
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pull-requests: write
|
|
||||||
issues: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate-commits:
|
validate-commits:
|
||||||
uses: ./.github/workflows/reusable-sob-validator.yml
|
uses: ./.github/workflows/reusable-sob-validator.yml
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
issues: write
|
||||||
with:
|
with:
|
||||||
config-path: '.github/label-descriptions.yml'
|
config-path: '.github/label-descriptions.yml'
|
||||||
sob-label: 'signed off by'
|
sob-label: 'signed off by'
|
||||||
pr-number: ${{ github.event_name == 'workflow_dispatch' && format('{0}', inputs.pr_number) || '' }}
|
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