Secret Create

Create a new repository secret. Please note this api requires write access to the repository.

POST /api/repos/{owner}/{repo}/secrets

Example Request Body:

{
  "name": "docker_username",
  "value": "octocat",
  "event": [
    "push",
    "tags"
  ]
}

Example Response Body:

{
  "id": 1,
  "name": "docker_username",
  "image": null,
  "event": [
    "push",
    "tags"
  ]
}

Is there a mistake on this page? Please let us know or edit this page.