Skip to content

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

Closed

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

Activity

  1. added
    bug
    on Sep 18, 2024
  2. added
    needs-triage
    on Sep 18, 2024
  3. added
    gh-attestation
    and removed
    needs-triage
    on Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggh-attestation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions