Skip to content

Commit bf9175b

Browse files
committed
enable sonar for dependabot PRs
1 parent 17eb2d4 commit bf9175b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ on:
55
push:
66
branches:
77
- main
8-
pull_request:
9-
8+
pull_request_target:
9+
branches:
10+
- main
1011

1112
permissions:
1213
contents: read
@@ -19,7 +20,7 @@ jobs:
1920
name: Build
2021
strategy:
2122
matrix:
22-
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
23+
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
2324
os: [ ubuntu-latest, macos-latest, windows-latest ]
2425
runs-on: ${{ matrix.os }}
2526
steps:
@@ -32,6 +33,7 @@ jobs:
3233
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3334
with:
3435
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
36+
ref: "${{ (github.event_name == 'pull_request_target') && github.event.pull_request.merge_commit_sha || github.ref }}"
3537

3638
- name: Setup Python ${{ matrix.python-version }}
3739
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0

0 commit comments

Comments
 (0)