Skip to content

Cookieplone generates invalid git repository url #263

@wesleybl

Description

@wesleybl

In the frontend addon for example, in package.json, the following is generated:

  "repository": {
    "type": "git",
    "url": "[email protected]:collective/volto-add-on"
  },

The url: [email protected]:collective/volto-add-on is not valid. This causes problems, for example, when submitting a project to Dendency Track. I'm getting the error:

{
  "status": 400,
  "title": "The uploaded BOM is invalid",
  "detail": "Schema validation failed",
  "errors": [
    "cvc-datatype-valid.1.2.1: '[email protected]:collective/volto-add-on' is not a valid value for 'anyURI'.",
    "cvc-type.3.1.3: The value '[email protected]:collective/volto-add-on' of element 'url' is not valid."
  ]
}

Ref: DependencyTrack/dependency-track#3885

To fix, the url must be in the format:

"url": "git+https://github.com/collective/volto-add-on.git"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions