allowed_actions
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/selected-actions' \
--header 'Content-Type: application/json' \
--data-raw '{
"github_owned_allowed": true,
"patterns_allowed": [
"string"
],
"verified_allowed": true
}'
{}
actions
organization.monalisa/octocat@*
, monalisa/octocat@v2
, monalisa/*
.patterns_allowed
setting only applies to public repositories.true
to allow all actions by GitHub Marketplace verified creators.