Skip to content

Commit bd201b5

Browse files
authored
Add permissions for automated job (#263)
1 parent 53f872a commit bd201b5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/es-yearly-globals.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
# “At 00:00 on day-of-month 1 in July.” https://crontab.guru/#0_0_1_7_*
77
- cron: "0 0 1 7 *"
88

9+
permissions:
10+
pull-requests: write
11+
contents: write
12+
913
jobs:
1014
update:
1115
if: github.event_name != 'schedule' || github.repository == 'sindresorhus/globals'

.github/workflows/update.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
# “At 00:00 on day-of-month 1.” https://crontab.guru/#0_0_1_*_*
77
- cron: "0 0 1 * *"
88

9+
permissions:
10+
pull-requests: write
11+
contents: write
12+
913
jobs:
1014
update-on-macos:
1115
if: github.event_name != 'schedule' || github.repository == 'sindresorhus/globals'

0 commit comments

Comments
 (0)