GITHUB_TOKEN
when running workflows in a repository, and sets if GitHub Actionsrepo
scope to use this endpoint. GitHub Apps must have the repository administration
permission to use this API.curl --location --request PUT 'https://api.github.com/repos///actions/permissions/workflow' \
--header 'Content-Type: application/json' \
--data-raw '{
"can_approve_pull_request_reviews": true,
"default_workflow_permissions": "read"
}'
{}