Skip to content

Commit f688d30

Browse files
authored
Don't run Mend on fork (#3415)
Problem: Mend workflow was running on forks, which would fail since proper secrets aren't set. Solution: Don't run on forks.
1 parent 6022fce commit f688d30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/mend.yml

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

3232
jobs:
3333
mend:
34-
if: ${{ github.event.repository.fork == false }}
34+
if: ${{ (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false) || (github.event_name == 'push' && github.event.repository.fork == false) }}
3535
uses: nginxinc/compliance-rules/.github/workflows/mend.yml@c903bfe6c668eaba362cde6a7882278bc1564401 # v0.1
3636
secrets: inherit
3737
with:

0 commit comments

Comments
 (0)