是否有任何选项可以推送受保护的信息?

问题描述 投票:0回答:1

enter image description here

首先,我不知道是 Git Kraken 屏蔽了还是 Github 屏蔽了。
如果是Github导致的,有什么办法推送这个文件吗?
我正在群里用OAuth2.0创建网站,所以我需要上传这段代码。
而且,我也想知道专业的开发者是如何上传这种文件的。

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

我上传的文件没有这些。我想得到答案。

github gitkraken
1个回答
0
投票

Github 阻止了它,这是存储库的一项设置,不允许推送包含机密的内容。

如果您有编辑权限,可以对存储库禁用它。

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

© www.soinside.com 2019 - 2024. All rights reserved.