Commit aa96eed
Make license review PR comment best-effort
Pull requests opened from forks run with a read-only GITHUB_TOKEN, so
creating a comment fails with 'Resource not accessible by integration'.
Wrap the comment creation in a try/catch so this no longer raises an
unhandled error: the dependency list is still written to the job
summary and the run is still marked as failed. Same-repo PRs and the
/request-license-review issue_comment flow can still post the comment.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent b818803 commit aa96eed
1 file changed
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
199 | 207 | | |
200 | 208 | | |
201 | 209 | | |
| |||
0 commit comments