Skip to content

HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnesses. Run Codex, Claude Code, Hermes, PI, DSH, and more through one API, with sessions, streaming, files, cancellation, and failure handling. Implements the Unified Harness Protocol (UHP), an open standard. Your keys, your infrastructure.

open-pr tests the App secret's presence through env, since a step's if cannot read secrets (#108)

github-actions[bot]01de31b988bd
diff --git a/.github/workflows/open-pr.yml b/.github/workflows/open-pr.yml
index 3a967d9f..8784ae36 100644
--- a/.github/workflows/open-pr.yml
+++ b/.github/workflows/open-pr.yml
@@ -39,10 +39,13 @@ permissions:
jobs:
open:
runs-on: ubuntu-latest
+ env:
+ # the secrets context is not allowed in a step's `if`; an env var carries the presence test
+ OPEN_PR_APP_ID: ${{ secrets.OPEN_PR_APP_ID }}
steps:
- uses: actions/checkout@v4
- id: app
- if: ${{ secrets.OPEN_PR_APP_ID != '' }}
+ if: ${{ env.OPEN_PR_APP_ID != '' }}
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.OPEN_PR_APP_ID }}