actions/wrapper-validation
2024-08-12 10:03:35 -06:00
..
action.yml Initial import of wrapper-validation-action 2024-04-10 21:17:49 -06:00
README.md Emphasise notice in wrapper-validation docs 2024-08-12 10:03:35 -06:00

The wrapper-validation action

The wrapper-validation action validates the checksums of all Gradle Wrapper JAR files present in the repository and fails if any unknown Gradle Wrapper JAR files are found.

The action should be run in the root of the repository, as it will recursively search for any files named gradle-wrapper.jar.

Note

Starting with v4 the setup-gradle action will automatically perform 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.

Example workflow

name: "Validate Gradle Wrapper"

on:
  push:
  pull_request:

jobs:
  validation:
    name: "Validation"
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: gradle/actions/wrapper-validation@v4

See the full action documentation for more advanced usage scenarios.