capabilities.work

Get the key for encrypting a repository secret

One step with GitHub Actions. We can help you get access.

Look something up

Get the key for encrypting a repository secret

with GitHub Actions · Configuration & Secrets Management
Works with AI assistants

Use GitHub Actions: its GitHub Actions Secrets API lets you get the key for encrypting a repository secret in a single step (GET /repos/{owner}/{repo}/actions/secrets/public-key). GitHub Actions also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • Which public key do I encrypt a new repository secret with before uploading it?
  • Where do I get the key_id to send along with an encrypted repo secret?
Say it to your AI assistant
  • Get the secret-encryption public key for repository {owner}/{repo}.
  • Fetch the repo public key and key ID I need to encrypt a secret for {repo}.
For your developer

GET /repos/{owner}/{repo}/actions/secrets/public-key in GitHub Actions Secrets API. Full spec on APIs.io.