Snyk Gradle Action
Last updated
Last updated
More information
Snyk privacy policy© 2024 Snyk Limited | All product and company names and logos are trademarks of their respective owners.
This page provides examples of using the Snyk GitHub Action for . For instructions on using the action and further information see .
You can use the Snyk Gradle Action to check for vulnerabilities as follows:
You can use the Snyk Gradle Action to check for only high severity vulnerabilities as follows:
To use the upload-sarif option for private repos you must have GitHub Advanced Security.
For an example of running snyk monitor
, see on the GitHub Actions integration page.
Using --sarif-file-output
and the , you can upload Snyk scan results to GitHub Code Scanning.
The Snyk Action fails when vulnerabilities are found. This would prevent the SARIF upload action from running. Thus you must use a option as shown in the example:
If you see the error Advanced Security must be enabled for this repository to use code scanning
, check that GitHub Advanced Security is enabled. For more information, see "."