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

GitHub Actions Secrets (Repo and Org) simple CRUD operations ( and Get Public Key for Repo and Org as dependency) #1496

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

Jalmeida1994
Copy link

Description

Added simple CRUD operations to GH Secrets (both Repository wise and Organization):

Also created a utility class for managing public keys, removing duplication between GHOrganization and GHRepository functionality. Created the following method for it and change the latter:

This broke the following, because instead of returning the type GHRepositoryPublicKey, it returns GHPublicKey:

There is at least one incompatibility: org.kohsuke.github.GHRepository.getPublicKey():METHOD_RETURN_TYPE_CHANGED,org.kohsuke.github.GHRepositoryPublicKey.GHRepositoryPublicKey():CONSTRUCTOR_LESS_ACCESSIBLE,org.kohsuke.github.GHRepositoryPublicKey:CLASS_NO_LONGER_PUBLIC,org.kohsuke.github.GHRepositoryPublicKey:METHOD_ABSTRACT_ADDED_IN_SUPERCLASS,org.kohsuke.github.GHRepositoryPublicKey:CLASS_LESS_ACCESSIBLE 

Still figuring out the wire mock creation. Only tested it with -Dtest.github.useProxy.

Any support and comments are extremely welcome. Thanks!

@bitwiseman bitwiseman added the work-abandoned There hasn't been any activity on the PR in a while. Another contributor might want to pick it up. label Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
work-abandoned There hasn't been any activity on the PR in a while. Another contributor might want to pick it up.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants