-
Notifications
You must be signed in to change notification settings - Fork 167
chore: refactored the github workflows #928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c5864c9
9e9f897
24fa9f7
33ac26c
f07660a
cc6f9aa
4c37c49
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,33 +6,24 @@ inputs: | |
| description: The Java version to use | ||
| required: false | ||
| default: '17' | ||
| gradle: | ||
| description: The Gradle version to use | ||
| required: false | ||
| default: 8.10.2 | ||
| kotlin: | ||
| description: The Kotlin version to use | ||
| required: false | ||
| default: 2.0.21 | ||
|
|
||
| runs: | ||
| using: composite | ||
|
|
||
| steps: | ||
| - name: Set up Java | ||
| uses: actions/setup-java@v4 | ||
| uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # pin@v4 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: '17' | ||
| java-version: ${{ inputs.java }} | ||
| cache: 'gradle' | ||
|
|
||
| - run: | | ||
| curl -s "https://get.sdkman.io" | bash | ||
| source "/home/runner/.sdkman/bin/sdkman-init.sh" | ||
| sdk install gradle ${{ inputs.gradle }} && sdk default gradle ${{ inputs.gradle }} | ||
| sdk install kotlin ${{ inputs.kotlin }} && sdk default kotlin ${{ inputs.kotlin }} | ||
| shell: bash | ||
| - name: Set up Gradle | ||
| uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # pin@v5 | ||
| with: | ||
| gradle-version: wrapper | ||
| cache-cleanup: on-success | ||
|
Comment on lines
+21
to
+25
|
||
|
|
||
| - run: ./gradlew androidDependencies | ||
| - name: Download dependencies | ||
| run: ./gradlew androidDependencies | ||
| shell: bash | ||
|
|
||
| - uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # pin@1.1.0 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workflow runs
./gradlewduring publishing without validating the Gradle wrapper first. Consider addinggradle/wrapper-validation-actionafter checkout (beforesetup-gradle) to prevent executing a tampered wrapper in CI.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as #928 (comment)