CI: check-kernel-patches: use buildbot user on git diff check
Use buildbot user on git diff check instead of using git config safe directory. This should accomplish the same result but should be a better approach following safe practice enforced by git. Fixes:a7747e8670("ci: fix check kernel patches job") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> (cherry picked from commit6c80a578a4) Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
		
				
					committed by
					
						
						Daniel Golle
					
				
			
			
				
	
			
			
			
						parent
						
							635d5488c9
						
					
				
				
					commit
					bf82648bf7
				
			
							
								
								
									
										5
									
								
								.github/workflows/check-kernel-patches.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/check-kernel-patches.yml
									
									
									
									
										vendored
									
									
								
							@@ -85,10 +85,6 @@ jobs:
 | 
				
			|||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          chown -R buildbot:buildbot openwrt
 | 
					          chown -R buildbot:buildbot openwrt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Opt-out from Git stricter repository ownership checks
 | 
					 | 
				
			||||||
        run: |
 | 
					 | 
				
			||||||
          git config --global --add safe.directory '*'
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      - name: Initialization environment
 | 
					      - name: Initialization environment
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          TARGET=$(echo ${{ inputs.target }} | cut -d "/" -f 1)
 | 
					          TARGET=$(echo ${{ inputs.target }} | cut -d "/" -f 1)
 | 
				
			||||||
@@ -138,6 +134,7 @@ jobs:
 | 
				
			|||||||
        run: make target/linux/refresh V=s
 | 
					        run: make target/linux/refresh V=s
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Validate Refreshed Kernel Patches
 | 
					      - name: Validate Refreshed Kernel Patches
 | 
				
			||||||
 | 
					        shell: su buildbot -c "sh -e {0}"
 | 
				
			||||||
        working-directory: openwrt
 | 
					        working-directory: openwrt
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          . .github/workflows/scripts/ci_helpers.sh
 | 
					          . .github/workflows/scripts/ci_helpers.sh
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user