Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed with exit code 128, Permission Denied #1110

Closed
arifszn opened this issue May 4, 2022 · 12 comments
Closed

Failed with exit code 128, Permission Denied #1110

arifszn opened this issue May 4, 2022 · 12 comments
Labels
Potential GitHub Issue 🐙 😺 Issues that are potentially caused by GitHub.

Comments

@arifszn
Copy link

arifszn commented May 4, 2022

Describe the bug

The deployment process is failed with error

Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128

Reproduction Steps

Logs

https://github.com/aroralanuk/aroralanuk.github.io/runs/6288827458?check_suite_focus=true

https://github.com/DanielLendvai/daniellendvai.github.io/runs/6290371520?check_suite_focus=true

Workflow

https://github.com/arifszn/gitprofile/blob/main/.github/workflows/deploy.yml

Additional Comments

This error has begun to occur recently. Previously it worked perfectly.

@arifszn
Copy link
Author

arifszn commented May 4, 2022

Full Log
2022-05-04T11:30:36.6587889Z Requested labels: ubuntu-latest
2022-05-04T11:30:36.6587938Z Job defined at: aroralanuk/aroralnauk.github.io/.github/workflows/deploy.yml@refs/heads/main
2022-05-04T11:30:36.6587965Z Waiting for a runner to pick up this job...
2022-05-04T11:30:37.1637528Z Job is waiting for a hosted runner to come online.
2022-05-04T11:30:41.2278322Z Job is about to start running on the hosted runner: Hosted Agent (hosted)
2022-05-04T11:30:43.3882190Z Current runner version: '2.290.1'
2022-05-04T11:30:43.3910899Z ##[group]Operating System
2022-05-04T11:30:43.3911446Z Ubuntu
2022-05-04T11:30:43.3911688Z 20.04.4
2022-05-04T11:30:43.3912045Z LTS
2022-05-04T11:30:43.3912333Z ##[endgroup]
2022-05-04T11:30:43.3912634Z ##[group]Virtual Environment
2022-05-04T11:30:43.3913009Z Environment: ubuntu-20.04
2022-05-04T11:30:43.3913384Z Version: 20220425.1
2022-05-04T11:30:43.3913918Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu20/20220425.1/images/linux/Ubuntu2004-Readme.md
2022-05-04T11:30:43.3914572Z Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20220425.1
2022-05-04T11:30:43.3915024Z ##[endgroup]
2022-05-04T11:30:43.3915385Z ##[group]Virtual Environment Provisioner
2022-05-04T11:30:43.3915737Z 1.0.0.0-main-20220421-1
2022-05-04T11:30:43.3916067Z ##[endgroup]
2022-05-04T11:30:43.3916732Z ##[group]GITHUB_TOKEN Permissions
2022-05-04T11:30:43.3917269Z Contents: read
2022-05-04T11:30:43.3917743Z Metadata: read
2022-05-04T11:30:43.3918077Z ##[endgroup]
2022-05-04T11:30:43.3921648Z Secret source: Actions
2022-05-04T11:30:43.3922112Z Prepare workflow directory
2022-05-04T11:30:43.4779738Z Prepare all required actions
2022-05-04T11:30:43.4964406Z Getting action download info
2022-05-04T11:30:44.1552258Z Download action repository 'actions/checkout@v3' (SHA:2541b1294d2704b0964813337f33b291d3f8596b)
2022-05-04T11:30:45.0334744Z Download action repository 'actions/setup-node@v3' (SHA:56337c425554a6be30cdef71bf441f15be286854)
2022-05-04T11:30:45.9541702Z Download action repository 'actions/cache@v2' (SHA:937d24475381cd9c75ae6db12cb4e79714b926ed)
2022-05-04T11:30:46.8529158Z Download action repository 'JamesIves/github-pages-deploy-action@v4' (SHA:8817a56e5bfec6e2b08345c81f4d422db53a2cdc)
2022-05-04T11:30:48.2833096Z ##[group]Run actions/checkout@v3
2022-05-04T11:30:48.2833371Z with:
2022-05-04T11:30:48.2833609Z   repository: aroralanuk/aroralnauk.github.io
2022-05-04T11:30:48.2834074Z   token: ***
2022-05-04T11:30:48.2834282Z   ssh-strict: true
2022-05-04T11:30:48.2834510Z   persist-credentials: true
2022-05-04T11:30:48.2834719Z   clean: true
2022-05-04T11:30:48.2834911Z   fetch-depth: 1
2022-05-04T11:30:48.2835102Z   lfs: false
2022-05-04T11:30:48.2835279Z   submodules: false
2022-05-04T11:30:48.2835495Z   set-safe-directory: true
2022-05-04T11:30:48.2835710Z ##[endgroup]
2022-05-04T11:30:48.5120029Z Syncing repository: aroralanuk/aroralnauk.github.io
2022-05-04T11:30:48.5121753Z ##[group]Getting Git version info
2022-05-04T11:30:48.5122291Z Working directory is '/home/runner/work/aroralnauk.github.io/aroralnauk.github.io'
2022-05-04T11:30:48.5122816Z [command]/usr/bin/git version
2022-05-04T11:30:48.5243488Z git version 2.36.0
2022-05-04T11:30:48.5244345Z ##[endgroup]
2022-05-04T11:30:48.5264020Z Temporarily overriding HOME='/home/runner/work/_temp/9f0b5d76-5daa-4f0b-9fce-9e5b837a2993' before making global git config changes
2022-05-04T11:30:48.5264496Z Adding repository directory to the temporary git global config as a safe directory
2022-05-04T11:30:48.5265078Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/aroralnauk.github.io/aroralnauk.github.io
2022-05-04T11:30:48.5295852Z Deleting the contents of '/home/runner/work/aroralnauk.github.io/aroralnauk.github.io'
2022-05-04T11:30:48.5300827Z ##[group]Initializing the repository
2022-05-04T11:30:48.5302979Z [command]/usr/bin/git init /home/runner/work/aroralnauk.github.io/aroralnauk.github.io
2022-05-04T11:30:48.5360815Z hint: Using 'master' as the name for the initial branch. This default branch name
2022-05-04T11:30:48.5361405Z hint: is subject to change. To configure the initial branch name to use in all
2022-05-04T11:30:48.5361823Z hint: of your new repositories, which will suppress this warning, call:
2022-05-04T11:30:48.5362092Z hint: 
2022-05-04T11:30:48.5362419Z hint: 	git config --global init.defaultBranch <name>
2022-05-04T11:30:48.5362648Z hint: 
2022-05-04T11:30:48.5362979Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2022-05-04T11:30:48.5363625Z hint: 'development'. The just-created branch can be renamed via this command:
2022-05-04T11:30:48.5363879Z hint: 
2022-05-04T11:30:48.5364114Z hint: 	git branch -m <name>
2022-05-04T11:30:48.5368542Z Initialized empty Git repository in /home/runner/work/aroralnauk.github.io/aroralnauk.github.io/.git/
2022-05-04T11:30:48.5376620Z [command]/usr/bin/git remote add origin https://github.com/aroralanuk/aroralnauk.github.io
2022-05-04T11:30:48.5414896Z ##[endgroup]
2022-05-04T11:30:48.5415561Z ##[group]Disabling automatic garbage collection
2022-05-04T11:30:48.5419212Z [command]/usr/bin/git config --local gc.auto 0
2022-05-04T11:30:48.5449551Z ##[endgroup]
2022-05-04T11:30:48.5450299Z ##[group]Setting up auth
2022-05-04T11:30:48.5456927Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2022-05-04T11:30:48.5489150Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2022-05-04T11:30:48.5831607Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2022-05-04T11:30:48.5862634Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2022-05-04T11:30:48.6076665Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2022-05-04T11:30:48.6121843Z ##[endgroup]
2022-05-04T11:30:48.6122577Z ##[group]Fetching the repository
2022-05-04T11:30:48.6133259Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +18e11a0a13a07c87f60f3e069b35be396087b353:refs/remotes/origin/main
2022-05-04T11:30:49.0104395Z remote: Enumerating objects: 66, done.        
2022-05-04T11:30:49.0104861Z remote: Counting objects:   1% (1/66)        
2022-05-04T11:30:49.0105235Z remote: Counting objects:   3% (2/66)        
2022-05-04T11:30:49.0105568Z remote: Counting objects:   4% (3/66)        
2022-05-04T11:30:49.0105901Z remote: Counting objects:   6% (4/66)        
2022-05-04T11:30:49.0106557Z remote: Counting objects:   7% (5/66)        
2022-05-04T11:30:49.0106888Z remote: Counting objects:   9% (6/66)        
2022-05-04T11:30:49.0107146Z remote: Counting objects:  10% (7/66)        
2022-05-04T11:30:49.0107386Z remote: Counting objects:  12% (8/66)        
2022-05-04T11:30:49.0107634Z remote: Counting objects:  13% (9/66)        
2022-05-04T11:30:49.0107892Z remote: Counting objects:  15% (10/66)        
2022-05-04T11:30:49.0108146Z remote: Counting objects:  16% (11/66)        
2022-05-04T11:30:49.0108398Z remote: Counting objects:  18% (12/66)        
2022-05-04T11:30:49.0108642Z remote: Counting objects:  19% (13/66)        
2022-05-04T11:30:49.0108890Z remote: Counting objects:  21% (14/66)        
2022-05-04T11:30:49.0109128Z remote: Counting objects:  22% (15/66)        
2022-05-04T11:30:49.0109370Z remote: Counting objects:  24% (16/66)        
2022-05-04T11:30:49.0109641Z remote: Counting objects:  25% (17/66)        
2022-05-04T11:30:49.0109877Z remote: Counting objects:  27% (18/66)        
2022-05-04T11:30:49.0110105Z remote: Counting objects:  28% (19/66)        
2022-05-04T11:30:49.0110339Z remote: Counting objects:  30% (20/66)        
2022-05-04T11:30:49.0110575Z remote: Counting objects:  31% (21/66)        
2022-05-04T11:30:49.0110800Z remote: Counting objects:  33% (22/66)        
2022-05-04T11:30:49.0111031Z remote: Counting objects:  34% (23/66)        
2022-05-04T11:30:49.0111264Z remote: Counting objects:  36% (24/66)        
2022-05-04T11:30:49.0111495Z remote: Counting objects:  37% (25/66)        
2022-05-04T11:30:49.0111727Z remote: Counting objects:  39% (26/66)        
2022-05-04T11:30:49.0111963Z remote: Counting objects:  40% (27/66)        
2022-05-04T11:30:49.0112198Z remote: Counting objects:  42% (28/66)        
2022-05-04T11:30:49.0112643Z remote: Counting objects:  43% (29/66)        
2022-05-04T11:30:49.0112876Z remote: Counting objects:  45% (30/66)        
2022-05-04T11:30:49.0113111Z remote: Counting objects:  46% (31/66)        
2022-05-04T11:30:49.0113342Z remote: Counting objects:  48% (32/66)        
2022-05-04T11:30:49.0113583Z remote: Counting objects:  50% (33/66)        
2022-05-04T11:30:49.0113825Z remote: Counting objects:  51% (34/66)        
2022-05-04T11:30:49.0114055Z remote: Counting objects:  53% (35/66)        
2022-05-04T11:30:49.0114294Z remote: Counting objects:  54% (36/66)        
2022-05-04T11:30:49.0114528Z remote: Counting objects:  56% (37/66)        
2022-05-04T11:30:49.0114753Z remote: Counting objects:  57% (38/66)        
2022-05-04T11:30:49.0114994Z remote: Counting objects:  59% (39/66)        
2022-05-04T11:30:49.0115236Z remote: Counting objects:  60% (40/66)        
2022-05-04T11:30:49.0115467Z remote: Counting objects:  62% (41/66)        
2022-05-04T11:30:49.0115690Z remote: Counting objects:  63% (42/66)        
2022-05-04T11:30:49.0115919Z remote: Counting objects:  65% (43/66)        
2022-05-04T11:30:49.0116157Z remote: Counting objects:  66% (44/66)        
2022-05-04T11:30:49.0116384Z remote: Counting objects:  68% (45/66)        
2022-05-04T11:30:49.0116623Z remote: Counting objects:  69% (46/66)        
2022-05-04T11:30:49.0116856Z remote: Counting objects:  71% (47/66)        
2022-05-04T11:30:49.0117079Z remote: Counting objects:  72% (48/66)        
2022-05-04T11:30:49.0117308Z remote: Counting objects:  74% (49/66)        
2022-05-04T11:30:49.0117543Z remote: Counting objects:  75% (50/66)        
2022-05-04T11:30:49.0117764Z remote: Counting objects:  77% (51/66)        
2022-05-04T11:30:49.0118079Z remote: Counting objects:  78% (52/66)        
2022-05-04T11:30:49.0118315Z remote: Counting objects:  80% (53/66)        
2022-05-04T11:30:49.0118549Z remote: Counting objects:  81% (54/66)        
2022-05-04T11:30:49.0118773Z remote: Counting objects:  83% (55/66)        
2022-05-04T11:30:49.0119007Z remote: Counting objects:  84% (56/66)        
2022-05-04T11:30:49.0119242Z remote: Counting objects:  86% (57/66)        
2022-05-04T11:30:49.0119464Z remote: Counting objects:  87% (58/66)        
2022-05-04T11:30:49.0119694Z remote: Counting objects:  89% (59/66)        
2022-05-04T11:30:49.0119929Z remote: Counting objects:  90% (60/66)        
2022-05-04T11:30:49.0120153Z remote: Counting objects:  92% (61/66)        
2022-05-04T11:30:49.0120389Z remote: Counting objects:  93% (62/66)        
2022-05-04T11:30:49.0120631Z remote: Counting objects:  95% (63/66)        
2022-05-04T11:30:49.0120854Z remote: Counting objects:  96% (64/66)        
2022-05-04T11:30:49.0121210Z remote: Counting objects:  98% (65/66)        
2022-05-04T11:30:49.0121452Z remote: Counting objects: 100% (66/66)        
2022-05-04T11:30:49.0121709Z remote: Counting objects: 100% (66/66), done.        
2022-05-04T11:30:49.0121998Z remote: Compressing objects:   2% (1/49)        
2022-05-04T11:30:49.0122264Z remote: Compressing objects:   4% (2/49)        
2022-05-04T11:30:49.0122520Z remote: Compressing objects:   6% (3/49)        
2022-05-04T11:30:49.0535699Z remote: Compressing objects:   8% (4/49)        
2022-05-04T11:30:49.0536329Z remote: Compressing objects:  10% (5/49)        
2022-05-04T11:30:49.0536690Z remote: Compressing objects:  12% (6/49)        
2022-05-04T11:30:49.0537048Z remote: Compressing objects:  14% (7/49)        
2022-05-04T11:30:49.0537396Z remote: Compressing objects:  16% (8/49)        
2022-05-04T11:30:49.0537741Z remote: Compressing objects:  18% (9/49)        
2022-05-04T11:30:49.0538105Z remote: Compressing objects:  20% (10/49)        
2022-05-04T11:30:49.0542399Z remote: Compressing objects:  22% (11/49)        
2022-05-04T11:30:49.0542705Z remote: Compressing objects:  24% (12/49)        
2022-05-04T11:30:49.0542958Z remote: Compressing objects:  26% (13/49)        
2022-05-04T11:30:49.0543219Z remote: Compressing objects:  28% (14/49)        
2022-05-04T11:30:49.0543608Z remote: Compressing objects:  30% (15/49)        
2022-05-04T11:30:49.0543847Z remote: Compressing objects:  32% (16/49)        
2022-05-04T11:30:49.0544100Z remote: Compressing objects:  34% (17/49)        
2022-05-04T11:30:49.0544346Z remote: Compressing objects:  36% (18/49)        
2022-05-04T11:30:49.0544580Z remote: Compressing objects:  38% (19/49)        
2022-05-04T11:30:49.0544832Z remote: Compressing objects:  40% (20/49)        
2022-05-04T11:30:49.0545078Z remote: Compressing objects:  42% (21/49)        
2022-05-04T11:30:49.0545315Z remote: Compressing objects:  44% (22/49)        
2022-05-04T11:30:49.0545568Z remote: Compressing objects:  46% (23/49)        
2022-05-04T11:30:49.0545809Z remote: Compressing objects:  48% (24/49)        
2022-05-04T11:30:49.0546058Z remote: Compressing objects:  51% (25/49)        
2022-05-04T11:30:49.0546297Z remote: Compressing objects:  53% (26/49)        
2022-05-04T11:30:49.0546547Z remote: Compressing objects:  55% (27/49)        
2022-05-04T11:30:49.0546799Z remote: Compressing objects:  57% (28/49)        
2022-05-04T11:30:49.0547036Z remote: Compressing objects:  59% (29/49)        
2022-05-04T11:30:49.0547282Z remote: Compressing objects:  61% (30/49)        
2022-05-04T11:30:49.0547526Z remote: Compressing objects:  63% (31/49)        
2022-05-04T11:30:49.0547968Z remote: Compressing objects:  65% (32/49)        
2022-05-04T11:30:49.0548212Z remote: Compressing objects:  67% (33/49)        
2022-05-04T11:30:49.0548544Z remote: Compressing objects:  69% (34/49)        
2022-05-04T11:30:49.0548905Z remote: Compressing objects:  71% (35/49)        
2022-05-04T11:30:49.0549229Z remote: Compressing objects:  73% (36/49)        
2022-05-04T11:30:49.0549559Z remote: Compressing objects:  75% (37/49)        
2022-05-04T11:30:49.0549901Z remote: Compressing objects:  77% (38/49)        
2022-05-04T11:30:49.0550238Z remote: Compressing objects:  79% (39/49)        
2022-05-04T11:30:49.0550577Z remote: Compressing objects:  81% (40/49)        
2022-05-04T11:30:49.0550846Z remote: Compressing objects:  83% (41/49)        
2022-05-04T11:30:49.0551183Z remote: Compressing objects:  85% (42/49)        
2022-05-04T11:30:49.0551521Z remote: Compressing objects:  87% (43/49)        
2022-05-04T11:30:49.0551779Z remote: Compressing objects:  89% (44/49)        
2022-05-04T11:30:49.0552119Z remote: Compressing objects:  91% (45/49)        
2022-05-04T11:30:49.0552444Z remote: Compressing objects:  93% (46/49)        
2022-05-04T11:30:49.0552765Z remote: Compressing objects:  95% (47/49)        
2022-05-04T11:30:49.0553077Z remote: Compressing objects:  97% (48/49)        
2022-05-04T11:30:49.0553397Z remote: Compressing objects: 100% (49/49)        
2022-05-04T11:30:49.0553690Z remote: Compressing objects: 100% (49/49), done.        
2022-05-04T11:30:49.1897734Z remote: Total 66 (delta 6), reused 37 (delta 1), pack-reused 0        
2022-05-04T11:30:49.1971967Z From https://github.com/aroralanuk/aroralnauk.github.io
2022-05-04T11:30:49.1972512Z  * [new ref]         18e11a0a13a07c87f60f3e069b35be396087b353 -> origin/main
2022-05-04T11:30:49.1997022Z ##[endgroup]
2022-05-04T11:30:49.1997621Z ##[group]Determining the checkout info
2022-05-04T11:30:49.1999053Z ##[endgroup]
2022-05-04T11:30:49.1999508Z ##[group]Checking out the ref
2022-05-04T11:30:49.2003748Z [command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
2022-05-04T11:30:49.2106976Z Switched to a new branch 'main'
2022-05-04T11:30:49.2111636Z branch 'main' set up to track 'origin/main'.
2022-05-04T11:30:49.2115434Z ##[endgroup]
2022-05-04T11:30:49.2165908Z [command]/usr/bin/git log -1 --format='%H'
2022-05-04T11:30:49.2194359Z '18e11a0a13a07c87f60f3e069b35be396087b353'
2022-05-04T11:30:49.2495607Z ##[group]Run actions/setup-node@v3
2022-05-04T11:30:49.2495833Z with:
2022-05-04T11:30:49.2496019Z   node-version: 16.x
2022-05-04T11:30:49.2496230Z   always-auth: false
2022-05-04T11:30:49.2496429Z   check-latest: false
2022-05-04T11:30:49.2496775Z   token: ***
2022-05-04T11:30:49.2496963Z ##[endgroup]
2022-05-04T11:30:49.4332344Z Found in cache @ /opt/hostedtoolcache/node/16.14.2/x64
2022-05-04T11:30:49.5366067Z ##[group]Run actions/cache@v2
2022-05-04T11:30:49.5366307Z with:
2022-05-04T11:30:49.5366498Z   path: **/node_modules

2022-05-04T11:30:49.5366807Z   key: Linux-e6fa3749796c79782a9c8dd873a04c927e1f0a03580fa585b97b5c0b796371b4
2022-05-04T11:30:49.5367091Z ##[endgroup]
2022-05-04T11:30:51.5604930Z Cache not found for input keys: Linux-e6fa3749796c79782a9c8dd873a04c927e1f0a03580fa585b97b5c0b796371b4
2022-05-04T11:30:51.5724390Z ##[group]Run npm ci
2022-05-04T11:30:51.5724849Z �[36;1mnpm ci�[0m
2022-05-04T11:30:51.5776843Z shell: /usr/bin/bash -e {0}
2022-05-04T11:30:51.5777080Z ##[endgroup]
2022-05-04T11:30:58.0134415Z 
2022-05-04T11:30:58.0135284Z added 295 packages, and audited 296 packages in 6s
2022-05-04T11:30:58.0135756Z 
2022-05-04T11:30:58.0136655Z 69 packages are looking for funding
2022-05-04T11:30:58.0137988Z   run `npm fund` for details
2022-05-04T11:30:58.0149316Z 
2022-05-04T11:30:58.0149614Z found 0 vulnerabilities
2022-05-04T11:30:58.0312322Z ##[group]Run npm run build
2022-05-04T11:30:58.0312577Z �[36;1mnpm run build�[0m
2022-05-04T11:30:58.0362220Z shell: /usr/bin/bash -e {0}
2022-05-04T11:30:58.0362452Z env:
2022-05-04T11:30:58.0362616Z   CI: 
2022-05-04T11:30:58.0362796Z ##[endgroup]
2022-05-04T11:30:58.3111615Z 
2022-05-04T11:30:58.3112194Z > @arifszn/gitprofile@2.0.4 build
2022-05-04T11:30:58.3112585Z > vite build
2022-05-04T11:30:58.3112783Z 
2022-05-04T11:30:58.9047270Z �[36mvite v2.9.5 �[32mbuilding for production...�[36m�[39m
2022-05-04T11:30:58.9612480Z transforming...
2022-05-04T11:31:05.1345261Z �[32m✓�[39m 197 modules transformed.
2022-05-04T11:31:05.5023731Z rendering chunks...
2022-05-04T11:31:05.5113282Z �[90m�[37m�[2mdist/�[22m�[90m�[39m�[32mindex.html                 �[39m �[2m0.55 KiB�[22m
2022-05-04T11:31:05.5122211Z �[90m�[37m�[2mdist/�[22m�[90m�[39m�[35massets/index.2e699003.css  �[39m �[2m51.10 KiB / gzip: 10.44 KiB�[22m
2022-05-04T11:31:05.5306890Z �[90m�[37m�[2mdist/�[22m�[90m�[39m�[36massets/index.fc86b519.js   �[39m �[2m457.80 KiB / gzip: 147.24 KiB�[22m
2022-05-04T11:31:05.5758329Z ##[group]Run JamesIves/github-pages-deploy-action@v4
2022-05-04T11:31:05.5758588Z with:
2022-05-04T11:31:05.5758777Z   branch: gh-pages
2022-05-04T11:31:05.5758983Z   folder: dist
2022-05-04T11:31:05.5759261Z   token: ***
2022-05-04T11:31:05.5759449Z   clean: true
2022-05-04T11:31:05.5759625Z   force: true
2022-05-04T11:31:05.5759795Z ##[endgroup]
2022-05-04T11:31:05.6825878Z 
2022-05-04T11:31:05.6826660Z     ╭━━━╮╭╮╭╮╱╭╮╱╱╭╮╱╱╭━━━╮
2022-05-04T11:31:05.6827109Z     ┃╭━╮┣╯╰┫┃╱┃┃╱╱┃┃╱╱┃╭━╮┃
2022-05-04T11:31:05.6827462Z     ┃┃╱╰╋╮╭┫╰━╯┣╮╭┫╰━╮┃╰━╯┣━━┳━━┳━━┳━━╮
2022-05-04T11:31:05.6827825Z     ┃┃╭━╋┫┃┃╭━╮┃┃┃┃╭╮┃┃╭━━┫╭╮┃╭╮┃┃━┫━━┫
2022-05-04T11:31:05.6828154Z     ┃╰┻━┃┃╰┫┃╱┃┃╰╯┃╰╯┃┃┃╱╱┃╭╮┃╰╯┃┃━╋━━┃
2022-05-04T11:31:05.6828474Z     ╰━━━┻┻━┻╯╱╰┻━━┻━━╯╰╯╱╱╰╯╰┻━╮┣━━┻━━╯
2022-05-04T11:31:05.6828780Z     ╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╭━╯┃
2022-05-04T11:31:05.6829091Z     ╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╰━━╯
2022-05-04T11:31:05.6829424Z     ╭━━━╮╱╱╱╱╱╭╮╱╱╱╱╱╱╱╱╭━━━╮╱╱╭╮
2022-05-04T11:31:05.6829776Z     ╰╮╭╮┃╱╱╱╱╱┃┃╱╱╱╱╱╱╱╱┃╭━╮┃╱╭╯╰╮
2022-05-04T11:31:05.6830104Z     ╱┃┃┃┣━━┳━━┫┃╭━━┳╮╱╭╮┃┃╱┃┣━┻╮╭╋┳━━┳━╮
2022-05-04T11:31:05.6830453Z     ╱┃┃┃┃┃━┫╭╮┃┃┃╭╮┃┃╱┃┃┃╰━╯┃╭━┫┃┣┫╭╮┃╭╮╮
2022-05-04T11:31:05.6830791Z     ╭╯╰╯┃┃━┫╰╯┃╰┫╰╯┃╰━╯┃┃╭━╮┃╰━┫╰┫┃╰╯┃┃┃┃
2022-05-04T11:31:05.6831114Z     ╰━━━┻━━┫╭━┻━┻━━┻━╮╭╯╰╯╱╰┻━━┻━┻┻━━┻╯╰╯
2022-05-04T11:31:05.6831384Z     ╱╱╱╱╱╱╱┃┃╱╱╱╱╱╱╭━╯┃
2022-05-04T11:31:05.6831646Z     ╱╱╱╱╱╱╱╰╯╱╱╱╱╱╱╰━━╯
2022-05-04T11:31:05.6831831Z     
2022-05-04T11:31:05.6836380Z 
2022-05-04T11:31:05.6837115Z     💖 Support: https://github.com/sponsors/JamesIves
2022-05-04T11:31:05.6837759Z     📣 Maintained by James Ives: https://jamesiv.es
2022-05-04T11:31:05.6838125Z 
2022-05-04T11:31:05.6839289Z     🚀 Getting Started Guide: https://github.com/JamesIves/github-pages-deploy-action
2022-05-04T11:31:05.6840035Z     ❓ Discussions / Q&A: https://github.com/JamesIves/github-pages-deploy-action/discussions
2022-05-04T11:31:05.6840977Z     🔧 Report a Bug: https://github.com/JamesIves/github-pages-deploy-action/issues
2022-05-04T11:31:05.6841703Z Checking configuration and starting deployment… 🚦
2022-05-04T11:31:05.6842202Z Deploying using Deploy Token… 🔑
2022-05-04T11:31:05.6842615Z Configuring git…
2022-05-04T11:31:05.6890153Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/aroralnauk.github.io/aroralnauk.github.io
2022-05-04T11:31:05.6956960Z [command]/usr/bin/git config user.name aroralanuk
2022-05-04T11:31:05.6998597Z [command]/usr/bin/git config user.email 55632507+aroralanuk@users.noreply.github.com
2022-05-04T11:31:05.7039001Z [command]/usr/bin/git config core.ignorecase false
2022-05-04T11:31:05.7079071Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2022-05-04T11:31:05.7118901Z [command]/usr/bin/git remote rm origin
2022-05-04T11:31:05.7174527Z [command]/usr/bin/git remote add origin ***github.com/aroralanuk/aroralnauk.github.io.git
2022-05-04T11:31:05.7207803Z Git configured… 🔧
2022-05-04T11:31:05.7230249Z Starting to commit changes…
2022-05-04T11:31:05.7242057Z [command]/usr/bin/git ls-remote --heads ***github.com/aroralanuk/aroralnauk.github.io.git refs/heads/gh-pages
2022-05-04T11:31:06.0677786Z 78ac89dab9e38d1430caf339b068fa00eebb0642	refs/heads/gh-pages
2022-05-04T11:31:06.0684496Z Creating worktree…
2022-05-04T11:31:06.0697551Z [command]/usr/bin/git fetch --no-recurse-submodules --depth=1 origin gh-pages
2022-05-04T11:31:06.8488545Z From https://github.com/aroralanuk/aroralnauk.github.io
2022-05-04T11:31:06.8489467Z  * branch            gh-pages   -> FETCH_HEAD
2022-05-04T11:31:06.8490361Z  * [new branch]      gh-pages   -> origin/gh-pages
2022-05-04T11:31:06.8520318Z [command]/usr/bin/git worktree add --no-checkout --detach github-pages-deploy-action-temp-deployment-folder
2022-05-04T11:31:06.8562702Z Preparing worktree (detached HEAD 18e11a0)
2022-05-04T11:31:06.8604045Z [command]/usr/bin/git checkout -B gh-pages origin/gh-pages
2022-05-04T11:31:06.8687188Z Previous HEAD position was 18e11a0 edit base link
2022-05-04T11:31:06.8696754Z Switched to a new branch 'gh-pages'
2022-05-04T11:31:06.8698875Z branch 'gh-pages' set up to track 'origin/gh-pages'.
2022-05-04T11:31:06.8715813Z [command]/usr/bin/chmod -R +rw /home/runner/work/aroralnauk.github.io/aroralnauk.github.io/dist
2022-05-04T11:31:06.8752396Z [command]/usr/bin/rsync -q -av --checksum --progress /home/runner/work/aroralnauk.github.io/aroralnauk.github.io/dist/. github-pages-deploy-action-temp-deployment-folder --delete --exclude CNAME --exclude .nojekyll --exclude .ssh --exclude .git --exclude .github
2022-05-04T11:31:06.9256260Z Checking if there are files to commit…
2022-05-04T11:31:06.9355660Z [command]/usr/bin/git add --all .
2022-05-04T11:31:06.9400529Z [command]/usr/bin/git checkout -b github-pages-deploy-action/kdbx6emsv
2022-05-04T11:31:06.9433432Z Switched to a new branch 'github-pages-deploy-action/kdbx6emsv'
2022-05-04T11:31:06.9450578Z [command]/usr/bin/git commit -m Deploying to gh-pages from @ aroralanuk/aroralnauk.github.io@18e11a0a13a07c87f60f3e069b35be396087b353 🚀 --quiet --no-verify
2022-05-04T11:31:06.9508173Z Force-pushing changes...
2022-05-04T11:31:06.9526962Z [command]/usr/bin/git push --force ***github.com/aroralanuk/aroralnauk.github.io.git github-pages-deploy-action/kdbx6emsv:gh-pages
2022-05-04T11:31:07.3505802Z remote: Permission to aroralanuk/aroralnauk.github.io.git denied to github-actions[bot].
2022-05-04T11:31:07.3506600Z fatal: unable to access 'https://github.com/aroralanuk/aroralnauk.github.io.git/': The requested URL returned error: 403
2022-05-04T11:31:07.3523824Z Running post deployment cleanup jobs… 🗑️
2022-05-04T11:31:07.3535312Z [command]/usr/bin/git checkout -B github-pages-deploy-action/kdbx6emsv
2022-05-04T11:31:07.3574761Z Reset branch 'github-pages-deploy-action/kdbx6emsv'
2022-05-04T11:31:07.3592513Z [command]/usr/bin/chmod -R +rw github-pages-deploy-action-temp-deployment-folder
2022-05-04T11:31:07.3628251Z [command]/usr/bin/git worktree remove github-pages-deploy-action-temp-deployment-folder --force
2022-05-04T11:31:07.3697553Z ##[error]The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 ❌
2022-05-04T11:31:07.3711754Z ##[notice]Deployment failed! ❌
2022-05-04T11:31:07.3712286Z 
2022-05-04T11:31:07.3778711Z Post job cleanup.
2022-05-04T11:31:07.5005187Z [command]/usr/bin/git version
2022-05-04T11:31:07.5051706Z git version 2.36.0
2022-05-04T11:31:07.5092139Z Copying '/home/runner/.gitconfig' to '/home/runner/work/_temp/f10edea9-941f-4f9b-9d08-91336e98d6c0/.gitconfig'
2022-05-04T11:31:07.5103673Z Temporarily overriding HOME='/home/runner/work/_temp/f10edea9-941f-4f9b-9d08-91336e98d6c0' before making global git config changes
2022-05-04T11:31:07.5104857Z Adding repository directory to the temporary git global config as a safe directory
2022-05-04T11:31:07.5111053Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/aroralnauk.github.io/aroralnauk.github.io
2022-05-04T11:31:07.5148270Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2022-05-04T11:31:07.5181728Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2022-05-04T11:31:07.5396554Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2022-05-04T11:31:07.5429105Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2022-05-04T11:31:07.5861781Z Cleaning up orphan processes

@arifszn
Copy link
Author

arifszn commented May 4, 2022

Duplicate of #308

@arifszn
Copy link
Author

arifszn commented May 4, 2022

After some debugging, found this:

New repositories do not have proper workflow permissions by default. Manually changing the permission by following these steps fixes the issue.

  • Go to repo settings
  • Select Actions -> General
  • In Workflow permissions, select Read and write permissions

image

@JamesIves
Copy link
Owner

I've added this to the readme! I will do my best to make this more prominent when I have time over the weekend.

@JamesIves JamesIves pinned this issue May 10, 2022
@JamesIves JamesIves added Potential GitHub Issue 🐙 😺 Issues that are potentially caused by GitHub. and removed triage ⚠️ labels May 10, 2022
@JamesIves
Copy link
Owner

Closing this, but leaving this pinned to the issues tab. Thanks for figuring this out!

@JamesIves JamesIves changed the title Failed with exit code 128 Failed with exit code 128, Permission Denied May 10, 2022
@make-github-pseudonymous-again
Copy link

I have a repo at https://github.com/xn-js-b9bae/xn--mxaac which I have recently moved to an org and renamed. I am owner of the org yet I cannot give "Read and write permissions" for all workflows repo-wise as this option is greyed out. It seems there is a way to do that workflow wise in each workflow file but I am still digging through the documentation to see exactly what permissions this action here needs as the per-workflow permissions are very granular.

PS: Turns out you need to first give "Read and write permissions" for all workflows org-wise first.

@chadoh
Copy link

chadoh commented May 11, 2022

To clarify the point made by @make-github-pseudonymous-again, for new orgs, you need to:

  • go to https://github.com/organizations/ORG-NAME/settings/actions → Workflows heading → select "Read and write permissions"

    image
  • now when you go back to https://github.com/ORG-NAME/REPO-NAME/settings/actions, you may find that it already has the same setting as the org, "Read and write permissions." If not, go ahead and set it at the repo-level as well.

@maxandersen
Copy link

I found you don't have to use the UI but can specify it in the github actions:

name: Build and Deploy
on:
  push:
    branches:
      - main
permissions: 
  contents: write
...
...

@arifszn
Copy link
Author

arifszn commented May 13, 2022

I found you don't have to use the UI but can specify it in the github actions:

name: Build and Deploy
on:
  push:
    branches:
      - main
permissions: 
  contents: write
...
...

I can confirm this works by keeping the Workflow permissions to Read-only.

This is the result without modifying the action file: https://github.com/jannatliza/gitprofile/actions/runs/2317939050
This is the result of modifying the action file: https://github.com/jannatliza/gitprofile/actions/runs/2317951942

@arifszn
Copy link
Author

arifszn commented May 13, 2022

Ping @JamesIves.

@wctiger
Copy link

wctiger commented May 16, 2022

I still had the issue after granted read/write permission in Actions -> General -> Workflow Permission. Then tried the @maxandersen solution and that worked for me.

@JamesIves
Copy link
Owner

Thank you for the research on this. I've updated the readme with this approach!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential GitHub Issue 🐙 😺 Issues that are potentially caused by GitHub.
Projects
None yet
Development

No branches or pull requests

6 participants