Skip to content

Commit dae5d19

Browse files
authored
[chore] update permissions for add-codeowners-to-pr workflow (#12430)
Reduce the scope of permissions given to the github token Signed-off-by: Alex Boten <[email protected]>
1 parent 44f7d18 commit dae5d19

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/add-codeowners-to-pr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ on:
55
- opened
66
- synchronize
77

8+
permissions: read-all
9+
810
jobs:
911
add-owners-to-pr:
12+
permissions:
13+
pull-requests: write
1014
runs-on: ubuntu-24.04
1115
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.repository_owner == 'open-telemetry' }}
1216
steps:

0 commit comments

Comments
 (0)