feat: add translate-env-variables option

This commit is contained in:
Tom Keller committed 2026-09-11 13:27:22 -07:00
1 parent 745a259f3b
commit febd088639
2 files changed
+5 -2

No files matched your search

+1
View File
@@ -119,6 +119,7 @@ describe('Configure AWS Credentials helpers', {}, () => {
process.env.ROLE_TO_ASSUME = 'arn:aws:iam::111111111111:role/ENV-ROLE';
helpers.translateEnvVariables();
expect(process.env['INPUT_ROLE-TO-ASSUME']).toBe('arn:aws:iam::111111111111:role/EXPLICIT-ROLE');
expect(core.info).not.toHaveBeenCalledWith('Translating ROLE_TO_ASSUME to input role-to-assume');
delete process.env.ROLE_TO_ASSUME;
delete process.env['INPUT_ROLE-TO-ASSUME'];
});