Skip to content

Commit c6b537f

Browse files
authored
Change Artifactory credential to AccessToken (#387)
* Change Artifactory credential to AccessToken * Generate protos
1 parent 519cdbf commit c6b537f

File tree

6 files changed

+198
-28
lines changed

6 files changed

+198
-28
lines changed

pkg/pb/credentialspb/credentials.pb.go

+70-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/pb/credentialspb/credentials.pb.validate.go

+101
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/pb/sourcespb/sources.pb.go

+16-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/pb/sourcespb/sources.pb.validate.go

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/credentials.proto

+4
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,7 @@ message GitHubApp {
5959
string installation_id = 2;
6060
string app_id = 3;
6161
}
62+
63+
message AccessToken {
64+
string token = 1;
65+
}

proto/sources.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ message Artifactory {
230230
string endpoint = 1 [(validate.rules).string.uri_ref = true];
231231
oneof credential {
232232
credentials.BasicAuth basic_auth = 2;
233-
credentials.Header header = 3;
233+
credentials.AccessToken access_token = 3;
234234
}
235235
repeated string repositories = 4;
236236
}

0 commit comments

Comments
 (0)