diff options
| author | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-03-16 11:39:32 -0400 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-03-30 14:18:29 -0400 |
| commit | efb756cf31f8be1126ae86eb10a73731ba17b559 (patch) | |
| tree | da5824a61f2464146b6a8d11ec9203ba901da546 | |
| parent | 00f0b0d233e4197227d05cb1fe55855100d415ad (diff) | |
[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.
| -rw-r--r-- | .github/workflows/check_commit_messages.yml | 5 |
1 files changed, 4 insertions, 1 deletions
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: |
