Skip to content

Commit 75ec4aa

Browse files
committed
ci(publish): restrict workflow to upstream repo only
Prevent publish job from running on forks by gating on github.repository == 'bmad-code-org/BMAD-METHOD'.
1 parent 7b4875b commit 75ec4aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ permissions:
3737

3838
jobs:
3939
publish:
40-
if: github.event_name != 'workflow_dispatch' || github.ref == 'refs/heads/main'
40+
if: github.repository == 'bmad-code-org/BMAD-METHOD' && (github.event_name != 'workflow_dispatch' || github.ref == 'refs/heads/main')
4141
runs-on: ubuntu-latest
4242
steps:
4343
- name: Checkout

0 commit comments

Comments
 (0)