response schema provided as a sapmle and actual api output is differnt #32884
Labels
content
This issue or pull request belongs to the Docs Content team
fix-internally
Triggers a workflow to copy the issue internally and close the current issue
rest
Content related to rest - overview.
Code of Conduct
What article on docs.github.com is affected?
i was going through https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-organization-repositories
i was doing an automation on enabling codeql analysis on repos https://docs.github.com/en/rest/code-scanning/code-scanning?apiVersion=2022-11-28, which are not enabled. for that i was running repositories api first to check for the repo dependabot, secret scanning are enabled or not.
i see the sample api response back like
`
"security_and_analysis": {
"advanced_security": {
"status": "enabled"
},
"secret_scanning": {
"status": "enabled"
},
"secret_scanning_push_protection": {
"status": "disabled"
}
}
`
but the actual response getting back is differnt
"security_and_analysis": { "secret_scanning": { "status": "disabled" }, "secret_scanning_push_protection": { "status": "disabled" }, "dependabot_security_updates": { "status": "disabled" }, "secret_scanning_validity_checks": { "status": "disabled" } }
i donot see this
"advanced_security": { "status": "enabled" },
instead, "secret_scanning_validity_checks": { "status": "disabled" }, "secret_scanning": { "status": "disabled" },
are available. I urge you to adjust these as these can mislead developers.What part(s) of the article would you like to see updated?
Please make necessary changes on the response section
Additional information
Hope the above details are good enough.
The text was updated successfully, but these errors were encountered: