diff --git a/.github/workflows/ci-lint-format.yaml b/.github/workflows/ci-lint-format.yaml index f463af16c..d0d3c9c61 100644 --- a/.github/workflows/ci-lint-format.yaml +++ b/.github/workflows/ci-lint-format.yaml @@ -17,10 +17,18 @@ jobs: lint-and-format: runs-on: ubuntu-latest steps: + - name: Generate GitHub App Token + id: app-token + uses: actions/create-github-app-token@v2 + with: + app-id: ${{ vars.COMFY_APP_ID }} + private-key: ${{ secrets.COMFY_APP_PRIVATE_KEY }} + - name: Checkout PR uses: actions/checkout@v6 with: ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || github.ref }} + token: ${{ steps.app-token.outputs.token }} - name: Setup frontend uses: ./.github/actions/setup-frontend diff --git a/.github/workflows/i18n-update-core.yaml b/.github/workflows/i18n-update-core.yaml index 7b0299ab1..4eb0bd56e 100644 --- a/.github/workflows/i18n-update-core.yaml +++ b/.github/workflows/i18n-update-core.yaml @@ -15,8 +15,17 @@ jobs: if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.head.repo.full_name == github.repository && startsWith(github.head_ref, 'version-bump-')) runs-on: ubuntu-latest steps: + - name: Generate GitHub App Token + id: app-token + uses: actions/create-github-app-token@v2 + with: + app-id: ${{ vars.COMFY_APP_ID }} + private-key: ${{ secrets.COMFY_APP_PRIVATE_KEY }} + - name: Checkout repository uses: actions/checkout@v6 + with: + token: ${{ steps.app-token.outputs.token }} # Setup playwright environment - name: Setup ComfyUI Frontend