Comments (8)
Hey, i found the solution.
In the repository settings, go to Actions -> General
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
from action-gh-release.
Same error :(
from action-gh-release.
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.
from action-gh-release.
Here is one solution. Or look into one of the other open 403 Error issues in this repo.
from action-gh-release.
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.
Both parts are required:
-
Workflow permissions - suggested by @estebanfern
#400 (comment) -
Configuring the permissions at the workflow file
permissions:
contents: write
, suggested by @eggsy84
from action-gh-release.
@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)
- Uploading artifacts to existing tag/release HOT 3
- Replace Node.js 16 with Node.js 20 HOT 2
- tag_name missing from with, and so I get "⚠️ GitHub Releases requires a tag" error HOT 2
- Specify or auto-detect asset content type, especially for images
- nodejs 16 deprecation HOT 12
- Fail to create release using non-latest commit isa with "GitHub release failed with status: 403" HOT 5
- Node.js 16 actions are deprecated HOT 2
- Unable to overwrite an existing draft release
- Run successful, Release and tag created, but Missing Files HOT 7
- current version does not match any files issue, previous version is okay HOT 4
- make_latest missing in action.yml HOT 2
- v2.0.4 released but not set as latest version HOT 1
- ⚠️ GitHub release failed with status: 422 undefined HOT 6
- files Add array type support HOT 1
- GitHub release failed related to file DexMetadata (.dm) in Android with status: Not Found
- enhancement: display more helpful error message other than undefined HOT 8
- Ability to default the body to Github's "generate release notes"? HOT 2
- File pattern not matching file name when using "
- Existing releases are no longer updated HOT 2
- File Pattern Negation HOT 1
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 action-gh-release.