GitHub Action: The process ‘/usr/bin/git’ failed with exit code 128

Original link: https://blog.saky.site/post/github-action-128-NSConflict-wkj123-mac12.3.1/

question

Error log:

 The process '/usr/bin/git' failed with exit code 128.

Solution

Modify the main.yml file

 # 路径{仓库名}/.github/workflows/main.yml # 第56行删除注释token: $ # Settings > Secret 建立的ACCESS_TOKEN

Set Secrets

  1. Actions deployed later need permission to operate your repository, so set GitHub personal access (personal access token) in advance.

    For the generation tutorial, see GitHub’s official help document: Create a personal access token for the command line

  2. When granting permissions, only give repo permissions.

    Remember this string of TOKEN, you can’t view it after the page is closed

  3. Go back to the repository and click on Setting -> Secrets -> Actions -> New repository secrets

    Name fill in ACCESS_TOKEN , Value fill in the TOKEN just obtained

  4. Click the [actions] button in the upper row, click [deploy] on the left, click [Run workflow ▽] on the right to switch to the main branch, select the green [Run workflow] button, and the deployment will be successful.

This article is reprinted from: https://blog.saky.site/post/github-action-128-NSConflict-wkj123-mac12.3.1/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment