From 0fea4f552b2d506ee8f423e81d18c4a95b877dfb Mon Sep 17 00:00:00 2001 From: fisker Date: Sun, 29 Sep 2024 14:18:34 +0800 Subject: [PATCH] Add `permissions` for automated job --- .github/workflows/es-yearly-globals.yml | 4 ++++ .github/workflows/update.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/es-yearly-globals.yml b/.github/workflows/es-yearly-globals.yml index 8cdf329..65d1b8c 100644 --- a/.github/workflows/es-yearly-globals.yml +++ b/.github/workflows/es-yearly-globals.yml @@ -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' diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index c7f6e9c..a596715 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -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'