mirror of
				https://hub.gitmirror.com/https://github.com/gradle/actions.git
				synced 2025-10-29 00:50:07 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			769 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			769 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ## The `wrapper-validation` action
 | |
| 
 | |
| The `wrapper-validation` action validates the checksums of _all_ [Gradle Wrapper](https://docs.gradle.org/current/userguide/gradle_wrapper.html) 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`.
 | |
| 
 | |
| ### Example workflow
 | |
| 
 | |
| ```yaml
 | |
| 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@v3
 | |
| ```
 | |
| 
 | |
| See the [full action documentation](../docs/wrapper-validation.md) for more advanced usage scenarios.
 | 
