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 #26

Open
mrousavy opened this issue Jun 1, 2021 · 1 comment
Open

Error: Resource not accessible by integration #26

mrousavy opened this issue Jun 1, 2021 · 1 comment
Labels
Issue Something isn't working

Comments

@mrousavy
Copy link

mrousavy commented Jun 1, 2021

Hi!

I'm getting the error Error: Resource not accessible by integration when the action runs on a PR created by a GitHub integration (dependabot). This makes the CI fail, I think it'd be better to just skip the workflow if it really can't run for integrations, if it can then this is a bug report :)

> Run Simek/yarn-lock-changes@main
  with:
    token: ***
    collapsibleThreshold: 25
    failOnDowngrade: false
    path: yarn.lock
    updateComment: true
Error: Resource not accessible by integration

This is the PR: mrousavy/react-native-vision-camera#158

@Simek
Copy link
Owner

Simek commented Jul 13, 2021

Hi @mrousavy,

GitHub have reduced the permissions set to the GITHUB_TOKEN passed to the Dependabot pull request due to security reasons:

As listed in the article, you can change the on value to pull_request_target in the action workflow which should help with the permission issue, but it's is considered as a potential sercurit risk, as described in the security blogpost:

I'm not sure if I can handle this issue more gracefully on the action side, but I will try to investigate the possible solutions or, at least, how to improve docs and DX in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants