Skip to content

Materialize gradle-wrapper.jar from LFS before Gradle run#6

Merged
antunflas merged 2 commits into
mainfrom
feature/dismiss-dev-only-dependabot-alerts
Jul 7, 2026
Merged

Materialize gradle-wrapper.jar from LFS before Gradle run#6
antunflas merged 2 commits into
mainfrom
feature/dismiss-dev-only-dependabot-alerts

Conversation

@antunflas

@antunflas antunflas commented Jul 7, 2026

Copy link
Copy Markdown
Member

Some caller repos store gradle-wrapper.jar in Git LFS (e.g. an *.jar filter=lfs rule). The checkout above leaves it as a pointer file, which the JVM rejects as "Invalid or corrupt jarfile". Pull only that one object so ./gradlew can launch. No-op on repos without LFS.

Copilot AI review requested due to automatic review settings July 7, 2026 15:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the reusable “Dismiss dev-only Dependabot alerts” workflow to handle caller repositories that store gradle/wrapper/gradle-wrapper.jar in Git LFS, ensuring ./gradlew can run during the Gradle-based analysis phase.

Changes:

  • Keep actions/checkout LFS disabled to avoid downloading all LFS objects by default.
  • Add a targeted git lfs pull --include="gradle/wrapper/gradle-wrapper.jar" step immediately after checkout to materialize only the Gradle wrapper JAR when it’s LFS-tracked.

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

@antunflas
antunflas merged commit c7d34fb into main Jul 7, 2026
2 checks passed
@antunflas
antunflas deleted the feature/dismiss-dev-only-dependabot-alerts branch July 7, 2026 15:44
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.

2 participants