Extracted from coder/coder#12838, see the issue for more details.
A sample output

The module should add the metadata to any workspace given the image, repo name, and xray-url.
module "jfrog-xray" {
source = "registry.coder.com/modules/jfrog-xray/coder"
version = "x.x.x"
resource_id = "ID" # resource ID of the resource to attach metadata to
xray_url = "https://example.jfrog.io"
xray_token = "TOKEN"
image = "docker-local/codercom/enterprise-base:latest"
}