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

Lines changed: 70 additions & 7 deletions
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

Lines changed: 101 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/pb/sourcespb/sources.pb.go

Lines changed: 16 additions & 14 deletions
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

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/credentials.proto

Lines changed: 4 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)