From 1337e6de349a1902946a0a1ce2c18e8a456a3b30 Mon Sep 17 00:00:00 2001 From: Lorenze Jay <63378463+lorenzejay@users.noreply.github.com> Date: Mon, 27 Apr 2026 13:41:20 -0700 Subject: [PATCH] ci: skip generate-tool-specs job on fork PRs GitHub doesn't expose repo secrets to pull_request events from forks, so ${{ secrets.CREWAI_TOOL_SPECS_APP_ID }} resolves to an empty string and tibdex/github-app-token@v2 errors with "Input required and not supplied: app_id". The job also tries to push commits to the PR branch, which it can't do on a fork regardless. Skip it for cross-repo PRs and keep it for same-repo PRs and manual dispatch. Co-authored-by: Greyson LaLonde --- .github/workflows/generate-tool-specs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/generate-tool-specs.yml b/.github/workflows/generate-tool-specs.yml index 717135938..ff078ba8f 100644 --- a/.github/workflows/generate-tool-specs.yml +++ b/.github/workflows/generate-tool-specs.yml @@ -14,6 +14,7 @@ permissions: jobs: generate-specs: + if: github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest env: PYTHONUNBUFFERED: 1