Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gh attestation trusted-root not tenant-aware when --tuf-url flag supplied #9637

@bdehamer

Description

@bdehamer

Describe the bug

When invoking the gh attestation trusted-root command, the --hostname and --tuf-url flag cannot be used together.

The --hostname flag is supposed to ensure that the tenant-specific trusted-root is returned. This works as-expected when the --tuf-url flag is omitted (defaulting to the default TUF repository), but doesn't NOT work when a --tuf-url value is supplied that points to a non-default TUF repository.

The following code should be replicated for the case where the --tuf-url flag is supplied:
https://github.com/cli/cli/blob/trunk/pkg/cmd/attestation/trustedroot/trustedroot.go#L141-L144

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggh-attestationrelated to the gh attestation command

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions