From 00f930ac1967e4c51fb13d2e083955305285dd20 Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Wed, 27 Nov 2024 11:08:47 +0100 Subject: [PATCH] Fix commit ID for CI. --- .github/workflows/codeql.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index c1e5474..9a2e1a4 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -23,8 +23,12 @@ jobs: language: [ java ] steps: - - name: Checkout - uses: actions/checkout@v4 + - uses: actions/checkout@v4 + if: github.event_name == 'push' + - uses: actions/checkout@v4 + with: + ref: "${{ github.event.pull_request.merge_commit_sha }}" + if: github.event_name == 'pull_request_target' - name: Setup Java uses: actions/setup-java@v4