Skip to content

[BUG]: ResponseHeaders doesn't have x-accepted-github-permissions #607

@jsoref

Description

@jsoref

What happened?

github/codeql-action#2117 (comment)

Error: codeql/upload-sarif action failed: Resource not accessible by integration

Versions

"@octokit/types": "^12.4.0"

Relevant log output

There basically wasn't any -- that's the problem.

Notes

According to:

https://docs.github.com/en/rest/using-the-rest-api/troubleshooting-the-rest-api?apiVersion=2022-11-28#resource-not-accessible

You can use the X-Accepted-GitHub-Permissions header to identify the permissions that are required to access the REST API endpoint.

The value of the X-Accepted-GitHub-Permissions header is a comma separated list of the permissions that are required to use the endpoint. Occasionally, you can choose from multiple permission sets. In these cases, multiple comma-separated lists will be separated by a semicolon.

That makes this header incredibly valuable to debugging misconfigured workflows. It would be really helpful if it was included in https://github.com/octokit/types.ts/blob/main/src/ResponseHeaders.ts

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working as documented, or is being fixedreleased

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions