File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import * as core from '@actions/core' ;
22import * as exec from '@actions/exec' ;
3+ import { realpathSync } from 'node:fs' ;
34import { fileURLToPath } from 'node:url' ;
45
56/**
@@ -57,6 +58,6 @@ async function cleanup() {
5758export default cleanup ;
5859
5960/* istanbul ignore next */
60- if ( process . argv [ 1 ] === fileURLToPath ( import . meta. url ) ) {
61+ if ( realpathSync ( process . argv [ 1 ] ) === realpathSync ( fileURLToPath ( import . meta. url ) ) ) {
6162 cleanup ( ) ;
6263}
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { NodeHttpHandler } from '@aws-sdk/node-http-handler';
55import { fromHttp } from '@aws-sdk/credential-providers' ;
66import { ECRClient , GetAuthorizationTokenCommand } from '@aws-sdk/client-ecr' ;
77import { ECRPUBLICClient , GetAuthorizationTokenCommand as GetAuthorizationTokenCommandPublic } from '@aws-sdk/client-ecr-public' ;
8+ import { realpathSync } from 'node:fs' ;
89import { fileURLToPath } from 'node:url' ;
910
1011const ECR_LOGIN_GITHUB_ACTION_USER_AGENT = 'amazon-ecr-login-for-github-actions' ;
@@ -232,6 +233,6 @@ export {
232233} ;
233234
234235/* istanbul ignore next */
235- if ( process . argv [ 1 ] === fileURLToPath ( import . meta. url ) ) {
236+ if ( realpathSync ( process . argv [ 1 ] ) === realpathSync ( fileURLToPath ( import . meta. url ) ) ) {
236237 run ( ) ;
237238}
You can’t perform that action at this time.
0 commit comments