Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Maga <markus@maga.se>
  • Loading branch information
Flydiverny committed Dec 20, 2021
1 parent e307f4e commit 0b36861
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/aws.ts
Expand Up @@ -58,10 +58,10 @@ export const getRegistriesData = async (registry: string, username?: string, pas
core.info(`AWS Public ECR detected with ${region} region`);
const ecrPublic = new ECRPUBLIC({
customUserAgent: 'docker-login-action',
credentials: {
credentials: "AWS_ACCESS_KEY_ID" in process.env ? {
accessKeyId: username || process.env.AWS_ACCESS_KEY_ID || '',
secretAccessKey: password || process.env.AWS_SECRET_ACCESS_KEY || ''
},
} : undefined,
region: region
});
const authTokenResponse = await ecrPublic.getAuthorizationToken(authTokenRequest);
Expand All @@ -81,10 +81,10 @@ export const getRegistriesData = async (registry: string, username?: string, pas
core.info(`AWS ECR detected with ${region} region`);
const ecr = new ECR({
customUserAgent: 'docker-login-action',
credentials: {
credentials: "AWS_ACCESS_KEY_ID" in process.env ? {
accessKeyId: username || process.env.AWS_ACCESS_KEY_ID || '',
secretAccessKey: password || process.env.AWS_SECRET_ACCESS_KEY || ''
},
} : undefined,
region: region
});
const authTokenResponse = await ecr.getAuthorizationToken(authTokenRequest);
Expand Down

0 comments on commit 0b36861

Please sign in to comment.