Interview Prep/GitHub Actions/Secrets, Variables, Environments & Permissions

How are secrets protected in transit and in logs, and what are the limits?

IntermediateConceptSecrets, Variables, Environments & Permissions
Answer

Secrets are encrypted client-side with a libsodium sealed box using the repo or org public key before upload, stored encrypted, and decrypted only when sent to a runner for a job that references them. The runner masks exact values in logs. Limits: 48 KB per secret, 100 secrets per repository, 100 per environment, 1,000 per organization. For larger blobs (certificates, kubeconfigs), store an encryption passphrase as the secret and commit the encrypted file, or better, fetch at runtime from a cloud secret manager via OIDC.

All GitHub Actions questions Roadmap: GitHub Actions

More on Secrets, Variables, Environments & Permissions