Skip to content

Commit 49a8093

Browse files
committed
CI: validate Gradle wrapper once.
1 parent 12e76af commit 49a8093

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ on:
1313

1414
jobs:
1515

16+
# Validate wrapper to prevent potential supply chain attack
17+
gradle-wrapper-validation:
18+
runs-on: ubuntu-latest
19+
20+
name: Validate Gradle wrapper
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: gradle/wrapper-validation-action@v1
25+
1626
build:
1727
runs-on: ubuntu-latest
1828

@@ -33,10 +43,6 @@ jobs:
3343
java-version: ${{ matrix.java }}
3444
distribution: 'adopt'
3545

36-
# Validate wrapper to prevent potential supply chain attack
37-
- name: Validate Gradle wrapper
38-
uses: gradle/wrapper-validation-action@v1
39-
4046
# Build
4147
- name: Build with Gradle
4248
run: ./gradlew build

0 commit comments

Comments
 (0)