Skip to content

Commit 5b2e447

Browse files
sthulbdreamorosi
authored andcommitted
chore(ci): Update permissions in workflows (#1810)
* chore(ci): Update permissions in workflows * add contents read
1 parent 77c8c0f commit 5b2e447

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/label_pr_on_title.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
record_pr_workflow_id: ${{ github.event.workflow_run.id }}
2020
workflow_origin: ${{ github.event.repository.full_name }}
2121
permissions:
22+
contents: read
2223
pull-requests: read
2324
secrets:
2425
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/on_opened_pr.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
workflow_origin: ${{ github.event.repository.full_name }}
1919
secrets:
2020
token: ${{ secrets.GITHUB_TOKEN }}
21+
permissions:
22+
pull-requests: read
2123
check_related_issue:
2224
permissions:
2325
issues: read
@@ -39,4 +41,4 @@ jobs:
3941
github-token: ${{ secrets.GITHUB_TOKEN }}
4042
script: |
4143
const script = require('.github/scripts/label_missing_related_issue.js')
42-
await script({github, context, core})
44+
await script({github, context, core})

0 commit comments

Comments
 (0)