How to Set Action Secrets Programmatically


This article describes how to set action secrets programmatically.


The Action secrets can be updated in two steps.

  1. Call the Patch Action API with the secret payload:
"secrets": [
"name": "string",
"value": "string"
  1. Call the Deploy Action API to activate the changes.

Updating the Action secrets from within Actions is not recommended.