@@ -174,11 +174,19 @@ jobs:
174174 group : update-pinata
175175 cancel-in-progress : false
176176 steps :
177+ - name : Generate GitHub App token
178+ id : app-token
179+ uses : tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2
180+ with :
181+ app_id : ${{ secrets.CAGENT_REVIEWER_APP_ID }}
182+ private_key : ${{ secrets.CAGENT_REVIEWER_APP_PRIVATE_KEY }}
183+ repositories : ["pinata"]
184+
177185 - name : Checkout pinata
178186 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
179187 with :
180188 repository : docker/pinata
181- token : ${{ secrets.RELEASE_TOKEN }}
189+ token : ${{ steps.app-token.outputs.token }}
182190
183191 - name : Update cagent-action reference
184192 id : update
@@ -216,15 +224,15 @@ jobs:
216224 - name : Create or update PR
217225 if : steps.update.outputs.skip != 'true'
218226 env :
219- GH_TOKEN : ${{ secrets.RELEASE_TOKEN }}
227+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
220228 VERSION : ${{ needs.release.outputs.version }}
221229 SHA : ${{ needs.release.outputs.sha }}
222230 run : |
223231 BRANCH="auto/update-cagent-action"
224232 RELEASE_URL="https://github.com/docker/cagent-action/releases/tag/$VERSION"
225233
226- git config user.name "github-actions [bot]"
227- git config user.email "github-actions [bot]@users.noreply.github.com"
234+ git config user.name "docker-agent [bot]"
235+ git config user.email "docker-agent [bot]@users.noreply.github.com"
228236
229237 git checkout -B "$BRANCH"
230238 git add .github/workflows/pr-review.yml
0 commit comments