You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What part(s) of the article would you like to see updated?
Under the parameters section for PUT /orgs/{org}/actions/secrets/{secret_name} the selected_repository_ids parameter says the list should be an "array of strings". However, if you send the repository ID as a string value like the following payload:
The API returns a 422 error with the following content:
{
"message":"Invalid request.\n\nFor 'items', \"12345\" is not an integer.",
"documentation_url":"https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret"
}
If you instead send an array of integers, the API call succeeds.
Based on this information the following line should be changed in the documentation:
selected_repository_ids | array of strings integers
Additional information
The text was updated successfully, but these errors were encountered:
Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.
Thank you for opening this issue! Changes to the REST API schema can be requested in github/rest-api-description. I will transfer your issue over to that open source repo.
This one bit me in the arse yesterday. In addition, Dependabot's sister endpoint does require a list of strings, as correctly documented. Meaning that when creating both an Action and a Dependabot secret, one needs to first use a list of integers, and then convert it to a list of strings.
Codespace secrets, in turn, are documented as requiring a list of integers (although I haven't tested myself).
Documentation should of course be adjusted, but also maybe consider aligning those three very similar methods.
What article on docs.github.com is affected?
https://docs.github.com/en/rest/reference/actions#create-or-update-an-organization-secret
What part(s) of the article would you like to see updated?
Under the parameters section for PUT /orgs/{org}/actions/secrets/{secret_name} the selected_repository_ids parameter says the list should be an "array of strings". However, if you send the repository ID as a string value like the following payload:
The API returns a 422 error with the following content:
If you instead send an array of integers, the API call succeeds.
Based on this information the following line should be changed in the documentation:
selected_repository_ids | array of
stringsintegersAdditional information
The text was updated successfully, but these errors were encountered: