Skip to content

Commit df78147

Browse files
authored
Move Actions CLA workflow permissions to job level (#51)
1 parent a850de3 commit df78147

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/cla.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ on:
1818
pull_request_target:
1919
types: [opened, closed, synchronize]
2020

21-
# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings
2221
permissions:
23-
actions: write # Required to update workflow run status
2422
contents: read # Required to read repository code
25-
pull-requests: write # Required to comment on PRs with CLA instructions
26-
statuses: write # Required to set commit status checks
2723

2824
jobs:
2925
CLAAssistant:
3026
runs-on: ubuntu-latest
27+
permissions:
28+
actions: write # Required to update workflow run status
29+
pull-requests: write # Required to comment on PRs with CLA instructions
30+
statuses: write # Required to set commit status checks
3131
steps:
3232
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e
3333
id: app-token

0 commit comments

Comments
 (0)