Closed chessbyte closed 1 month ago
For both diagnostics and flexibility, it would be nice to allow disabling of commenting in the PR to see the results in the GHA workflow.
I believe the issue is our use of forked PRs, which requires the use of pull_request_target event. But, for security reasons, this event runs in the context of the base of the pull request, rather than in the context of the merge commit, as the pull_request event does. Github says: Avoid using this event if you need to build or run code from the pull request.
Running a basic cdk diff
on a pull_request
event runs fine, but would force us to look for issues in the workflow log.
I am running an adapted versions of your first example from here in a private repo in a private GitHub org.
Continuously getting the following error:
Error commenting stages: RequestError [HttpError]: Resource not accessible by integration - https://docs.github.com/rest/issues/comments#create-an-issue-comment
My OIDC Auth looks like (and works for deployments via GHA)
Tried with
Tried with
Tried with