From 3c882534012bc7eb220eef731ca39f9990cf76ca Mon Sep 17 00:00:00 2001 From: Mohd Hasan Date: Mon, 26 Jan 2026 17:23:05 +0530 Subject: [PATCH] fix(ci): skip labeler in forks to prevent secret missing error --- .github/workflows/labeler.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 8d078774b..d592a0090 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -11,13 +11,16 @@ permissions: jobs: label: runs-on: ubuntu-latest + if: github.repository == 'clawdbot/clawdbot' steps: - - uses: actions/create-github-app-token@v1 + - name: Generate Token + uses: actions/create-github-app-token@v1 id: app-token with: app-id: "2729701" private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} - - uses: actions/labeler@v5 + - name: Label PR + uses: actions/labeler@v5 with: configuration-path: .github/labeler.yml repo-token: ${{ steps.app-token.outputs.token }}