remote: error: GH013: Repository rule violations found for refs/heads/master. remote: remote: - GITHUB PUSH PROTECTION remote: ————————————————————————————————————————— remote: Resolve the following violations before pushing again remote: remote: - Push cannot contain secrets remote: remote: remote: (?) Learn how to resolve a blocked push remote: https://docs.github.com/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/working-with-push-protection-from-the-command-line#resolving-a-blocked-push remote: remote: (?) This repository does not have Secret Scanning enabled, but is eligible. Enable Secret Scanning to view and manage detected secrets. remote: Visit the repository settings page, https://github.com/Norvon/norvon.github.io/settings/security_analysis remote: remote: remote: —— Tencent Cloud Secret ID ——————————————————————————— remote: locations: remote: - commit: cfe83ee85b30f513ef5002d23fdd684629fb330c remote: path: pluginsSrc/twikoo/dist/twikoo.all.min.js:2 remote: remote: (?) To push, remove secret from commit(s) or follow this URL to allow the secret. remote: https://github.com/Norvon/norvon.github.io/security/secret-scanning/unblock-secret/2v57KmGpz07dbIL6GwazSomPnBd remote: remote: remote: To https://github.com/Norvon/norvon.github.io.git ! [remote rejected] HEAD -> master (push declined due to repository rule violations) error: failed to push some refs to 'https://github.com/Norvon/norvon.github.io.git' FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html Error: Spawn failed at ChildProcess.<anonymous> (/home/runner/work/MyBlogCode/MyBlogCode/node_modules/hexo-deployer-git/node_modules/hexo-util/lib/spawn.js:51:21) at ChildProcess.emit (node:events:524:28) at ChildProcess._handle.onexit (node:internal/child_process:293:12) Error: Process completed with exit code 2.
从上面的错误可以看到是 pluginsSrc/twikoo/dist/twikoo.all.min.js:2 里面包含了 Tencent Cloud Secret ID Github 安全检测到了,然后把推送请求拦截了。