Skip to content

Commit edc1b89

Browse files
authored
Add explicit permissions to GitHub workflows (#208)
1 parent 0a1df06 commit edc1b89

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.github/workflows/branch_release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
tags:
99
- '*'
1010

11+
permissions:
12+
pull-requests: write
13+
contents: write
14+
1115
jobs:
1216
branch_release:
1317
if: github.event.created && github.event.sender.login == 'labkey-teamcity'

.github/workflows/merge_release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
types:
99
- submitted
1010

11+
permissions:
12+
pull-requests: write
13+
contents: write
14+
1115
jobs:
1216
merge_release:
1317
if: >

.github/workflows/validate_pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- reopened
1111
- ready_for_review
1212

13+
permissions:
14+
pull-requests: read
15+
1316
jobs:
1417
validate_pr:
1518
if: github.event.pull_request.head.repo.owner.login == 'LabKey'

0 commit comments

Comments
 (0)