Skip to content

Commit

Permalink
Add permissions for automated job (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored Sep 29, 2024
1 parent 53f872a commit bd201b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/es-yearly-globals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
# “At 00:00 on day-of-month 1 in July.” https://crontab.guru/#0_0_1_7_*
- cron: "0 0 1 7 *"

permissions:
pull-requests: write
contents: write

jobs:
update:
if: github.event_name != 'schedule' || github.repository == 'sindresorhus/globals'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
# “At 00:00 on day-of-month 1.” https://crontab.guru/#0_0_1_*_*
- cron: "0 0 1 * *"

permissions:
pull-requests: write
contents: write

jobs:
update-on-macos:
if: github.event_name != 'schedule' || github.repository == 'sindresorhus/globals'
Expand Down

0 comments on commit bd201b5

Please sign in to comment.