allowed_actions must be configured to selected. For more information, see "Set GitHub Actions permissions for a repository."selected actions set at the organization or enterprise levels, then you cannot override any of the allowed actions settings.patterns_allowed setting for private repositories, the repository must belong to an enterprise. If the repository does not belong to an enterprise, then the patterns_allowed setting only applies to public repositories.repo scope to use this endpoint.curl --location --request PUT 'https://service1.exmaple.com/repos///actions/permissions/selected-actions' \
--header 'Content-Type: application/json' \
--data-raw '{
"github_owned_allowed": true,
"verified_allowed": false,
"patterns_allowed": [
"monalisa/octocat@*",
"docker/*"
]
}'