gitleaks / gitleaks-action

Protect your secrets using Gitleaks-Action
https://gitleaks.io
Other
332 stars 128 forks source link

Comment on PR review fails even for small diff #92

Open weineran opened 2 years ago

weineran commented 2 years ago

Example: https://github.com/smallstep/crypto/actions/runs/3114310200/jobs/5050004187

Warning: Error encountered when attempting to write a comment on PR #67.
Likely an issue with too large of a diff for the comment to be written.
All secrets that have been leaked will be reported in the summary and job artifact.

In this case, the diff is actually quite small, so probably something else is going on.

weineran commented 2 years ago

Reported by @dopey

weineran commented 2 years ago

This PR should help us debug the issue: https://github.com/gitleaks/gitleaks-action/pull/91

weineran commented 2 years ago

Additional debugging info now available: https://github.com/smallstep/crypto/actions/runs/3137331603/jobs/5095370583#step:4:57

Warning: Error encountered when attempting to write a comment on PR #76: HttpError: Resource not accessible by integration
Likely an issue with too large of a diff for the comment to be written.
All secrets that have been leaked will be reported in the summary and job artifact.

So the error is: HttpError: Resource not accessible by integration Seems like it might be a permissions issue (https://github.com/actions/first-interaction/issues/10). Need to dig in further...