Skip to content

Error: Resource not accessible by integration #64

@prem-prakash

Description

@prem-prakash
      - name: Generate Coverage Report
        uses: clearlyip/code-coverage-report-action@v5
        with:
          filename: 'coverage/coverage.xml'
          fail_on_negative_difference: true
          artifact_download_workflow_names: 'Lint and Test'
          only_list_changed_files: true

I get

Run clearlyip/code-coverage-report-action@v5
  with:
    filename: coverage/coverage.xml
    fail_on_negative_difference: true
    artifact_download_workflow_names: Lint and Test
    only_list_changed_files: true
    github_token: ***
    markdown_filename: code-coverage-results
    badge: false
    overall_coverage_fail_threshold: 0
    file_coverage_error_min: 50
    file_coverage_warning_max: 75
    artifact_name: coverage-%name%
    negative_difference_by: package
    negative_difference_threshold: 0
(https://github.com/***/***/actions/runs/****/job/*****#step:7:3)40558746-1
Looking for artifact "coverage-main" in the following workflows: Lint and Test
Error: Resource not accessible by integration - https://docs.github.com/rest/actions/workflow-runs#list-workflow-runs-for-a-repository

Is there any special permission for this?

I am pretty sure there is the artifact "coverage-main" in the workflow "Lint and Test".

I tried:

permissions: read-all

and

permissions:
  pull-requests: write
  actions: read
  contents: read

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions