From eb66b343ea3b9a47563b85e6610165195fcc4604 Mon Sep 17 00:00:00 2001 From: Jeppe B <2jepp9350@gmail.com> Date: Tue, 2 Jun 2026 00:04:10 +0200 Subject: [PATCH] Harden Qodana workflow permissions and checkout pin --- .github/workflows/code_quality.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml index 4d9655f5..17d3c6bf 100644 --- a/.github/workflows/code_quality.yml +++ b/.github/workflows/code_quality.yml @@ -11,14 +11,13 @@ jobs: qodana: runs-on: ubuntu-latest permissions: - contents: write - pull-requests: write - checks: write + contents: read steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 with: ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit fetch-depth: 0 # a full history is required for pull request analysis + persist-credentials: false - name: 'Qodana Scan' uses: JetBrains/qodana-action@v2025.3 with: