We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45ba5ea commit 764e6c7Copy full SHA for 764e6c7
1 file changed
.github/workflows/warden.yml
@@ -11,9 +11,9 @@ on:
11
12
jobs:
13
review:
14
- # Only run for same-owner branches; external forks won't have access
15
- # to app credentials and would fail token generation.
16
- if: ${{ github.event.pull_request.head.repo.owner.login == github.repository_owner }}
+ # Only run for same-repo branches and when GitHub App credentials exist.
+ # Fork PRs do not receive secrets; skip cleanly instead of failing token generation.
+ if: ${{ github.event.pull_request.head.repo.full_name == github.repository && secrets.WARDEN_APP_ID != '' && secrets.WARDEN_PRIVATE_KEY != '' }}
17
runs-on: ubuntu-latest
18
env:
19
WARDEN_ANTHROPIC_API_KEY: ${{ secrets.WARDEN_ANTHROPIC_API_KEY }}
0 commit comments