Skip to content
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

Error: Resource not accessible by integratio #80

Open
kkmann opened this issue Feb 13, 2023 · 4 comments
Open

Error: Resource not accessible by integratio #80

kkmann opened this issue Feb 13, 2023 · 4 comments

Comments

@kkmann
Copy link

kkmann commented Feb 13, 2023

Hey,

cool action - still amazed by how complex it is to get coverage reporting into PRs withour external services...

Since a few days my pipelines fail with

Error: Resource not accessible by integratio

see example: https://github.com/Boehringer-Ingelheim/oncomsm/actions/runs/4151027484/jobs/7201882375

Any ideas?

@itsalysialynn
Copy link

@kkmann I managed to fix this by giving the job write-all permissions:

jobs:
  quality-check:
    name: Quality Check
    permissions: write-all

@asteel-gsa
Copy link

@kkmann I managed to fix this by giving the job write-all permissions:

jobs:
  quality-check:
    name: Quality Check
    permissions: write-all

This is also what worked for me, but, I would really like to see scoped permissions possible.

jobs:
  job-name:
    permissions:
      pull-requests: write

@itzJustKranker
Copy link

you certainly don't need permissions: write-all. Although that would be the easiest fix. I believe I had to add checks and issues scopes for it to succeed. All in all my permissions look like this.

permissions:
  actions: read
  contents: read
  packages: read
  pull-requests: write
  checks: write
  issues: write

but it would be great if the README, called out specifically what permissions the job required so we didn't have to guess

@caarmen
Copy link

caarmen commented Jun 2, 2024

I needed to add pull-requests:write, but issues: write was not required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants