SEI Snyk integration
Snyk Open Source helps development teams automatically find and fix vulnerabilities and license violations in their open source dependencies.
Use the SEI Snyk integration to integrate SEI with Snyk.
Requirements
To use the SEI Snyk integration:
- Make sure your Snyk plan supports APIs. To check this, log in to Snyk, go to Settings, and then go to Billing.
- Get your Snyk API token. Copy the token somewhere that you can retrieve it when you configure the integration. For instructions, go to the Snyk documentation on Authentication for API.
Configure the integration
- Cloud
- Satellite
-
In your Harness Project, select the SEI Module, and go to your Account.
-
Select Integrations under Data Settings.
-
Select Available Integrations, locate the Snyk integration, and select Install.
-
Configure and save the integration.
- URL: Enter
https://app.snyk.io
- Username: The email address of the user associated with the API token that you copied from Snyk.
- API Key: Enter the Snyk API token.
- Name: Enter a name for the integration.
- Description and Tags are optional.
- URL: Enter
The steps for configuring the integration using Satellite is similar to configuring the integration on cloud, with the exception of using satellite to communicate with the Snyk server.
Make sure to select the satellite integration checkbox while configuring the integration. Once you save the integration a satellite.yml file will be automatically generated and downloaded to your computer. Update it following the instructions here.
If you experience any issues while configuring the integration using the Ingestion Satellite, refer to the Ingestion Satellite Troubleshooting and FAQs.
Here’s a sample satellite.yml
file
satellite:
tenant: <ACCOUNT_ID>
api_key: <ACCOUNT_API_KEY>
url: 'https://app.harness.io/gratis/sei/api' # Note that this URL is relative to the Environment of your Harness Account.
integrations:
- id: '<INTEGRATION_ID>'
application: snyk
url: '<SNYK_URL>'
username: <SNYK_USERNAME>
api_key: <SNYK_API_KEY>
Alternative: Upload report
- In your Harness Project, select the SEI Module, and go to your Account.
- Select SEI Integrations under Data Settings.
- Select Available Integrations, locate the Snyk Report semi-automated integration, and select Upload report.