Skip to content

Commit 49e6f2f

Browse files
authored
ci: adjust permissions so that comments can be put on prs and issues (#1277)
* ci: adjust permissions so that semantic-release can post comments * ci: harden permissions for `commitlint` and `danger` jobs
1 parent 96557c4 commit 49e6f2f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/lint.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Lint
22
on: [pull_request]
33

4+
permissions:
5+
contents: read # to fetch code (actions/checkout)
6+
47
jobs:
58
commitlint:
69
runs-on: ubuntu-latest
@@ -14,6 +17,10 @@ jobs:
1417
env:
1518
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1619
danger:
20+
permissions:
21+
contents: read # to fetch code (actions/checkout)
22+
issues: write # to create comment
23+
pull-requests: write # to create comment
1724
runs-on: ubuntu-latest
1825
steps:
1926
- uses: actions/checkout@v3

.github/workflows/nodejs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ jobs:
130130
release:
131131
permissions:
132132
contents: write # for semantic-release
133+
issues: write # to create comment
134+
pull-requests: write # to create comment
133135

134136
if:
135137
# prettier-ignore

0 commit comments

Comments
 (0)