Open a fix pull request
POST/v1/organizations/:org/code/fixes
Upgrades a vulnerable package to the first version without its known vulnerabilities, in every lockfile of the repository that has it (package-lock.json, pnpm-lock.yaml, go.mod, requirements.txt): a direct dependency's range is raised, an indirect npm or pnpm dependency gets an override (within its major version). The lockfile is updated by the package manager, without install scripts, and a pull request opened through the GitHub App. Needs fix pull requests turned on for the connection, and the App's write access to contents and pull requests. Answers 412 major_upgrade when the fix is a new major version, until allow_major is set; 412 fix_unsupported when the platform cannot make the fix, and why.
Request
Responses
- 202
- 400
- 403
- 404
- 412
Queued (or the fix already under way or open)
The request is invalid
Your role does not allow this action
Not found, or not visible to you
Not possible in the current state