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 github&gitlab reference support to generate-key-pair #848

Merged
merged 6 commits into from
Oct 11, 2021

Conversation

erkanzileli
Copy link
Contributor

Signed-off-by: Erkan Zileli erkan.zileli@trendyol.com
Co-authored-with: Batuhan Apaydın batuhan.apaydin@trendyol.com
Co-authored-with: Furkan Türkal furkan.turkal@trendyol.com

Fixes: #838

cc: @Dentrax @developer-guy

Copy link
Member

@Dentrax Dentrax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! I just added some reviews. Additionally, you can update the usage examples for generate-key-pair command like following:

  # generate a key-pair in GitHub
  cosign generate-key-pair github://owner/project
  
  # generate a key-pair in GitLab
  cosign generate-key-pair gitlab://owner/project

cmd/cosign/cli/generate/generate_key_pair.go Show resolved Hide resolved
cmd/cosign/cli/generate/generate_key_pair.go Show resolved Hide resolved
pkg/cosign/git/github/github.go Outdated Show resolved Hide resolved
pkg/cosign/git/github/github.go Outdated Show resolved Hide resolved
cmd/cosign/cli/generate/generate_key_pair.go Outdated Show resolved Hide resolved
@developer-guy developer-guy changed the title WIP: add github&gitlab reference support to generate-key-pair add github&gitlab reference support to generate-key-pair Oct 5, 2021
@developer-guy developer-guy force-pushed the feature/git-key-pair branch 3 times, most recently from f8f388b to 9f4f3b9 Compare October 5, 2021 20:29
erkanzileli and others added 2 commits October 6, 2021 10:28
Signed-off-by: Erkan Zileli <erkan.zileli@trendyol.com>
Co-authored-with: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Co-authored-with: Furkan Türkal <furkan.turkal@trendyol.com>
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
@developer-guy
Copy link
Member

Good job! I just added some reviews. Additionally, you can update the usage examples for generate-key-pair command like following:

  # generate a key-pair in GitHub
  cosign generate-key-pair github://owner/project
  
  # generate a key-pair in GitLab
  cosign generate-key-pair gitlab://owner/project

thanks for the feedback, we updated docs and also generated documents for the commands by following command:

$ go run ./cmd/help/main.go # this will update doc/ folder with the latest updates on the commands

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
@dekkagaijin dekkagaijin merged commit 5302c87 into sigstore:main Oct 11, 2021
@github-actions github-actions bot added this to the v1.3.0 milestone Oct 11, 2021
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.

Support GitHub and GitLab services for generate-key-pair
4 participants