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 accessible by integration #167

Closed
twsl opened this issue Aug 30, 2021 · 2 comments
Closed

Resource not accessible by integration #167

twsl opened this issue Aug 30, 2021 · 2 comments

Comments

@twsl
Copy link

twsl commented Aug 30, 2021

Config:

  - name: Publish Unit Test Results
    uses: EnricoMi/publish-unit-test-result-action@v1
    with:
      files: artifacts/**/*.xml

Following error suddenly occured after a pull request was created by dependabot. Worked correctly once I triggered the workflow run manually:

 Traceback (most recent call last):
  File "/action/publish_unit_test_results.py", line 283, in <module>
    main(settings, gha)
  File "/action/publish_unit_test_results.py", line 96, in main
    Publisher(settings, gh, gha).publish(stats, results.case_results, conclusion)
  File "/action/publish/publisher.py", line 63, in publish
    check_run = self.publish_check(stats, cases, conclusion)
  File "/action/publish/publisher.py", line 202, in publish_check
    output=output)
  File "/usr/local/lib/python3.6/site-packages/github/Repository.py", line 3645, in create_check_run
    input=post_parameters,
  File "/usr/local/lib/python3.6/site-packages/github/Requester.py", line 355, in requestJsonAndCheck
    verb, url, parameters, headers, input, self.__customConnection(url)
  File "/usr/local/lib/python3.6/site-packages/github/Requester.py", line 378, in __check
    raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 403 {"message": "Resource not accessible by integration", "documentation_url": "https://docs.github.com/rest/reference/checks#create-a-check-run"}
@twsl
Copy link
Author

twsl commented Sep 1, 2021

@EnricoMi
Copy link
Owner

Just for reference: another reason for this error can be missing permissions:
https://github.com/EnricoMi/publish-unit-test-result-action#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

2 participants