Skip to content

Commit badf32b

Browse files
committed
Fix commit ID for CI.
1 parent 7ed48c1 commit badf32b

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.github/workflows/ci.yml

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919

2020
steps:
2121
- uses: actions/checkout@v4
22+
if: github.event_name == 'push'
23+
- uses: actions/checkout@v4
24+
with:
25+
ref: "${{ github.event.pull_request.merge_commit_sha }}"
26+
if: github.event_name == 'pull_request_target'
2227
- name: Set up JDK ${{ matrix.jdk }}
2328
uses: actions/setup-java@v4
2429
with:

.github/workflows/codeql.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ jobs:
2323
language: [ java ]
2424

2525
steps:
26-
- name: Checkout
27-
uses: actions/checkout@v4
26+
- uses: actions/checkout@v4
27+
if: github.event_name == 'push'
28+
- uses: actions/checkout@v4
29+
with:
30+
ref: "${{ github.event.pull_request.merge_commit_sha }}"
31+
if: github.event_name == 'pull_request_target'
2832

2933
- name: Setup Java
3034
uses: actions/setup-java@v4

.github/workflows/coverage.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v4
17+
if: github.event_name == 'push'
18+
- uses: actions/checkout@v4
19+
with:
20+
ref: "${{ github.event.pull_request.merge_commit_sha }}"
21+
if: github.event_name == 'pull_request_target'
1722
- name: Set up JDK 21
1823
uses: actions/setup-java@v4
1924
with:
@@ -28,7 +33,7 @@ jobs:
2833
- name: Generate coverage with JaCoCo
2934
run: mvn -V --color always -ntp clean verify -Pci
3035
- name: Upload coverage to Codecov
31-
uses: codecov/codecov-action@v4.6.0
36+
uses: codecov/codecov-action@v5.0.7
3237
with:
3338
file: 'target/site/jacoco/jacoco.xml'
3439
disable_search: true

0 commit comments

Comments
 (0)