Skip to content

Commit 2af83cb

Browse files
neilnaveenhimanshiLt
authored andcommitted
Set permissions for GitHub actions (cheeriojs#2453)
1 parent 0eea86b commit 2af83cb

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

.github/workflows/benchmark.yml

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ env:
1010
FORCE_COLOR: 2
1111
NODE: 16
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
benchmark:
1518
runs-on: ubuntu-latest

.github/workflows/ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@ env:
1010
FORCE_COLOR: 2
1111
NODE_COV: 16 # The Node.js version to run coveralls on
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
run:
18+
permissions:
19+
checks: write # for coverallsapp/github-action to create new checks
20+
contents: read # for actions/checkout to fetch code
1521
name: Node ${{ matrix.node }}
1622
runs-on: ubuntu-latest
1723

.github/workflows/lint.yml

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ env:
1010
FORCE_COLOR: 2
1111
NODE: 16
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
lint:
1518
runs-on: ubuntu-latest

.github/workflows/sponsors.yml

+6
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ env:
99
FORCE_COLOR: 2
1010
NODE: 16
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
fetch:
17+
permissions:
18+
contents: write # for peter-evans/create-pull-request to create branch
19+
pull-requests: write # for peter-evans/create-pull-request to create a PR
1420
runs-on: ubuntu-latest
1521

1622
steps:

0 commit comments

Comments
 (0)