apicheats.dev Cheat sheet Raw .md
POST

Try POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits — GitHub API

GitHub playground

Commit an autofix for a code scanning alert

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

2 body fields
  • target_ref · optional · string — The Git reference of target branch for the commit. Branch needs to already exist. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.
  • message · optional · string — Commit message to be used.