File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ import (
31
31
"github.com/containerd/containerd/platforms"
32
32
"github.com/tektoncd/pipeline/cmd/entrypoint/subcommands"
33
33
featureFlags "github.com/tektoncd/pipeline/pkg/apis/config"
34
- "github.com/tektoncd/pipeline/pkg/apis/pipeline"
35
34
v1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1"
36
35
"github.com/tektoncd/pipeline/pkg/credentials/dockercreds"
37
36
"github.com/tektoncd/pipeline/pkg/credentials/gitcreds"
@@ -98,7 +97,7 @@ func main() {
98
97
// stored credentials.
99
98
builders := []credwriter.Writer {dockercreds .NewBuilder (), gitcreds .NewBuilder ()}
100
99
for _ , c := range builders {
101
- if err := c .Write (pipeline .CredsDir ); err != nil {
100
+ if err := c .Write (entrypoint .CredsDir ); err != nil {
102
101
log .Printf ("Error initializing credentials: %s" , err )
103
102
}
104
103
}
Original file line number Diff line number Diff line change @@ -56,6 +56,11 @@ const (
56
56
breakpointExitSuffix = ".breakpointexit"
57
57
breakpointBeforeStepSuffix = ".beforestepexit"
58
58
)
59
+ const (
60
+ // CredsDir is the directory where credentials are placed to meet the legacy credentials
61
+ // helpers image (aka "creds-init") contract
62
+ CredsDir = "/tekton/creds" // #nosec
63
+ )
59
64
60
65
// DebugBeforeStepError is an error means mark before step breakpoint failure
61
66
type DebugBeforeStepError string
You can’t perform that action at this time.
0 commit comments