FAQ | This is a LIVE service | Changelog

Skip to content

BUG: trivy: [module resolver] Failed to find a token for the registry

The trivy job appears to be failing to pull our public Terraform modules when it initialises. The error message is:

ERROR	[module resolver] Failed to find a token for the registry	module="root" hostname="gitlab.developers.cam.ac.uk" err="no token was found for the registry at gitlab.developers.cam.ac.uk"
ERROR	[terraform evaluator] Failed to load module. Maybe try 'terraform init'?	module="root" err="invalid character '<' looking for beginning of value"

An example of the failing job can be seen in the Raven WebAuth/Infrastructure pipelines.

We are unsure if this is a new issue or if it has existed for a while but has gone unnoticed.