Add Snyk scanning
This commit is contained in:
		
							
								
								
									
										11
									
								
								.github/workflows/ci-python.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.github/workflows/ci-python.yml
									
									
									
									
										vendored
									
									
								
							@@ -37,3 +37,14 @@ jobs:
 | 
			
		||||
        env:
 | 
			
		||||
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
 | 
			
		||||
      - name: Snyk Vulnerability Scan
 | 
			
		||||
        uses: snyk/actions/python-3.10@master
 | 
			
		||||
        continue-on-error: true # To make sure that SARIF upload gets called
 | 
			
		||||
        env:
 | 
			
		||||
          SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
 | 
			
		||||
        with:
 | 
			
		||||
          args: --sarif-file-output=snyk.sarif
 | 
			
		||||
      - name: Upload result to GitHub Code Scanning
 | 
			
		||||
        uses: github/codeql-action/upload-sarif@v2
 | 
			
		||||
        with:
 | 
			
		||||
          sarif_file: snyk.sarif
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user