ci: update Differential ShellCheck
Run on pushes and drop unnecessary write access. Should avoid pull-requests comments like https://github.com/shadow-maint/shadow/pull/695#issuecomment-1491876950
This commit is contained in:
		
				
					committed by
					
						
						Iker Pedrosa
					
				
			
			
				
	
			
			
			
						parent
						
							e5905c4b84
						
					
				
				
					commit
					189a01f7a7
				
			
							
								
								
									
										2
									
								
								.github/workflows/static-code-analysis.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/static-code-analysis.yml
									
									
									
									
										vendored
									
									
								
							@@ -38,13 +38,11 @@ jobs:
 | 
				
			|||||||
      uses: github/codeql-action/analyze@v2
 | 
					      uses: github/codeql-action/analyze@v2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  differential-shellcheck:
 | 
					  differential-shellcheck:
 | 
				
			||||||
    if: github.event_name == 'pull_request'
 | 
					 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    permissions:
 | 
					    permissions:
 | 
				
			||||||
      contents: read
 | 
					      contents: read
 | 
				
			||||||
      security-events: write
 | 
					      security-events: write
 | 
				
			||||||
      pull-requests: write
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout repository
 | 
					      - name: Checkout repository
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user