Skip to content

Repository name extraction assumes fixed GitHub path pattern #4

Description

@lebogg

Problem

getRepositoryName assumes the github.com/<org>/<repo>/... pattern and extracts index 2. This may breaks for other GitHub URL packages constellations.

// getRepositoryName gets the repository name out of the package name.
// For example: "github.com/golang-jwt/jwt/v5" -> "jwt"
func getRepositoryName(packageName string) *string {

Impact

Incorrect product_name in CSAF product tree, leading to mismatched product IDs and deduplication errors

Solution

Check if there are other patterns for GitHub URL and if so, fix the method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions