Skip to content

chore: refactored the github workflows#928

Merged
pmathew92 merged 7 commits intov4_developmentfrom
ci_pipeline
Mar 5, 2026
Merged

chore: refactored the github workflows#928
pmathew92 merged 7 commits intov4_developmentfrom
ci_pipeline

Conversation

@pmathew92
Copy link
Contributor

Changes

This PR refactors the existing Github workflows to use setup actions, Gradle caching and parallel execution to speed up build time

Checklist

@pmathew92 pmathew92 marked this pull request as ready for review March 3, 2026 10:25
Copilot AI review requested due to automatic review settings March 3, 2026 10:25
@pmathew92 pmathew92 requested a review from a team as a code owner March 3, 2026 10:25
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +21 to +25
- name: Set up Gradle
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # pin@v5
with:
gradle-version: wrapper
cache-cleanup: on-success
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The setup action no longer validates the Gradle wrapper (gradle/wrapper/gradle-wrapper.properties + gradlew) before executing it. Please add back a wrapper validation step (e.g., gradle/wrapper-validation-action) early in this composite action to reduce supply-chain risk in CI.

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not valid as the set-up action will perform the wrapper validation on each execution
Starting with v4 the setup-gradle action will [perform wrapper validation](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#gradle-wrapper-validation) on each execution. If you are using setup-gradle in your workflows, it is unlikely that you will need to use the wrapper-validation action.

uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # pin@v4
with:
distribution: 'temurin'
java-version: '17'
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This composite action declares a required java-version input, but the setup-java step hard-codes java-version: '17'. Either wire this step to ${{ inputs.java-version }} or remove the unused input to avoid confusing callers.

Suggested change
java-version: '17'
java-version: ${{ inputs.java-version }}

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment on lines +30 to +31
- name: Set up Gradle
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # pin@v5
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow runs ./gradlew during publishing without validating the Gradle wrapper first. Consider adding gradle/wrapper-validation-action after checkout (before setup-gradle) to prevent executing a tampered wrapper in CI.

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as #928 (comment)

@pmathew92 pmathew92 merged commit 91e7b29 into v4_development Mar 5, 2026
6 checks passed
@pmathew92 pmathew92 deleted the ci_pipeline branch March 5, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants