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

Benchmark PR job failing due to permissions #339

Open
kivikakk opened this issue Aug 29, 2023 · 2 comments
Open

Benchmark PR job failing due to permissions #339

kivikakk opened this issue Aug 29, 2023 · 2 comments

Comments

@kivikakk
Copy link
Owner

See e.g. https://github.com/kivikakk/comrak/actions/runs/5958432069/job/16162659993?pr=337.

Run mshick/add-pr-comment@v2
  with:
    message-path: bench-output.md
    message-id: add-pr-comment
    refresh-message-position: false
    repo-owner: kivikakk
    repo-name: comrak
    repo-token: ***
    allow-repeats: false
    status: success
  env:
    CARGO_INCREMENTAL: 0
    CARGO_TERM_COLOR: always
Error: Resource not accessible by integration

This "Resource not accessible by integration" message has been coming up on a few projects lately where it didn't before; looks like Actions has changed their permissions model a bit.

@digitalmoksha
Copy link
Sponsor Collaborator

In particular it looks like a PR from a fork doesn't have the correct permissions.

mshick/add-pr-comment#67 and https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token

@kivikakk
Copy link
Owner Author

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

2 participants