Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --platform flag to cosign sbom download #1975

Merged
merged 9 commits into from
Jun 11, 2022

Commits on Jun 6, 2022

  1. Add --platform option to download sbom

    Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
    puerco committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    5e2ef3c View commit details
    Browse the repository at this point in the history
  2. Const not found error and humanize not found err

    Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
    puerco committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    8b01b2a View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2022

  1. Download specified sbom with --platform

    This commit implements the --platform flag of `cosign sbom download` that allows the
    user to fetch an sbom for a specific arch.
    
    Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
    puerco committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    9e71e2a View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2022

  1. Update platform string handling

    This commit modifies the --platform flag in cosign download to improve
    the handling of platform strings and matching.
    
    Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
    puerco committed Jun 8, 2022
    Configuration menu
    Copy the full SHA
    692f393 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2022

  1. Spin out platform fn and improve help

    This commit refactors the platforms logic to its own image and improves the
    user help when there is no sbom at the index level. cosign will now
    show the user which platforms are available to use with --platform.
    
    Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
    puerco committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    4049a33 View commit details
    Browse the repository at this point in the history
  2. Add sbom platform cases to e2e

    Add single image with platform case and update args in calls to download functions
    
    Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
    puerco committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    67df61c View commit details
    Browse the repository at this point in the history
  3. Update cosign download doc

    Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
    puerco committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    f0afd0d View commit details
    Browse the repository at this point in the history
  4. Add platformList.String method

    Refacor listing platform to a method of platformList
    
    Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
    puerco committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    b2f9054 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2022

  1. Drop manual walk of signed index

    This commit drops the findSignedImage() function in favor of the
    SignedImge() function of the OCI package.
    
    Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
    puerco committed Jun 10, 2022
    Configuration menu
    Copy the full SHA
    342c3ad View commit details
    Browse the repository at this point in the history