diff --git a/.github/workflows/check-org-member.yml b/.github/workflows/check-org-member.yml index 5bb9dc3647f..3db52685129 100644 --- a/.github/workflows/check-org-member.yml +++ b/.github/workflows/check-org-member.yml @@ -13,15 +13,22 @@ on: jobs: check: - # kilocode_change - new file runs-on: blacksmith-2vcpu-ubuntu-2404 outputs: is-member: ${{ steps.check.outputs.is-member }} steps: + - name: Create app token + id: apptoken + uses: actions/create-github-app-token@v2 + with: + app-id: ${{ secrets.KILO_MAINTAINER_APP_ID }} + private-key: ${{ secrets.KILO_MAINTAINER_APP_SECRET }} + owner: ${{ github.repository_owner }} + - name: Check if author is org member or kilo-maintainer bot id: check env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.apptoken.outputs.token }} USERNAME: ${{ inputs.username }} run: | if [[ "$USERNAME" == "kilo-maintainer[bot]" ]]; then diff --git a/.github/workflows/pr-management.yml b/.github/workflows/pr-management.yml index 0ae052c4cf4..9ef561454f1 100644 --- a/.github/workflows/pr-management.yml +++ b/.github/workflows/pr-management.yml @@ -14,7 +14,7 @@ jobs: check-duplicates: needs: check-author if: needs.check-author.outputs.is-member == 'false' - # kilocode_change end + # kilocode_change end runs-on: blacksmith-4vcpu-ubuntu-2404 permissions: contents: read diff --git a/.github/workflows/pr-standards.yml b/.github/workflows/pr-standards.yml index 675967c39ca..a49f7234bcd 100644 --- a/.github/workflows/pr-standards.yml +++ b/.github/workflows/pr-standards.yml @@ -14,7 +14,7 @@ jobs: check-standards: needs: check-author if: needs.check-author.outputs.is-member == 'false' - # kilocode_change end + # kilocode_change end runs-on: blacksmith-4vcpu-ubuntu-2404 permissions: pull-requests: write