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

resource not available for integration #1107

Open
AkashKumar7902 opened this issue Sep 16, 2023 · 4 comments
Open

resource not available for integration #1107

AkashKumar7902 opened this issue Sep 16, 2023 · 4 comments

Comments

@AkashKumar7902
Copy link

i am getting errors on
https://github.com/officialasishkumar/docs/actions/runs/6205862185/job/16849480400

@polarathene
Copy link

You likely have permissions restricted, or this is used in the pull_request with only read access granted. Your workflow/job that has this action run needs to grant pull_requests: write to allow the action to create / edit comments on PRs.

@AFMiziara
Copy link

It is not that, unfortunatelly @polarathene . I tried and got the same error.

@polarathene
Copy link

@AFMiziara you have no public repo, if you're getting that error there is another permission likely needed, try also including contents: read. I have no issue using the action.

Ultimately if you want to get any assistance, it's better to produce a minimal reproduction workflow and share that here so others can verify on their end, resolve it and share what the solution was.

@AFMiziara
Copy link

I found the error in my case. It was a silly thing. I defined permissions at a global level in the workflow and them in the job there was another block configuring permission which were overriding it. Now it is working :)

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

3 participants