GITHUB_TOKEN when running workflows in a repository,repo scope to use this endpoint. GitHub Apps must have the repository administration permission to use this API.curl --location --request GET 'https://api.github.com/repos///actions/permissions/workflow'{
"can_approve_pull_request_reviews": true,
"default_workflow_permissions": "read"
}