Stabilize forgejo namespace auth and secrets
This commit is contained in:
parent
5c0a9b3f54
commit
5b09f3a742
8 changed files with 59 additions and 49 deletions
|
|
@ -197,6 +197,10 @@ func (d *Dispatcher) LaunchRunner(ctx context.Context, req LaunchRequest) (strin
|
|||
args = append(args, "--", "/bin/sh", "-c", script)
|
||||
|
||||
cmd := exec.CommandContext(ctx, d.opts.BinaryPath, args...)
|
||||
// The Linux `nsc run` path uses the CLI auth flow. Keep using the service
|
||||
// account's refreshed Namespace login session instead of forcing the
|
||||
// short-lived NSC_TOKEN_FILE bearer token into CLI requests.
|
||||
cmd.Env = nscCLIEnv()
|
||||
var buf bytes.Buffer
|
||||
cmd.Stdout = &buf
|
||||
cmd.Stderr = &buf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue