visibility
for repository access is set to selected
. The visibility is set when you Create or update an organization secret. You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the secrets
organization permission to use this endpoint.curl --location --request PUT 'https://api.github.com/orgs//actions/secrets//repositories' \
--header 'Content-Type: application/json' \
--data-raw '{
"selected_repository_ids": [
64780797
]
}'
{}
Authorization: Bearer ********************
visibility
is set to selected
. You can add and remove individual repositories using the Set selected repositories for an organization secret and Remove selected repository from an organization secret endpoints.【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通