Skip to content

Commit 2912cac

Browse files
authored
Merge pull request #110 from aditosoftware/pr-read-pipeline
ci: only allowed sonar job to read PRs
2 parents 6fa248c + 9dc9a3e commit 2912cac

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
branches: ["main"]
66
pull_request:
77

8-
permissions:
9-
pull-requests: read # allows SonarCloud to decorate PRs with analysis results
10-
118
jobs:
129
build:
1310
strategy:
@@ -41,6 +38,8 @@ jobs:
4138
name: Run eslint and sonar scanning
4239
runs-on: ubuntu-latest
4340
needs: build
41+
permissions:
42+
pull-requests: read # allows SonarCloud to decorate PRs with analysis results
4443
steps:
4544
- name: Checkout code
4645
uses: actions/checkout@v6

0 commit comments

Comments
 (0)