Skip to content

Commit

Permalink
Log error that is not rethrown
Browse files Browse the repository at this point in the history
  • Loading branch information
axel-op committed Mar 3, 2024
1 parent 36fbfd3 commit 0089ac0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/lib/github.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ class Analysis {
} catch (e) {
if (e is GitHubError &&
e.hasMessageContaining('Resource not accessible by integration')) {
gaction.log.warning(e.message!);
gaction.log.warning(
' It seems that this action doesn\'t have the required permissions to call the GitHub API with the token you gave.'
' This can occur if this repository is a fork, as in that case GitHub reduces the GITHUB_TOKEN\'s permissions for security reasons.'
Expand Down

0 comments on commit 0089ac0

Please sign in to comment.