Skip to content

fix: add pull-requests read permission to conventional-pr-title workflow #16

@kojiromike

Description

@kojiromike

The conventional-pr-title workflow fails on private repos with:

Resource not accessible by integration - https://docs.github.com/rest/pulls/pulls#get-a-pull-request

The amannn/action-semantic-pull-request action needs to call the GitHub REST API to read the PR title, but the default GITHUB_TOKEN on private repos doesn't include pull-requests: read.

Add to .github/workflows/conventional-pr-title.yml:

permissions:
  pull-requests: read

Fixed in oce-lib-module-config via openCoreEMR/oce-lib-module-config@3305601.

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