danger / kotlin

⚠️ Stop saying "you forgot to …" in code review
MIT License
505 stars 50 forks source link

fix(ci): setup permissions set for github token #291

Closed Vacxe closed 1 month ago

Vacxe commented 1 month ago

Interesting workaround permissions setup:

    permissions:
      actions: write
      attestations: write
      checks: write
      contents: write
      deployments: write
      id-token: write
      issues: write
      discussions: write
      packages: write
      pages: write
      pull-requests: write
      repository-projects: write
      security-events: write
      statuses: write

Result

Could not add a commit status, the GitHub token for Danger does not have access rights.
If the build fails, then danger will use a failing exit code.

However

permissions: write-all

Working as expected.


From private fork comment message not posted, but from repo branch all work as expected