From 9dc9a3e67e74248c87947efbe90b019e5e7da54e Mon Sep 17 00:00:00 2001 From: Ramona Hartinger Date: Fri, 2 Jan 2026 07:54:24 +0100 Subject: [PATCH] ci: only allowed sonar job to read PRs --- .github/workflows/nodejs.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 761b4c8..eea7c5c 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -5,9 +5,6 @@ on: branches: ["main"] pull_request: -permissions: - pull-requests: read # allows SonarCloud to decorate PRs with analysis results - jobs: build: strategy: @@ -41,6 +38,8 @@ jobs: name: Run eslint and sonar scanning runs-on: ubuntu-latest needs: build + permissions: + pull-requests: read # allows SonarCloud to decorate PRs with analysis results steps: - name: Checkout code uses: actions/checkout@v6