Skip to content

Commit

Permalink
Set authorization always when oidc token is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
KacperMalachowski committed Jan 20, 2025
1 parent 12ee201 commit 83fbac9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/image-builder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func prepareADOTemplateParameters(options options) (adopipelines.OCIImageBuilder
templateParameters.SetImageTags(options.tags.String())
}

if options.ciSystem == GithubActions {
if options.oidcToken != "" {
templateParameters.SetAuthorization(options.oidcToken)
}

Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module github.com/kyma-project/test-infra

go 1.23
go 1.23.0

toolchain go1.23.4

require (
Expand Down

0 comments on commit 83fbac9

Please sign in to comment.