enabled_repositories
must be configured to selected
. For more information, see "Set GitHub Actions permissions for an organization."admin:org
scope to use this endpoint. GitHub Apps must have the administration
organization permission to use this API.curl --location --request PUT 'https://api.github.com/orgs//actions/permissions/repositories' \
--header 'Content-Type: application/json' \
--data-raw '{
"selected_repository_ids": [
32,
42
]
}'
{}