Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

After update, Error 403: Resource not accessible by integration #208

Closed
MarkEnverus opened this issue May 5, 2022 · 12 comments
Closed

After update, Error 403: Resource not accessible by integration #208

MarkEnverus opened this issue May 5, 2022 · 12 comments

Comments

@MarkEnverus
Copy link

MarkEnverus commented May 5, 2022

This issue was closed but it persists
https://github.com/ncipollo/release-action/issues/129
I'm facing the same issue w/ github.com - i can't even use a personal token - if i do that I get the error "Error: Error undefined: Parameter token or opts.auth is required"

@ncipollo
Copy link
Owner

ncipollo commented May 5, 2022

I don't think this is an issue in the action, it sounds like you might have an issue with your repo (was it forked?) or your workflow file is formatted incorrectly.

Checkout this issue which sounds similar: actions/toolkit#465. The issue they had was that it was a forked repo and secrets aren't available in those repos.

@ncipollo ncipollo closed this as completed May 5, 2022
@DNA-PC
Copy link

DNA-PC commented Jan 16, 2023

I'm a bit confused by this.

I'm using a fork, that is a fork repo from another of my repositories.
The only secret I can think of is {{secrets.GITHUB_TOKEN}}, but I thought each repo would have its own, why would it try to use the one from the source repo?

@dadair-aptiv
Copy link

dadair-aptiv commented Jan 20, 2023

Think the solution is this: https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs. I had this same issue thinking it was the docker container. I needed to set the contents: write access.

I haven't tracked down why this repo in the organization needed this set for its workflows. The other repos didn't need it.

name: ...

on:
  ...
permissions:
  contents: write

jobs:
  ...

EDIT: Adding a mention to the original issue since it didn't link correctly #129

@DNA-PC
Copy link

DNA-PC commented Jan 20, 2023

Why would there need to be a "write" permission? What's being written? I thought my workflow failed because it was trying to read the GITHUB_TOKEN from its source repository.

@dadair-aptiv
Copy link

dadair-aptiv commented Jan 20, 2023

From my understanding, it needs the write permission to create a release. So you have to write the release to the repo. Not 100% sure if that is it though. Just what I am inferring on the testing i did. The documentation isn't there / clear.

@Vadorequest
Copy link

Thanks for bringing some context. I've tested and it works using your solution.

jackson15j added a commit to jackson15j/python_homework_config_file_parser that referenced this issue Feb 2, 2023
Need permission to write to the Releases tab now. See:
ncipollo/release-action#208.

Issue: #2.
@scottw-kr
Copy link

scottw-kr commented Apr 26, 2023

Confirming this works on a fork.

Think the solution is this: https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs. I had this same issue thinking it was the docker container. I needed to set the contents: write access.

I haven't tracked down why this repo in the organization needed this set for its workflows. The other repos didn't need it.

name: ...

on:
  ...

permissions:
  contents: write

jobs:
  ...

@ncipollo
Copy link
Owner

You might want to double check the action settings in your repository. It's possible you don't have write access by default (Settings --> Action --> General --> Workflow permissions)

@dadair-aptiv
Copy link

dadair-aptiv commented Apr 27, 2023

That was set to Read and write permissions for me yet still couldn't do it. That was what I checked based on the other issue.

@ortegamarcel
Copy link

You might want to double check the action settings in your repository. It's possible you don't have write access by default (Settings --> Action --> General --> Workflow permissions)

@ncipollo Thanks, that solved my problem.

@gauntface
Copy link

I've noticed that I run into this issue in a forked repo only when I define a commit value.

Creating a release without a commit and the release and tags are created fine, with the commit and it fails.

@baydim
Copy link

baydim commented May 9, 2024

GREAT INFO BROO

arran4 added a commit to arran4/vlc-xattr-plugin that referenced this issue Jun 15, 2024
thadguidry added a commit to thadguidry/refine-groovy that referenced this issue Sep 22, 2024
- getting release-action error "Error: Error 403: Resource not accessible by integration"
- found this issue ncipollo/release-action#208 that says to add write permission? Trying.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants