github-security-report-action icon indicating copy to clipboard operation
github-security-report-action copied to clipboard

You are not authorized to read security events

Open ChrisMedicom opened this issue 4 years ago • 1 comments

Hello, we are getting the following error when running the action:

image

Our yml file is setup like this with the github-security-report-action after the codeql action. image

The secret being used currently is a PAT token with all the boxes checked (including the "repo" and "security_events" boxes)

Thank you for any help that can be provided!

ChrisMedicom avatar May 24 '21 15:05 ChrisMedicom

That error would seem to indicate that the token in use does not have the required permissions... That error message will be coming directly from the Octokit REST library and is the message presented from the GitHub APIs.

I just ran a test to validate the necessary settings on the token to ensure nothing has changed and with these permissions on a PAT that I just generated, it works without an error;

Screenshot 2021-06-02 at 17 37 42

peter-murray avatar Jun 02 '21 16:06 peter-murray