请帮助我: Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 1 ❌ #1536
Replies: 2 comments
-
|
Never include the value of It looks like you have a branch protection rule on the branch you're trying to deploy to. You need to increase the permissions of the user who owns the token, or adjust the branch protection rule so it's not in place, or so that user has permissions to override it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
非常感谢。
James Ives ***@***.***> 于2024年3月9日周六 00:41写道:
… Never include the value of token online, it's equivalent to a passsword.
I've gone ahead and edited your post to remove it.
It looks like you have a branch protection rule on the branch you're
trying to deploy to. You need to increase the permissions of the user who
owns the token, or adjust the branch protection rule so it's not in place,
or so that user has permissions to override it.
—
Reply to this email directly, view it on GitHub
<#1536 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOB37QTO4OXZ2VHJWOG7TU3YXHSZ7AVCNFSM6AAAAABEKSYNASVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DOMRSGIYDC>
.
You are receiving this because you authored the thread.Message ID:
<JamesIves/github-pages-deploy-action/repo-discussions/1536/comments/8722201
@github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Run JamesIves/github-pages-deploy-action@v4 ╭━━━╮╭╮╭╮╱╭╮╱╱╭╮╱╱╭━━━╮ ┃╭━╮┣╯╰┫┃╱┃┃╱╱┃┃╱╱┃╭━╮┃ ┃┃╱╰╋╮╭┫╰━╯┣╮╭┫╰━╮┃╰━╯┣━━┳━━┳━━┳━━╮ ┃┃╭━╋┫┃┃╭━╮┃┃┃┃╭╮┃┃╭━━┫╭╮┃╭╮┃┃━┫━━┫ ┃╰┻━┃┃╰┫┃╱┃┃╰╯┃╰╯┃┃┃╱╱┃╭╮┃╰╯┃┃━╋━━┃ ╰━━━┻┻━┻╯╱╰┻━━┻━━╯╰╯╱╱╰╯╰┻━╮┣━━┻━━╯ ╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╭━╯┃ ╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╰━━╯ ╭━━━╮╱╱╱╱╱╭╮╱╱╱╱╱╱╱╱╭━━━╮╱╱╭╮ ╰╮╭╮┃╱╱╱╱╱┃┃╱╱╱╱╱╱╱╱┃╭━╮┃╱╭╯╰╮ ╱┃┃┃┣━━┳━━┫┃╭━━┳╮╱╭╮┃┃╱┃┣━┻╮╭╋┳━━┳━╮ ╱┃┃┃┃┃━┫╭╮┃┃┃╭╮┃┃╱┃┃┃╰━╯┃╭━┫┃┣┫╭╮┃╭╮╮ ╭╯╰╯┃┃━┫╰╯┃╰┫╰╯┃╰━╯┃┃╭━╮┃╰━┫╰┫┃╰╯┃┃┃┃ ╰━━━┻━━┫╭━┻━┻━━┻━╮╭╯╰╯╱╰┻━━┻━┻┻━━┻╯╰╯ ╱╱╱╱╱╱╱┃┃╱╱╱╱╱╱╭━╯┃ ╱╱╱╱╱╱╱╰╯╱╱╱╱╱╱╰━━╯ 💖 Support: https://github.com/sponsors/JamesIves 📣 Maintained by James Ives: https://jamesiv.es 🚀 Getting Started Guide: https://github.com/JamesIves/github-pages-deploy-action ❓ Discussions / Q&A: https://github.com/JamesIves/github-pages-deploy-action/discussions 🔧 Report a Bug: https://github.com/JamesIves/github-pages-deploy-action/issues Checking configuration and starting deployment… 🚦 Deploying using Deploy Token… 🔑 Configuring git… /usr/bin/git config --global --add safe.directory /home/runner/work/HexoNote/HexoNote /usr/bin/git config user.name Pupper0601 /usr/bin/git config user.email [email protected] /usr/bin/git config core.ignorecase false /usr/bin/git config --local --unset-all http.https://github.com/.extraheader /usr/bin/git remote rm origin /usr/bin/git remote add origin ***github.com/Pupper0601/Pupper0601.github.io.git Git configured… 🔧 Starting to commit changes… /usr/bin/git ls-remote --heads ***github.com/Pupper0601/Pupper0601.github.io.git refs/heads/main 178ef8f7b02f7f42f72ce160b99420ae53040fc3 refs/heads/main Creating worktree… /usr/bin/git fetch --no-recurse-submodules --depth=1 origin main From https://github.com/Pupper0601/Pupper0601.github.io * branch main -> FETCH_HEAD * [new branch] main -> origin/main /usr/bin/git worktree add --no-checkout --detach github-pages-deploy-action-temp-deployment-folder Preparing worktree (detached HEAD d400abe) /usr/bin/git checkout -B main origin/main Previous HEAD position was d400abe 修复报错问题 Switched to and reset branch 'main' branch 'main' set up to track 'origin/main'. /usr/bin/chmod -R +rw /home/runner/work/HexoNote/HexoNote/public /usr/bin/rsync -q -av --checksum --progress /home/runner/work/HexoNote/HexoNote/public/. github-pages-deploy-action-temp-deployment-folder --delete --exclude public/.github --exclude CNAME --exclude .nojekyll --exclude .ssh --exclude .git --exclude .github Checking if there are files to commit… /usr/bin/git add --all . /usr/bin/git checkout -b github-pages-deploy-action/ampk7xbma Switched to a new branch 'github-pages-deploy-action/ampk7xbma' /usr/bin/git commit -m 修复报错问题 由Github Actions更新 --quiet --no-verify Force-pushing changes... /usr/bin/git push --force ***github.com/Pupper0601/Pupper0601.github.io.git github-pages-deploy-action/ampk7xbma:main remote: error: GH0[13](https://github.com/Pupper0601/HexoNote/actions/runs/8185321021/job/22381445895#step:9:14): Repository rule violations found for refs/heads/main. remote: Review all repository rules at http://github.com/Pupper0601/Pupper0601.github.io/rules?ref=refs%2Fheads%2Fmain remote: remote: - GITHUB PUSH PROTECTION remote: —————————————————————————————————————————————————————— remote: Resolve the following secrets before pushing again. remote: remote: (?) Learn how to resolve a blocked push remote: https://docs.github.com/code-security/secret-scanning/pushing-a-branch-blocked-by-push-protection 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/Pupper0601/Pupper0601.github.io/settings/security_analysis remote: remote: remote: remote: —— GitHub Personal Access Token —————————————————————— remote: locations: remote: - commit: a5f397[18](https://github.com/Pupper0601/HexoNote/actions/runs/8185321021/job/22381445895#step:9:19)e80dd9325de4300c10dcac845[24](https://github.com/Pupper0601/HexoNote/actions/runs/8185321021/job/22381445895#step:9:25)2d69c remote: path: posts/e6c82bb0.html:1 remote: remote: (?) To push, remove secret from commit(s) or follow this URL to allow the secret. remote: https://github.com/Pupper0601/Pupper0601.github.io/security/secret-scanning/unblock-secret/2dLoLN4oKZzOSiv9sxJX62sKfSh remote: To https://github.com/Pupper0[60](https://github.com/Pupper0601/HexoNote/actions/runs/8185321021/job/22381445895#step:9:61)1/Pupper0601.github.io.git ! [remote rejected] github-pages-deploy-action/ampk7xbma -> main (push declined due to repository rule violations) error: failed to push some refs to 'https://github.com/Pupper0601/Pupper0601.github.io.git' Running post deployment cleanup jobs… 🗑️ /usr/bin/git checkout -B github-pages-deploy-action/ampk7xbma Reset branch 'github-pages-deploy-action/ampk7xbma' /usr/bin/chmod -R +rw github-pages-deploy-action-temp-deployment-folder /usr/bin/git worktree remove github-pages-deploy-action-temp-deployment-folder --force Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 1 ❌ Notice: Deployment failed! ❌请问这个问题如何解决
Beta Was this translation helpful? Give feedback.
All reactions