githubgitkraken

Is there any options to push the protected info?


enter image description here

First, I don't know whether Git Kraken blocks it or Github blocks it.
If it's caused by Github, is there any way to push this file?
I am creating the website with OAuth2.0 in a group, so I need to upload this code.
And, I also wonder how the professional developers upload this kind of file.

security:
    oauth2:
      client:
        registration:
          google:
            clientId: ''
            clientSecret: ''
            redirectUri: "http://localhost/login/oauth2/code/{registrationId}"
            scope: email, profile

I uploaded the file without these. I would like to get the answer.


Solution

  • Github blocks it, and it is a setting for the repository to not allow pushes with secrets in them.

    It can be disabled for the repository if you have permission to edit it.

    https://docs.github.com/en/code-security/secret-scanning/push-protection-for-repositories-and-organizations#enabling-secret-scanning-as-a-push-protection