From abe34451f8b0bcf20fd2175366a8ca8290b22b76 Mon Sep 17 00:00:00 2001 From: Ruben Hoenle Date: Wed, 6 May 2026 17:25:11 +0200 Subject: [PATCH] fix(ci-cd): don't run labeler on PRs from forks instead use a cron schedule to label PRs from forks --- .github/workflows/labeler.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index 50351e24b..5b2c597df 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -3,6 +3,9 @@ on: pull_request: types: [opened, synchronize] workflow_dispatch: + schedule: + # run every full hour (to still label PRs from forks) + - cron: '0 * * * *' jobs: labeler: @@ -10,6 +13,8 @@ jobs: contents: read pull-requests: write issues: write + # don't run on PRs from forks (token has no write permissions) + if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} name: "Labeler" runs-on: ubuntu-latest steps: