mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Configure Hadolint in a single location for both hooks and CI
This commit is contained in:
		
							
								
								
									
										4
									
								
								.github/workflows/reusable-ci-backend.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/reusable-ci-backend.yml
									
									
									
									
										vendored
									
									
								
							| @@ -124,8 +124,6 @@ jobs: | |||||||
|         name: Checkout |         name: Checkout | ||||||
|         uses: actions/checkout@v3 |         uses: actions/checkout@v3 | ||||||
|       - |       - | ||||||
|         uses: hadolint/hadolint-action@v2.0.0 |         uses: hadolint/hadolint-action@v2.0 | ||||||
|         with: |         with: | ||||||
|           failure-threshold: warning |  | ||||||
|           dockerfile: ${{ matrix.dockerfile }} |           dockerfile: ${{ matrix.dockerfile }} | ||||||
|           ignore: DL3008,DL3013,DL3003 |  | ||||||
|   | |||||||
							
								
								
									
										8
									
								
								.hadolint.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								.hadolint.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | |||||||
|  | failure-threshold: warning | ||||||
|  | ignored: | ||||||
|  |   # https://github.com/hadolint/hadolint/wiki/DL3008 | ||||||
|  |   - DL3008 | ||||||
|  |   # https://github.com/hadolint/hadolint/wiki/DL3013 | ||||||
|  |   - DL3013 | ||||||
|  |   # https://github.com/hadolint/hadolint/wiki/DL3003 | ||||||
|  |   - DL3003 | ||||||
| @@ -74,13 +74,6 @@ repos: | |||||||
|     rev: v2.10.0 |     rev: v2.10.0 | ||||||
|     hooks: |     hooks: | ||||||
|       - id: hadolint |       - id: hadolint | ||||||
|         args: |  | ||||||
|           - --ignore |  | ||||||
|           - DL3008      # https://github.com/hadolint/hadolint/wiki/DL3008  (should probably do this at some point) |  | ||||||
|           - --ignore |  | ||||||
|           - DL3013      # https://github.com/hadolint/hadolint/wiki/DL3013  (should probably do this too at some point) |  | ||||||
|           - --ignore |  | ||||||
|           - DL3003      # https://github.com/hadolint/hadolint/wiki/DL3003  (seems excessive to use WORKDIR so much) |  | ||||||
|   # Shell script hooks |   # Shell script hooks | ||||||
|   - repo: https://github.com/lovesegfault/beautysh |   - repo: https://github.com/lovesegfault/beautysh | ||||||
|     rev: v6.2.1 |     rev: v6.2.1 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Trenton Holmes
					Trenton Holmes