Skip to content

"Best Practices for Securing Secrets in Source Code Repositories?" #139973

Discussion options

You must be logged in to vote

To manage secrets in a public GitHub repository without environment variables:

Encryption: Store secrets in the repo but encrypt them. Use a secure service or key management system to decrypt at runtime.
Secret Management Services: Use external services like AWS Secrets Manager or HashiCorp Vault to store and retrieve secrets securely during runtime.
GitHub Actions Secrets: For GitHub workflows, store secrets in GitHub Actions Secrets, which are encrypted and secure.
These methods help avoid exposing secrets directly in the codebase.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@iterm-cmd
Comment options

Answer selected by iterm-cmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Security Build security into your GitHub workflow with features to keep your codebase secure Question
2 participants