From 1440ec742259646f9c8eae944e301599764d217c Mon Sep 17 00:00:00 2001 From: Henry Park Date: Mon, 9 Mar 2026 16:58:56 -0700 Subject: [PATCH] fix(ci): secrets can't be used in step if conditions [skip-regression-check] (#787) GitHub Actions step-level `if:` doesn't have access to `secrets` context. Replace `if: secrets.X != ''` with `continue-on-error: true` and let the Set token step handle the fallback. Co-authored-by: Claude Sonnet 4.6 --- .github/workflows/staging-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/staging-ci.yml b/.github/workflows/staging-ci.yml index 9e887436..22d70030 100644 --- a/.github/workflows/staging-ci.yml +++ b/.github/workflows/staging-ci.yml @@ -115,7 +115,7 @@ jobs: - name: Generate GitHub App token id: app-token - if: ${{ secrets.GH_RELEASES_MANAGER_APP_ID != '' }} + continue-on-error: true uses: actions/create-github-app-token@v2 with: app-id: ${{ secrets.GH_RELEASES_MANAGER_APP_ID }} @@ -230,7 +230,7 @@ jobs: - name: Generate GitHub App token id: app-token - if: ${{ secrets.GH_RELEASES_MANAGER_APP_ID != '' }} + continue-on-error: true uses: actions/create-github-app-token@v2 with: app-id: ${{ secrets.GH_RELEASES_MANAGER_APP_ID }}