From b9fb3da8918eabc8229cb84a1b030baa92f53b92 Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Wed, 10 Jun 2026 00:08:36 -0400 Subject: [PATCH] ci(model-profiles): skip profile refresh workflow on forks (#38008) Closes #37997 Forked repositories with Actions enabled currently run the scheduled model profile refresh without access to the GitHub App secrets used to open the automated PR. Guarding the job to the `langchain-ai` owner prevents noisy daily failures on forks while preserving the scheduled refresh for the main repository. ## Changes - Added a repository-owner guard to the `refresh-profiles` job so `refresh_model_profiles` only runs under `langchain-ai`. - Kept the existing reusable workflow invocation and bot secret wiring unchanged for the canonical repository. --- .github/workflows/refresh_model_profiles.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/refresh_model_profiles.yml b/.github/workflows/refresh_model_profiles.yml index 9e61a0dd47b..dd6d6f6183c 100644 --- a/.github/workflows/refresh_model_profiles.yml +++ b/.github/workflows/refresh_model_profiles.yml @@ -18,6 +18,7 @@ permissions: jobs: refresh-profiles: + if: github.repository_owner == 'langchain-ai' uses: ./.github/workflows/_refresh_model_profiles.yml with: providers: >-