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

fix help text when in a container #3082

Merged
merged 1 commit into from
Jun 26, 2023
Merged

Conversation

cpanato
Copy link
Member

@cpanato cpanato commented Jun 25, 2023

Summary

  • fix help text when in a container

Fixes: #3081

$ docker run ko.local/cosign:8196968a32e1ca34eb1f27614e54d8668c0564595e8f19d88f86948eb78a0fad help
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
A tool for Container Signing, Verification and Storage in an OCI registry.

Usage:
cosign [command]

Available Commands:
attach                  Provides utilities for attaching artifacts to other artifacts in a registry
attest                  Attest the supplied container image.
attest-blob             Attest the supplied blob.
clean                   Remove all signatures from an image.
completion              Generate completion script
copy                    Copy the supplied container image and signatures.
dockerfile              Provides utilities for discovering images in and performing operations on Dockerfiles
download                Provides utilities for downloading artifacts and attached artifacts in a registry
env                     Prints Cosign environment variables
generate                Generates (unsigned) signature payloads from the supplied container image.
generate-key-pair       Generates a key-pair.
help                    Help about any command
import-key-pair         Imports a PEM-encoded RSA or EC private key.
initialize              Initializes SigStore root to retrieve trusted certificate and key targets for verification.
load                    Load a signed image on disk to a remote registry
login                   Log in to a registry
manifest                Provides utilities for discovering images in and performing operations on Kubernetes manifests
public-key              Gets a public key from the key-pair.
save                    Save the container image and associated signatures to disk at the specified directory.
sign                    Sign the supplied container image.
sign-blob               Sign the supplied blob, outputting the base64-encoded signature to stdout.
tree                    Display supply chain security related artifacts for an image such as signatures, SBOMs and attestations
triangulate             Outputs the located cosign image reference. This is the location cosign stores the specified artifact type.
upload                  Provides utilities for uploading artifacts to a registry
verify                  Verify a signature on the supplied container image
verify-attestation      Verify an attestation on the supplied container image
verify-blob             Verify a signature on the supplied blob
verify-blob-attestation Verify an attestation on the supplied blob
version                 Prints the version

Flags:
    -h, --help=false:
        help for cosign

    --output-file='':
        log output to a file

    -t, --timeout=3m0s:
        timeout for commands

    -d, --verbose=false:
        log debug output

Additional help topics:
cosign piv-tool                This cosign was not built with piv-tool support!
cosign pkcs11-tool             This cosign was not built with pkcs11-tool support!

Use "cosign [command] --help" for more information about a command.

@codecov
Copy link

codecov bot commented Jun 25, 2023

Codecov Report

Merging #3082 (66d7052) into main (885086c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #3082   +/-   ##
=======================================
  Coverage   30.63%   30.63%           
=======================================
  Files         155      155           
  Lines        9793     9793           
=======================================
  Hits         3000     3000           
  Misses       6343     6343           
  Partials      450      450           

@priyawadhwa priyawadhwa merged commit 412a096 into sigstore:main Jun 26, 2023
@github-actions github-actions bot added this to the v2.1.1 milestone Jun 26, 2023
@cpanato cpanato deleted the GH-3081 branch June 26, 2023 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cosign 2.1.0 image requires a TTY
2 participants