infra/workflow: Declare limited permissions for regression

Note that this workflow currently imagines writing a comment.
It does not actually try to do so, and thus there is no need to ask
for permission to use `pull-requests: write`.

If at some point, someone decides to fix that feature, they
will need to add that permission.

OTOH, using a GitHub Step Summary instead does not require any permissions.
This commit is contained in:
Josh Soref 2024-06-28 10:32:03 -04:00 committed by Hermet Park
parent af0cb93836
commit 8663e33353

View file

@ -6,6 +6,9 @@ on:
branches: branches:
- main - main
permissions:
contents: read
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest