Skip to content

Commit

Permalink
Change Artifactory credential to AccessToken (#387)
Browse files Browse the repository at this point in the history
* Change Artifactory credential to AccessToken

* Generate protos
  • Loading branch information
mcastorina authored Apr 12, 2022
1 parent 519cdbf commit c6b537f
Show file tree
Hide file tree
Showing 6 changed files with 198 additions and 28 deletions.
77 changes: 70 additions & 7 deletions pkg/pb/credentialspb/credentials.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

101 changes: 101 additions & 0 deletions pkg/pb/credentialspb/credentials.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 16 additions & 14 deletions pkg/pb/sourcespb/sources.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions pkg/pb/sourcespb/sources.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions proto/credentials.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,7 @@ message GitHubApp {
string installation_id = 2;
string app_id = 3;
}

message AccessToken {
string token = 1;
}
2 changes: 1 addition & 1 deletion proto/sources.proto
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ message Artifactory {
string endpoint = 1 [(validate.rules).string.uri_ref = true];
oneof credential {
credentials.BasicAuth basic_auth = 2;
credentials.Header header = 3;
credentials.AccessToken access_token = 3;
}
repeated string repositories = 4;
}

0 comments on commit c6b537f

Please sign in to comment.