Giter Site home page Giter Site logo

GitHub error 403 undefined about action-gh-release HOT 8 OPEN

CryZe avatar CryZe commented on July 18, 2024 8
GitHub error 403 undefined

from action-gh-release.

Comments (8)

estebanfern avatar estebanfern commented on July 18, 2024 6

Hey, i found the solution.
In the repository settings, go to Actions -> General
image
Allow Read and Write Permissions for Github Workflows and save changes.
If your repository is from an organization you will have to do an extra step, go to Organization Settings -> Actions -> General
image

from action-gh-release.

estebanfern avatar estebanfern commented on July 18, 2024 3

Same error :(

from action-gh-release.

ForNeVeR avatar ForNeVeR commented on July 18, 2024 1

Can confirm that adding this to YAML is enough:

    permissions:
      contents: write

It is not necessary to manually edit the permissions in the GitHub UI.

from action-gh-release.

StefH avatar StefH commented on July 18, 2024

Same here:
image

from action-gh-release.

christianll9 avatar christianll9 commented on July 18, 2024

Here is one solution. Or look into one of the other open 403 Error issues in this repo.

from action-gh-release.

eggsy84 avatar eggsy84 commented on July 18, 2024

You should also be able to specify that in the job with permissions such as

create-release:
    name: Create draft release
    runs-on: ubuntu-latest
    permissions: 
      contents: write
    steps:
      - name: Create Release
        uses: softprops/action-gh-release@v1

# rest of code here

from action-gh-release.

koss110 avatar koss110 commented on July 18, 2024

Both parts are required:

  1. Workflow permissions - suggested by @estebanfern
    #400 (comment)

  2. Configuring the permissions at the workflow file
    permissions:
    contents: write
    , suggested by @eggsy84

from action-gh-release.

drojf avatar drojf commented on July 18, 2024

@koss110 - I don't think you need both - it's more like you need either.

You can enable write permissions for all workflows in a repo or organization via the Settings->Actions->General GUI option.

You can enable write permissions for one workflow via the contents: write permission in the .yaml file.

In the past the default option was read/write, but it changed about a year ago. See this for more details: https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/

from action-gh-release.

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.