Skip to content

Commit d40c123

Browse files
authored
Merge pull request #6459 from github/add-actions-permissions
Add actions permissions
2 parents 8d3173f + 31fed96 commit d40c123

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.github/workflows/create_staging_branch.yaml

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

11+
permissions:
12+
contents: write # Required to create and push branches
13+
pull-requests: write # Required to edit PR base branch
14+
1115
jobs:
1216
ensure-base-is-staging:
1317
runs-on: ubuntu-latest

.github/workflows/delete_staging_and_head_branches.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- "advisories/**"
99
workflow_dispatch:
1010

11+
permissions:
12+
contents: write # Required to delete branches
13+
1114
jobs:
1215
delete-staging-and-head-branches:
1316
if: ${{ !github.event.pull_request.head.repo.fork }}

.github/workflows/stale.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
schedule:
55
- cron: "00 0 * * *" # runs at 00:00 daily
66

7+
permissions:
8+
pull-requests: write # Required to comment on, label, and close PRs
9+
710
jobs:
811
stale:
912

0 commit comments

Comments
 (0)