diff --git a/client/cmd/job/run_input.go b/client/cmd/job/run_input.go index ec05dbf6c8..a83a2af523 100644 --- a/client/cmd/job/run_input.go +++ b/client/cmd/job/run_input.go @@ -158,7 +158,7 @@ func (j *jobRunInputCommand) writeJobResponseSecretToFile( ) error { // write all secrets into a file secretsFileContent := "" - secretsFileContent, keysWithUnsubstitutedValue := ConstructConfigEnvSourcingContent(jobResponse.Envs) + secretsFileContent, keysWithUnsubstitutedValue := ConstructConfigEnvSourcingContent(jobResponse.Secrets) j.keysWithUnsubstitutedValue = append(j.keysWithUnsubstitutedValue, keysWithUnsubstitutedValue...) filePath := filepath.Join(dirPath, typeSecretFileName)