Skip to content

Commit b066d13

Browse files
committed
Create Run with good defaults for unprivileged users
It fixes `tkn-pac resolv` for a user without access to the pipelines-as-code namespace.
1 parent 44e2d06 commit b066d13

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/params/run.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ func New() *Run {
7070
return &Run{
7171
Info: info.Info{
7272
Event: &info.Event{},
73-
Pac: &info.PacOpts{},
73+
Pac: &info.PacOpts{
74+
ApplicationName: info.PACApplicationName,
75+
HubURL: info.HubURL,
76+
},
7477
},
7578
}
7679
}

0 commit comments

Comments
 (0)