Skip to main content

Push protection for users

With push protection for users, you are automatically protected on all pushes to public repositories across GitHub.

누가 이 기능을 사용할 수 있나요?

사용자에 대한 푸시 보호는 다음 리포지토리 유형에서 기본적으로 켜져 있습니다.

  • 공용 리포지토리

이 문서의 내용

About push protection for users

Push protection for users automatically protects you from accidentally committing secrets to public repositories across GitHub.

When you try to push a secret to a public repository, GitHub blocks the push. If you believe it's safe to allow the secret, you have the option to bypass the block. Otherwise, you must remove the secret from the commit before pushing again. For more information on how to resolve a blocked push, see Working with push protection in the GitHub UI or Working with push protection from the command line, depending on whether you use the GitHub UI or the command line.

Push protection for users is always on by default. You can disable the feature at any time through your personal account settings. This may cause secrets to be accidentally leaked. For more information, see Disabling push protection for users.

Push protection for users is different from push protection for repositories and organizations, which is a secret scanning feature that must be enabled by a repository administrator or organization owner. With push protection for repositories and organizations, secret scanning blocks contributors from pushing secrets to a repository and generates an alert whenever a contributor bypasses the protection. For more information, see 푸시 보호 정보.

With push protection for users, GitHub won't create an alert when you bypass the protection and push a secret to a public repository, unless the repository itself has secret scanning enabled. However, if the bypassed secret is a GitHub token, the token will be revoked and you will be notified by email.

For information on the secrets and service providers supported for push protection, see 지원되는 비밀 검사 패턴.

Disabling push protection for users

You can disable push protection for users through your personal account settings.

  1. GitHub의 페이지 오른쪽 상단에서 프로필 사진을 선택한 다음, Settings를 클릭합니다.

  2. 사이드바의 "Security" 섹션에서 Code security를 클릭합니다.

  3. Under "User", to the right of "Push protection for yourself", click Disable.

    Screenshot of the "User" section of the "Code security and analysis" settings page. A button labeled "Disable" is outlined in dark orange.