Giter Club home page Giter Club logo

Comments (7)

ccrisan avatar ccrisan commented on May 9, 2024 2

@JamesIves you were right about not having the correct permissions. In fact, I did two separate mistakes:

  1. 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.

  2. 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.

JamesIves avatar JamesIves commented on May 9, 2024

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.

ccrisan avatar ccrisan commented on May 9, 2024

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.

JamesIves avatar JamesIves commented on May 9, 2024

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.

ccrisan avatar ccrisan commented on May 9, 2024

Only these:

image

It didn't seem like anything else would be required for pushing to the repo. Would it?

from github-pages-deploy-action.

JamesIves avatar JamesIves commented on May 9, 2024

My test repo has these permissions - not sure if that will fix it but it's worth giving it a shot.

Screen Shot 2019-10-03 at 9 25 32 AM

from github-pages-deploy-action.

JamesIves avatar JamesIves commented on May 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.