( provider: string, scopeId: string, secretId: string, )
| 664 | process.env.EXECUTOR_KEYCHAIN_SERVICE_NAME?.trim() || "executor"; |
| 665 | |
| 666 | const providerGet = async ( |
| 667 | provider: string, |
| 668 | scopeId: string, |
| 669 | secretId: string, |
| 670 | ): Promise<string | null> => { |
| 671 | if (provider === FILE_PROVIDER) { |
| 672 | return readScopedFileSecret(readAuthFile(resolveFileAuthPath()), scopeId, secretId); |
| 673 | } |
| 674 | if (provider === KEYCHAIN_PROVIDER) { |
| 675 | const oldProvider = makeKeychainProvider(`${keychainBaseServiceName()}/${scopeId}`); |
| 676 | return await Effect.runPromise(oldProvider.get(secretId as never)); |
| 677 | } |
| 678 | return null; |
| 679 | }; |
| 680 | |
| 681 | interface CollectedSecretValues { |
| 682 | readonly fileValues: Record<string, string>; |
no test coverage detected