Commit 271bb7a
fix(validate-pr): Use app-slug from create-github-app-token for idempotence
The previous code called github.rest.apps.getAuthenticated() to resolve
the bot login, but that endpoint requires JWT auth — our github client
is authenticated with an installation access token, so the call always
failed. The catch handler then left botLogin null, the idempotence
check was skipped, and re-runs of the workflow could produce duplicate
comments.
Pass the app slug via env var from create-github-app-token's app-slug
output (added in v2 of that action) and construct the bot login as
"<slug>[bot]" directly. No API call needed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a576c10 commit 271bb7a
2 files changed
Lines changed: 21 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
246 | 248 | | |
| 249 | + | |
247 | 250 | | |
| 251 | + | |
248 | 252 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
259 | 261 | | |
260 | 262 | | |
261 | 263 | | |
| |||
0 commit comments