mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-11-30 11:44:23 +01:00
feat: add translate-env-variables option
This commit is contained in:
2 files changed
+5
-2
No files matched your search
@@ -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'];
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user