From efb756cf31f8be1126ae86eb10a73731ba17b559 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Mon, 16 Mar 2026 11:39:32 -0400 Subject: [6.0.x] Skipped check_commit_messages action on forks. This was causing permission errors on private forks, e.g. the one maintained by the Security Team for staging security patches. Follow-up to f8665b1a7ff5e98d84f66ad0e958c3f175aa5d8b. Backport of 455e787b9cc8bd3342f86ddcf8ef4103fd811bb5 from main. --- .github/workflows/check_commit_messages.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check_commit_messages.yml b/.github/workflows/check_commit_messages.yml index ddb2340d88..2a3e5c5302 100644 --- a/.github/workflows/check_commit_messages.yml +++ b/.github/workflows/check_commit_messages.yml @@ -13,7 +13,8 @@ permissions: jobs: check-commit-prefix: - if: startsWith(github.event.pull_request.base.ref, 'stable/') + # Only trigger on the main Django repository + if: github.repository == 'django/django' && startsWith(github.event.pull_request.base.ref, 'stable/') runs-on: ubuntu-latest timeout-minutes: 60 steps: @@ -70,6 +71,8 @@ jobs: echo "✅ All commits have the required prefix." check-commit-suffix: + # Only trigger on the main Django repository + if: github.repository == 'django/django' runs-on: ubuntu-latest timeout-minutes: 60 steps: -- cgit v1.3