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.
This is generally associated with the following error in the background:
Cloud Resource Manager API has not been used in project 451606758190 before or it is disabled. Enable it by visiting https://console.cloud.google.com/apis/api/cloudresourcemanager.googleapis.com/overview?project=451606758190 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
To resolve this issue, please browse to the following 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.