chore: Set permissions for GitHub actions (#3549)
This commit is contained in:
parent
7629b44b5d
commit
213908e00b
|
@ -8,6 +8,9 @@ on:
|
|||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -9,6 +9,9 @@ on:
|
|||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue