POST /orgs/{org}/code-security/configurations returns HTTP 500 when secret_scanning_delegated_bypass_options.reviewers is included #200071
Replies: 1 comment
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
API
Body
Summary
Creating an organization code security configuration via
POST /orgs/{org}/code-security/configurationsreturns HTTP 500 (empty body) when the request includessecret_scanning_delegated_bypass_options.reviewers— even though the configuration is successfully created. The identical request without the reviewers block returns201, and adding the same reviewers via a follow-upPATCHreturns200. So only the create-with-reviewers path is affected.Reproduced against GitHub Enterprise Cloud as of June 2026. (Note: this path appears to have worked previously, so this may be a regression.)
Expected behavior
POSTwith validsecret_scanning_delegated_bypass_options.reviewersshould return201 Createdwith the configuration body — the same as creating it without reviewers, or as the equivalentPATCH.Actual behavior
500 Internal Server Errorwith an empty response body. The configuration is nonetheless created server-side, so a client that treats the 500 as a failure (and retries, as many HTTP clients do for 5xx) then hits422 "Name has already been taken"on the retry and is left with an orphaned configuration.Reproduction
Using a token with
admin:org(or fine-grained Administration: write) on the target org, and a real team in that org:delegated_bypass_options.reviewersImpact
Any API client that sends reviewers in the create request hits the 500. Clients that retry 5xx then get a confusing
422duplicate-name error plus an orphaned configuration. The current workaround is to create the configuration first and set reviewers in a separatePATCH.Environment
X-Github-Api-Version: 2022-11-28curl(no SDK involved)Beta Was this translation helpful? Give feedback.
All reactions