-
Notifications
You must be signed in to change notification settings - Fork 212
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 #168
Comments
I'm also having this issue with forked PR's |
@tidusjar apparently this was happening because of some missing permissions. I added this block to my workflow to fix it. you can check the documentation. name: Build & Analyze Pull Requests
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
branches:
- develop
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
checks: write
contents: write
pull-requests: write
jobs:
lint:
#... |
i had to add these to the workflow
|
It's still not working for me though: jobs:
verify_codebase:
name: Verify Codebase
runs-on: ubuntu-latest
# Assign permissions for unit tests to be reported.
# See https://github.com/dorny/test-reporter/issues/168
permissions:
statuses: write
checks: write
contents: write
pull-requests: write |
### What's done: * This tries to work around dorny/test-reporter#168.
### What's done: * This tries to work around dorny/test-reporter#168.
### What's done: * This tries to work around dorny/test-reporter#168.
I am not using this Action, I noticed this issue because it is affecting a PR I created. I am not sure if granting more permissions to the build is a good solution. If I understand the documentation of GitHub Actions correctly, just granting this permission in the workflow file might not work for pull requests.
I am wondering if it might be better if this action would use the annotations API of core.error(ellipsis(message, 65535), {
title: ellipsis(`${e.suiteName} ► ${e.testName}`, 255),
file: e.path,
startLine: e.line,
endLine: e.line,
}) I haven't used this API, I only found it in the documentation. This API doesn't seem to allow to set the test-reporter/src/report/get-annotations.ts Lines 71 to 88 in e9fa2f5
|
@tomkerkhove if you have Recommended setup for public repositories configuration, then in the test-report.yml set: permissions:
statuses: write
checks: write
contents: write
pull-requests: write
actions: write # <-- this was missing in your permissions |
Hello
We are having problems if this action is triggered from a dependabot pull request. I am attaching the error I am having below. Thanks!
The text was updated successfully, but these errors were encountered: