kishikawakatsumi/xcresulttool

Resource not accessible by integration

idanbuberman opened this issue · 6 comments

We have unit + UI tests running on wrapper using my SPM package.
Tests running solid and file is accessible when echo-ing it etc.
But for some reason when running this action on this specific repo - the results are inaccessible. (Both when tests passed or failed)

We are using this action on different repos, on some we are running on default directory and in some in sub-directories and everything works. I tried the same here - did not help.

      - name: Create Human-Readable Report
        uses: kishikawakatsumi/xcresulttool@v1
        with:
          path: '/Users/runner/work/misnap-spm/misnap-spm/Developer/TestResults.xcresult'
          show-passed-tests: false
        if: success() || failure()

Action's log:
Screen Shot 2022-06-26 at 12 34 59

Printing the report through bash commands:
Screen Shot 2022-06-26 at 12 36 03

Same here…

What does the on: trigger look like in your Action? If you're running your Action from a fork and pull_request instead of pull_request_target, for example, you'll encounter this issue because the checks:write permission is required.

I'm seeing this issue as well after we migrated to GitHub Enterprise. 🤔

The problem were missing workflow permissions. (needs to be read and write, obviously) It needs to be enabled on the enterprise level and can then only be more restrictive on organization and repository level.

Screen Shot 2023-02-06 at 16 26 51

@mrackwitz Thank you for investigating this issue. Am I correct in assuming that this means there is nothing I can do on my end, and that changing the settings for each repository will solve the problem?

Am I correct in assuming that this means there is nothing I can do on my end

Indeed! I think the only thing you could possibly do is add further documentation, but I hope already by just sharing my solution in this issue, others who run into it, will find it. Thanks for this amazing little tool, Katsumi. 🙏