{"meta":{"title":"GitHub secret types","intro":"Learn about the different types of secrets used by GitHub.","product":"安全性和代码质量","breadcrumbs":[{"href":"/zh/code-security","title":"安全性和代码质量"},{"href":"/zh/code-security/concepts","title":"Concepts"},{"href":"/zh/code-security/concepts/secret-security","title":"机密安全性"},{"href":"/zh/code-security/concepts/secret-security/secret-types","title":"Secret types"}],"documentType":"article"},"body":"# GitHub secret types\n\nLearn about the different types of secrets used by GitHub.\n\nGitHub secrets are used to securely store sensitive information like API keys, tokens, and passwords in repositories.\n\nWhen you store the sensitive information as a GitHub secret, you remove the need to hardcode the credential or key, and prevent exposure of it in your code or logs. The secret can then be used to authenticate services, manage credentials, and securely pass sensitive data in workflows.\n\nThere are three types of secrets used by GitHub:\n\n* Dependabot secrets\n* Actions secrets\n* Codespaces secrets\n\nDepending on the GitHub secret type, you can create and manage secrets under your repository, organization, or personal account security settings page.\n\nFor information on the usage, scope, permissions, and limitations of each secret type, see [了解 GitHub 机密类型](/zh/code-security/reference/secret-security/understanding-github-secret-types)."}