Skip to content

Commit

Permalink
ci: adjust permissions so that comments can be put on prs and issues (#…
Browse files Browse the repository at this point in the history
…1277)

* ci: adjust permissions so that semantic-release can post comments

* ci: harden permissions for `commitlint` and `danger` jobs
  • Loading branch information
G-Rath committed Nov 4, 2022
1 parent 96557c4 commit 49e6f2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Lint
on: [pull_request]

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
commitlint:
runs-on: ubuntu-latest
Expand All @@ -14,6 +17,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
danger:
permissions:
contents: read # to fetch code (actions/checkout)
issues: write # to create comment
pull-requests: write # to create comment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ jobs:
release:
permissions:
contents: write # for semantic-release
issues: write # to create comment
pull-requests: write # to create comment

if:
# prettier-ignore
Expand Down

0 comments on commit 49e6f2f

Please sign in to comment.