POST /orgs/{org}/code-security/configurations returns HTTP 500 when secret_scanning_delegated_bypass_options.reviewers is included #200069
Replies: 1 comment
-
|
Thank you for your interest in contributing to our community! We currently only accept discussions created through the GitHub UI using our provided discussion templates. Please re-submit your discussion by navigating to the appropriate category and using the template provided. This discussion has been closed because it was not submitted through the expected format. If you believe this was a mistake, please reach out to the maintainers. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Creating an organization code security configuration via
POST /orgs/{org}/code-security/configurationsreturns HTTP 500 (empty body)when the request includes
secret_scanning_delegated_bypass_options.reviewers—even though the configuration is successfully created. The identical request
without the reviewers block returns
201, and adding the same reviewers via afollow-up
PATCHreturns200. So only the create-with-reviewers path isaffected.
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.reviewersshouldreturn
201 Createdwith the configuration body — the same as creating itwithout reviewers, or as the equivalent
PATCH.Actual behavior
500 Internal Server Errorwith an empty response body. The configuration isnonetheless created server-side, so a client that treats the 500 as a failure
(and retries, as many HTTP clients do for 5xx) then hits
422 "Name has already been taken"on the retry and is left with an orphanedconfiguration.
Reproduction
Using a token with
admin:org(or fine-grained Administration: write) on thetarget 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 orphanedconfiguration. The current workaround is to create the configuration first and
set reviewers in a separate
PATCH.Environment
X-Github-Api-Version: 2022-11-28curl(no SDK involved)Beta Was this translation helpful? Give feedback.
All reactions