mirror of
				https://github.com/LamGC/ScalaBot.git
				synced 2025-11-04 10:36:54 +00:00 
			
		
		
		
	build(action): 添加用于验证 Gradle Wrapper 的 Action.
增加 Gradle Wrapper 验证过程有利于防范恶意 Pull Request 或恶意 Push, 增强构建安全性.
This commit is contained in:
		
							
								
								
									
										10
									
								
								.github/workflows/gradle-wrapper-validation.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/gradle-wrapper-validation.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
			
		||||
name: "Validate Gradle Wrapper"
 | 
			
		||||
on: [push, pull_request]
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  validation:
 | 
			
		||||
    name: "Validation"
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v2
 | 
			
		||||
      - uses: gradle/wrapper-validation-action@v1
 | 
			
		||||
		Reference in New Issue
	
	Block a user