Problem:
When adding images to the Snyk portal via Google Container Registry (GCR) you may encounter the following error:
Could not connect to GCR
Please ensure your credentials are correctly configured.
First of all, there can be up to a 10-minute delay between creating the service account and it being active on Google cloud, but if the issue persists it may be the below issue.
Discussion:
This is generally associated with the following error in the background:
Cloud Resource Manager API has not been used in project {{projectID}} before or it is disabled.
Enable it by visiting https://console.cloud.google.com/apis/api/cloudresourcemanager.googleapis.com/overview?project={{projectID}} then retry.
If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
Resolution:
To resolve this issue, go to the specified address to enable Cloud Resource Manager API for the project in question as it may not have been enabled, or it is disabled
If the issue persists, please create a support ticket.