-
-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HELP: Action failing to publish release asset with: Error: Resource not accessible by integration
#572
Comments
i got the same exact issue |
This is due to this issue. softprops/action-gh-release#572
Due to changes in the permissions of the default GITHUB_TOKEN secret, updated the README example to recommend using a custom token (CUSTOM_GITHUB_TOKEN) with appropriate "Contents" repository permissions. See Issue softprops#572
That is most likely the reason, changed my token with a new custom one and it worked. |
i actually forgot to post my second comment, but i investigated the issue and it's indeed a change of default permissions name: build
on: [ push, pull_request, workflow_dispatch ]
+ permissions:
+ contents: write
jobs:
build:
[...] |
I have the same issue.
Here's the workflow file: name: Release LaTeX document and source
on:
pull_request:
types:
- closed
permissions:
contents: write
jobs:
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
working_directory: src
root_file: Epp.tex
latexmk_shell_escape: true
- name: Release
uses: softprops/action-gh-release@v2.1.0
with:
tag_name: "v1.0.${{ github.run_number }}"
make_latest: true
generate_release_notes: true
preserve_order: true
files: src/Epp.pdf
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
It's funny because
I guess I need a newer version of |
I am trying to use this action to publish a release asset but it fails with this error
I have used an exact copy of the workflow file before and it has been working but today i tried and it failed to run.
I have no idea why the error is occurring
To rebuild the error:
The text was updated successfully, but these errors were encountered: