ReviewOS

also looking at this

craft-native/craft

fix(ci): let the benchmark job comment on pull requests

#41
Merged glennmichael123 wants to merge fix/benchmark-pr-comment-permission into main
1 file +10 -0
.github/workflows/benchmarks.ymlmodified+10-0
Changes to .github/workflows/benchmarks.yml
@@ -19,6 +19,16 @@ jobs:
1919 name: run
2020 runs-on: ubuntu-latest
2121
22 # The last step posts the benchmark comparison as a pull request comment,
23 # and the default token is read-only, so it failed with "Resource not
24 # accessible by integration" — after the build and every benchmark had
25 # succeeded. Only pull requests comment, so main pushes stayed green and
26 # the job looked healthy. binary-size.yml had the identical bug and was
27 # fixed in #22; this workflow was missed.
28 permissions:
29 contents: read
30 pull-requests: write
31
2232 steps:
2333 - uses: actions/checkout@v6
2434 with: