Skip to content

Commit 47e14cf

Browse files
committed
limit permissions of GITHUB_TOKEN in workflow
1 parent d685616 commit 47e14cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/create_issue_on_pr_opened.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
pull_request:
55
types: [opened]
66

7+
permissions:
8+
contents: read # to fetch code (actions/checkout)
9+
issues: write # to create an associated issue (if necessary)
10+
711
jobs:
812
create-issue:
913
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)