Why GitHub sends my hardcoded secrets to the providers when Secret Scanning is disabled? #55126
-
Select Topic AreaQuestion BodyI tried to push a hardcoded AWS credentials to a public repository and check if anyone tries to use it. Would be great to get your response and suggested approach to avoid sending the hardcoded secrets to the providers for validation when Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The short answer
More detailsYou've mentioned that you've disabled secret scanning, but you're still seeing authentication events from AWS. This is because secret scanning for partners is always enabled for public repositories, even if you've disabled secret scanning for your own repository. Secret scanning for partners is a security feature that helps to protect your open source community and partners' services from abuse. When you push a hardcoded secret to a public repository, GitHub scans the repository for known secret formats and sends any findings to partners. Partners can then revoke the secret or take other appropriate action. While you can't disable secret scanning for partners for public repositories, you can enable or disable user-facing secret scanning alerts for your own repository. This will not change how the partner program works, but it will allow you to see what secrets are discovered in your repository and take action on those. For example, not all partners will revoke secrets, so enabling secret scanning for your repository will give you the chance to take action on those secrets as you see fit. You can also use secret scanning for push protection to block your secret-containing pushes from entering your public repository in the first place. If you enable push protection, GitHub will not send secrets to partners if you push a secret to your repository. |
Beta Was this translation helpful? Give feedback.
The short answer
More details
You've mentioned that you've disabled secret scanning, but you're still seeing authentication events from AWS. This is because secret scanning for partners is always enabled for public repositories, even if you've disabled secret scanning for your own repository.
Secret scanning for partners is a security feature that helps to protect your open source community and partners' services from abuse. When you …