Skip to content

Commit 764e6c7

Browse files
committed
ci: skip warden when app credentials are unavailable
1 parent 45ba5ea commit 764e6c7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/warden.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ on:
1111

1212
jobs:
1313
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 }}
14+
# Only run for same-repo branches and when GitHub App credentials exist.
15+
# Fork PRs do not receive secrets; skip cleanly instead of failing token generation.
16+
if: ${{ github.event.pull_request.head.repo.full_name == github.repository && secrets.WARDEN_APP_ID != '' && secrets.WARDEN_PRIVATE_KEY != '' }}
1717
runs-on: ubuntu-latest
1818
env:
1919
WARDEN_ANTHROPIC_API_KEY: ${{ secrets.WARDEN_ANTHROPIC_API_KEY }}

0 commit comments

Comments
 (0)