Prerequisites:
Enable the Cloud Resources Manager API for the Google account you plan on integrating with Snyk.
From the relevant project in Google, ensure the you've created a service account for this Snyk integration.
Steps:
Go to the Google Cloud Platform Console Credentials page, select the project that you want to integrate with, and then select to set up a new service account key.
-
From the view that loads, choose the service account from the dropdown list that you created for this integration, and configure a new key for that account with these values:
Service account name - assign a unique name for the account in order to remember its uses later on.
Role - Project->Viewer
Service account ID - leave empty
Key type - JSON
-
Click Create.
The key is generated for your project.
-
Copy the entire contents of the JSON file, which appears similar to the following:
Save the data you copied in order to paste it when configuring the integration with Snyk.
Next steps:
Now, configure the integration: Configure integration for GCR.