Skip to content

Commit 432f475

Browse files
authored
Move gradle wrapper-validation to top-level workflow to make OSSF scorecord happy (#13164)
1 parent ed701b7 commit 432f475

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

.github/workflows/build-common.yml

-7
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,6 @@ jobs:
4747
- name: Spotless
4848
run: ./gradlew spotlessCheck ${{ inputs.no-build-cache && '--no-build-cache' || '' }}
4949

50-
gradle-wrapper-validation:
51-
runs-on: ubuntu-latest
52-
steps:
53-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
54-
55-
- uses: gradle/actions/wrapper-validation@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2
56-
5750
license-check:
5851
runs-on: ubuntu-latest
5952
steps:

.github/workflows/build-pull-request.yml

+9
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ permissions:
1616
contents: read
1717

1818
jobs:
19+
gradle-wrapper-validation:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
24+
# this needs to be in the top-level workflow in order to make OSSF scorecard happy
25+
- uses: gradle/actions/wrapper-validation@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2
26+
1927
common:
2028
uses: ./.github/workflows/build-common.yml
2129
with:
@@ -71,6 +79,7 @@ jobs:
7179
# only the "common" checks are required for release branch PRs in order to avoid any unnecessary
7280
# release branch maintenance (especially for patches)
7381
needs:
82+
- gradle-wrapper-validation
7483
- common
7584
- muzzle
7685
- shell-script-check

.github/workflows/build.yml

+8
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ permissions:
1111
contents: read
1212

1313
jobs:
14+
gradle-wrapper-validation:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
19+
# this needs to be in the top-level workflow in order to make OSSF scorecard happy
20+
- uses: gradle/actions/wrapper-validation@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2
21+
1422
common:
1523
uses: ./.github/workflows/build-common.yml
1624

0 commit comments

Comments
 (0)