Skip to content

Commit a8f9125

Browse files
sthulbdreamorosi
authored andcommitted
chore(ci): Permissions work
Update on-merge-to-main.yml
1 parent fbadcbc commit a8f9125

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/label_pr_on_title.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
with:
1919
record_pr_workflow_id: ${{ github.event.workflow_run.id }}
2020
workflow_origin: ${{ github.event.repository.full_name }}
21+
permissions:
22+
pull-requests: read
2123
secrets:
2224
token: ${{ secrets.GITHUB_TOKEN }}
2325
label_pr:
@@ -40,4 +42,4 @@ jobs:
4042
# and label PR based on semantic title accordingly
4143
script: |
4244
const script = require('.github/scripts/label_pr_based_on_title.js')
43-
await script({github, context, core})
45+
await script({github, context, core})

.github/workflows/on-merge-to-main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
get_pr_details:
1717
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
1818
permissions:
19+
contents: read
1920
pull-requests: read
2021
uses: ./.github/workflows/reusable_export_pr_details.yml
2122
with:

0 commit comments

Comments
 (0)