chore: Set permissions for GitHub actions (#3549)

This commit is contained in:
Naveen 2022-06-11 16:02:54 -05:00 committed by GitHub
parent 7629b44b5d
commit 213908e00b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View File

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

View File

@ -9,6 +9,9 @@ on:
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
build:

View File

@ -6,9 +6,17 @@ name: Size Report (gzip)
on: [pull_request]
permissions:
contents: read
jobs:
build:
permissions:
checks: write # for preactjs/compressed-size-action to create and update the checks
contents: read # for actions/checkout to fetch code
issues: write # for preactjs/compressed-size-action to create comments
pull-requests: write # for preactjs/compressed-size-action to write a PR review
runs-on: ubuntu-latest
steps: