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 integration #1220

Closed
isaak654 opened this issue Aug 16, 2023 · 2 comments
Closed

Error: Resource not accessible by integration #1220

isaak654 opened this issue Aug 16, 2023 · 2 comments

Comments

@isaak654
Copy link

Error: Resource not accessible by integration

Action error: https://github.com/sandboxie-plus/sandboxie-docs/actions/runs/5878357898/job/15940266590?pr=122#step:5:12
List of permissions:

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

Do you know what's missing? For reasons I don't understand, the error message is only displayed within pull requests.

If you have the answer, please update your README.md accordingly.

Thanks.

@peter-evans
Copy link
Owner

Hi @isaak654

I think this is your issue:

Note: In public repositories this action does not work in pull_request workflows when triggered by forks.
Any attempt will be met with the error, Resource not accessible by integration.
This is due to token restrictions put in place by GitHub Actions. Private repositories can be configured to enable workflows from forks to run without restriction. See here for further explanation. Alternatively, use the pull_request_target event to comment on pull requests.

Quoted from https://github.com/peter-evans/create-or-update-comment/blob/main/README.md#action-inputs

This behaviour is not specific to this action, it's a security feature of GitHub actions and applies to all workflows.

@AndreiCherniaev
Copy link
Contributor

The same problem like in this topic or in this.
My repo is not a fork!
https://github.com/AndreiCherniaev/QCoreApplication_quit_example/actions/runs/10760556102/job/29838663226
The same "Error: Resource not accessible by integration"
I fixed it using Settings->Actions->Workflow permissions
set
Read and write permissions
Read and write permissions

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