GitHub Actions · Arazzo Workflow
GitHub Actions Upsert a Repository Secret
Version 1.0.0
Fetch the repository public key, create or update an encrypted secret, then confirm it exists.
Provider
Workflows
upsert-repo-secret
Create or update an encrypted repository secret and confirm it.
Gets the repository public key, writes the encrypted secret value with that key id, and reads the secret metadata back to verify the upsert.
1
getPublicKey
getRepoPublicKey
Retrieve the repository public key. The returned key_id must match the key id used to encrypt the secret value.
2
writeSecret
createOrUpdateRepoSecret
Create or update the secret with the supplied encrypted value. The API returns 201 when the secret is newly created and 204 when it is updated.
3
confirmSecret
getRepoSecret
Read the secret metadata back to confirm the upsert succeeded and capture its updated timestamp.