From ceeaea0c8a94f1ebe0f695d61befeb046ad35697 Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Tue, 28 May 2024 14:12:20 +0200 Subject: [PATCH] Fix: Switch to scheduled trigger for appropriate permission scope in workflow Previously, the workflow was triggered by **opened pull requests** events. However, testing revealed that this event, initiated by external GitHub users, lacks the permission scope to comment on or close pull requests. To address this, I've updated the workflow to trigger on a schedule. Scheduled triggers aren't tied to external actors, thereby ensuring the necessary permission scopes are available. Pull Request: https://projects.blender.org/blender/blender/pulls/122363 --- .github/workflows/stale.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 13370206324..4a4f6296075 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -3,10 +3,10 @@ name: Close GitHub Pull Requests -# Trigger this Action when a pull request is opened. +# Trigger this workflow every 12 hours. on: - pull_request: - types: [opened] + schedule: + - cron: '* */12 * * *' jobs: close_prs: