To make it easier for organizations using Github, we created a Github Action that can be easily integrated in your pipelines.
By default, the action will launch a differential scan (only returning new vulnerabilities) when triggered by a pull request event.
If you want to disable this behavior and always return all vulnerabilities, you can set the diff-scan input to false.
To run the differential scan, the action must be triggered by a pull request event.
To do that, make sure to add the following to your workflow triggers:
Copy
on: pull_request: types: - opened - synchronize - reopened
Don’t forget to retrieve your organization token and to set it as a secret in your Github setttings.
We advise you to set SYMBIOTIC_API_TOKEN as an environment variable in your pipeline. You can create or retrieve this token here.
2
Launch our CLI
Copy
symbiotic-cli ci infra ./ --skip-upload-results
You can override the severity threshold defined in the configuration file using the severity-threshold option.Ex: symbiotic-cli ci infra ./ --severity-threshold high
As of today scans must be launched on the root folder to correctly take into account the configuration file
If you want your detected vulnerabilities to be uploaded to Symbiotic’s backend to benefit from the dashboard, detailed reports, remediation suggestions and more: you need to provide information about your git repository to the command.See the example below :