Skip to content

Usage documentation wrong #640

@wollew

Description

@wollew

The README currently describes the "basic usage" as a 2 step process, where CI does not need/get permissions because pulled code is potentially untrusted. But the example does exactly that:

# .github/workflows/ci.yml
    ...
    permissions:
      # Gives the action the necessary permissions for publishing new
      # comments in pull requests.
      pull-requests: write
      # Gives the action the necessary permissions for pushing data to the
      # python-coverage-comment-action branch, and for editing existing
      # comments (to avoid publishing multiple comments in the same PR)
      contents: write

My understanding is that these permissions should only go in .github/workflows/coverage.yml. Is there a misunderstanding on my side or should the docs be adjusted?

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