diff --git a/.github/workflows/generate-manifest.yml b/.github/workflows/generate-manifest.yml index 27f878c..6e75092 100644 --- a/.github/workflows/generate-manifest.yml +++ b/.github/workflows/generate-manifest.yml @@ -18,10 +18,17 @@ jobs: pull-requests: write steps: + - name: Generate GitHub App token + id: app-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.BOT_APP_ID }} + private-key: ${{ secrets.BOT_PRIVATE_KEY }} + - name: Checkout repository uses: actions/checkout@v4 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ steps.app-token.outputs.token }} - name: Set up Python uses: actions/setup-python@v4 @@ -51,7 +58,7 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v5 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ steps.app-token.outputs.token }} commit-message: | feat: add manifest for ${{ steps.repo-info.outputs.repo_name }}