Giter Site home page Giter Site logo

Comments (5)

korthout avatar korthout commented on May 20, 2024 1

@macmiranda The default GITHUB_TOKEN used to push the commit has limited permissions. It does not allow to make changes to workflow files.

As a workaround, you can use a Personal Access Token with the workflow scope instead of the default GITHUB_TOKEN as the token input for the checkout action step.

Here's an example.

from backport-action.

macmiranda avatar macmiranda commented on May 20, 2024 1

Yes, the workaround worked fine. I don't like using PATs though, especially the classic ones, they are overly powerful. It also doesn't make sense to have a PAT for a repo under an organization because the person could leave the company at any time and then the PAT is worthless (we use an automation user for that, but it takes a paid seat of the organization 😞)

Anyway, cool GitHub action. Thanks for sharing it.

Looking forward to a solution for #39

It would also be cool if there was an option to merge the backported commit directly, without the PR.

from backport-action.

macmiranda avatar macmiranda commented on May 20, 2024

Hey @korthout hitting the exact same issue. Would you know what's the actual reason for this?

from backport-action.

macmiranda avatar macmiranda commented on May 20, 2024

Thanks. It's a shame we can't just add the capability to the runner token

from backport-action.

korthout avatar korthout commented on May 20, 2024

Absolutely agree. I guess GitHub sees a vulnerability, but it doesn't really apply to backport-action as it only deals with merged pull requests.

Let me know whether the workaround works for you, and I'd love to hear any other feedback on the action by the way. 🙇

from backport-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.