Skip to content

Commit 1f20307

Browse files
committed
Don't run Mend on fork
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 1f20307

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/mend.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,14 @@ permissions:
3030
contents: read
3131

3232
jobs:
33-
mend:
33+
check-fork:
3434
if: ${{ github.event.repository.fork == false }}
35+
runs-on: ubuntu-24.04
36+
steps:
37+
- run: echo "Proceeding with the workflow..."
38+
39+
mend:
40+
needs: check-fork
3541
uses: nginxinc/compliance-rules/.github/workflows/mend.yml@c903bfe6c668eaba362cde6a7882278bc1564401 # v0.1
3642
secrets: inherit
3743
with:

0 commit comments

Comments
 (0)