BenchmarkCI.jl icon indicating copy to clipboard operation
BenchmarkCI.jl copied to clipboard

Comment not being posted even though `Post results` step reports `[ Info: Comment posted.`

Open IanButterworth opened this issue 5 years ago • 2 comments

BenchmarkCI has been added to Plots.jl, and seems to work well. However the comment isn't being posted, even though the Post results step is reporting [ Info: Comment posted.

For instance: https://github.com/JuliaPlots/Plots.jl/pull/3267

Curiously it worked when I did a test PR on my fork: https://github.com/ianshmean/Plots.jl/pull/4

IanButterworth avatar Feb 01 '21 04:02 IanButterworth

Maybe your GITHUB_TOKEN has no permission to write. It looks like:

GITHUB_TOKEN Permissions
  Actions: read
  Checks: read
  Contents: read
  Deployments: read
  Discussions: read
  Issues: read
  Metadata: read
  Packages: read
  Pages: read
  PullRequests: read
  RepositoryProjects: read
  SecurityEvents: read
  Statuses: read

TCLiuu avatar Jul 13 '22 14:07 TCLiuu

By default the highest permissions for a GITHUB_TOKEN are read everywhere if the PR happens from a fork

https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token

gdalle avatar Feb 28 '24 11:02 gdalle