Comments (7)
@JamesIves you were right about not having the correct permissions. In fact, I did two separate mistakes:
-
I (probably) pasted the wrong access token value into the secret variable, most likely including extra spaces/tabs or being incomplete. Once I've got it right, the user (owning the token) has been correctly identified.
-
The user (a CI/CD dedicated user, owning the aforementioned token) was part of the team but had no write access. Once I explicitly granted her write access to the repo, the first four repo permissions were enough for the action to succeed.
While this issue is definitely invalid, I believe that insufficient user permissions should somehow be indicated by the action's script. Maybe an explicit, separate test command to push something to the repo could help identifying the lack of privileges.
from github-pages-deploy-action.
Is this a private or public repo, and is the dev
branch published? It sounds to me like it can't find the branch for whatever reason.
from github-pages-deploy-action.
It's a public repo and yes, the dev
branch is there. This is the repo and this is the workflow file.
from github-pages-deploy-action.
Which permissions did you get the access token? I'm wondering if the permissions are not sufficient which is why it's throwing the error as it attempts to commit: https://github.com/JamesIves/github-pages-deploy-action/blob/master/entrypoint.sh#L86-L90
from github-pages-deploy-action.
Only these:
It didn't seem like anything else would be required for pushing to the repo. Would it?
from github-pages-deploy-action.
My test repo has these permissions - not sure if that will fix it but it's worth giving it a shot.
from github-pages-deploy-action.
I like the idea of that! I'll see what I can come up with.
Thanks for the report!
from github-pages-deploy-action.
Related Issues (20)
- Commit fails with "process '/usr/bin/git' failed with exit code 128" HOT 3
- Error: You must provide the action with a folder to deploy.
- This project is now deprecated
- GitHub Actions `set-output` command is deprecated and will be disabled soon HOT 2
- Reporting a vulnerability HOT 1
- `token` not being used sometimes HOT 2
- fatal: A branch named 'main' already exists. HOT 7
- Pushed file asyncapi.html gets renamed to index.html HOT 3
- Can't push folder in project HOT 2
- remote: Permission denied to github-actions[bot] HOT 1
- I have this problem, everyone can help me ? This is for a react project HOT 1
- Git config not found for centos:7 HOT 2
- Action succeeds even when push fails HOT 1
- GitHub Pages re-building with Jekyll despite .nojekyll present HOT 1
- A file is missing or not transferred to github pages HOT 5
- The directory you're trying to deploy named /home/runner/work/RivioxTweaks/RivioxTweaks/dist doesn't exist. HOT 1
- There is nothing to commit. Exiting early⦠HOT 1
- The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 1 β HOT 3
- fatal: Authentication failed HOT 1
- Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 β HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-pages-deploy-action.