mirror of
https://github.com/docker/login-action.git
synced 2026-10-07 12:01:56 +00:00
chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -103,5 +103,5 @@ const a=i(57147);const A=i(22037);const c=i(71017);const l=i(6113);const d={fs:a
|
||||
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
|
||||
* @copyright (c) 2014 Chris Talkington, contributors.
|
||||
*/
|
||||
var a=i(73837).inherits;var A=i(25445).ZipArchiveOutputStream;var c=i(25445).ZipArchiveEntry;var l=i(82072);var d=r.exports=function(r){if(!(this instanceof d)){return new d(r)}r=this.options=r||{};r.zlib=r.zlib||{};A.call(this,r);if(typeof r.level==="number"&&r.level>=0){r.zlib.level=r.level;delete r.level}if(!r.forceZip64&&typeof r.zlib.level==="number"&&r.zlib.level===0){r.store=true}r.namePrependSlash=r.namePrependSlash||false;if(r.comment&&r.comment.length>0){this.setComment(r.comment)}};a(d,A);d.prototype._normalizeFileData=function(r){r=l.defaults(r,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var s=r.type==="directory";var i=r.type==="symlink";if(r.name){r.name=l.sanitizePath(r.name);if(!i&&r.name.slice(-1)==="/"){s=true;r.type="directory"}else if(s){r.name+="/"}}if(s||i){r.store=true}r.date=l.dateify(r.date);return r};d.prototype.entry=function(r,s,i){if(typeof i!=="function"){i=this._emitErrorCallback.bind(this)}s=this._normalizeFileData(s);if(s.type!=="file"&&s.type!=="directory"&&s.type!=="symlink"){i(new Error(s.type+" entries not currently supported"));return}if(typeof s.name!=="string"||s.name.length===0){i(new Error("entry name must be a non-empty string value"));return}if(s.type==="symlink"&&typeof s.linkname!=="string"){i(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var a=new c(s.name);a.setTime(s.date,this.options.forceLocalTime);if(s.namePrependSlash){a.setName(s.name,true)}if(s.store){a.setMethod(0)}if(s.comment.length>0){a.setComment(s.comment)}if(s.type==="symlink"&&typeof s.mode!=="number"){s.mode=40960}if(typeof s.mode==="number"){if(s.type==="symlink"){s.mode|=40960}a.setUnixMode(s.mode)}if(s.type==="symlink"&&typeof s.linkname==="string"){r=Buffer.from(s.linkname)}return A.prototype.entry.call(this,a,r,i)};d.prototype.finalize=function(){this.finish()}},36949:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.getRegistriesData=s.getAccountIDs=s.getRegion=s.isPubECR=s.isECR=void 0;const d=c(i(42186));const u=i(8923);const p=i(42308);const g=i(20258);const h=i(23764);const C=i(77219);const y=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.com(.cn)?))(\/([^:]+)(:.+)?)?$/;const isECR=r=>y.test(r)||(0,s.isPubECR)(r);s.isECR=isECR;const isPubECR=r=>r==="public.ecr.aws";s.isPubECR=isPubECR;const getRegion=r=>{if((0,s.isPubECR)(r)){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}const i=r.match(y);if(!i){return""}return i[4]};s.getRegion=getRegion;const getAccountIDs=r=>{if((0,s.isPubECR)(r)){return[]}const i=r.match(y);if(!i){return[]}const a=[i[2]];if(process.env.AWS_ACCOUNT_IDS){a.push(...process.env.AWS_ACCOUNT_IDS.split(","))}return a.filter(((r,s)=>a.indexOf(r)===s))};s.getAccountIDs=getAccountIDs;const getRegistriesData=(r,i,a)=>l(void 0,void 0,void 0,(function*(){const A=(0,s.getRegion)(r);const c=(0,s.getAccountIDs)(r);const l={};if(c.length>0){d.debug(`Requesting AWS ECR auth token for ${c.join(", ")}`);l["registryIds"]=c}let y;const I=process.env.http_proxy||process.env.HTTP_PROXY||"";if(I){d.debug(`Using http proxy ${I}`);y=new h.HttpProxyAgent(I)}let B;const b=process.env.https_proxy||process.env.HTTPS_PROXY||"";if(b){d.debug(`Using https proxy ${b}`);B=new C.HttpsProxyAgent(b)}const Q=i&&a?{accessKeyId:i,secretAccessKey:a}:undefined;if((0,s.isPubECR)(r)){d.info(`AWS Public ECR detected with ${A} region`);const r=new p.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:Q,region:A,requestHandler:new g.NodeHttpHandler({httpAgent:y,httpsAgent:B})});const s=yield r.getAuthorizationToken(l);if(!s.authorizationData||!s.authorizationData.authorizationToken){throw new Error("Could not retrieve an authorization token from AWS Public ECR")}const i=Buffer.from(s.authorizationData.authorizationToken,"base64").toString("utf-8Line truncated
|
||||
var a=i(73837).inherits;var A=i(25445).ZipArchiveOutputStream;var c=i(25445).ZipArchiveEntry;var l=i(82072);var d=r.exports=function(r){if(!(this instanceof d)){return new d(r)}r=this.options=r||{};r.zlib=r.zlib||{};A.call(this,r);if(typeof r.level==="number"&&r.level>=0){r.zlib.level=r.level;delete r.level}if(!r.forceZip64&&typeof r.zlib.level==="number"&&r.zlib.level===0){r.store=true}r.namePrependSlash=r.namePrependSlash||false;if(r.comment&&r.comment.length>0){this.setComment(r.comment)}};a(d,A);d.prototype._normalizeFileData=function(r){r=l.defaults(r,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var s=r.type==="directory";var i=r.type==="symlink";if(r.name){r.name=l.sanitizePath(r.name);if(!i&&r.name.slice(-1)==="/"){s=true;r.type="directory"}else if(s){r.name+="/"}}if(s||i){r.store=true}r.date=l.dateify(r.date);return r};d.prototype.entry=function(r,s,i){if(typeof i!=="function"){i=this._emitErrorCallback.bind(this)}s=this._normalizeFileData(s);if(s.type!=="file"&&s.type!=="directory"&&s.type!=="symlink"){i(new Error(s.type+" entries not currently supported"));return}if(typeof s.name!=="string"||s.name.length===0){i(new Error("entry name must be a non-empty string value"));return}if(s.type==="symlink"&&typeof s.linkname!=="string"){i(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var a=new c(s.name);a.setTime(s.date,this.options.forceLocalTime);if(s.namePrependSlash){a.setName(s.name,true)}if(s.store){a.setMethod(0)}if(s.comment.length>0){a.setComment(s.comment)}if(s.type==="symlink"&&typeof s.mode!=="number"){s.mode=40960}if(typeof s.mode==="number"){if(s.type==="symlink"){s.mode|=40960}a.setUnixMode(s.mode)}if(s.type==="symlink"&&typeof s.linkname==="string"){r=Buffer.from(s.linkname)}return A.prototype.entry.call(this,a,r,i)};d.prototype.finalize=function(){this.finish()}},36949:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.getRegistriesData=s.getAccountIDs=s.getRegion=s.isPubECR=s.isECR=void 0;const d=c(i(42186));const u=i(8923);const p=i(42308);const g=i(20258);const h=i(23764);const C=i(77219);const y=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.com(.cn)?))(\/([^:]+)(:.+)?)?$/;const I=/public\.ecr\.aws|ecr-public\.aws\.com/;const isECR=r=>y.test(r)||(0,s.isPubECR)(r);s.isECR=isECR;const isPubECR=r=>I.test(r);s.isPubECR=isPubECR;const getRegion=r=>{if((0,s.isPubECR)(r)){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}const i=r.match(y);if(!i){return""}return i[4]};s.getRegion=getRegion;const getAccountIDs=r=>{if((0,s.isPubECR)(r)){return[]}const i=r.match(y);if(!i){return[]}const a=[i[2]];if(process.env.AWS_ACCOUNT_IDS){a.push(...process.env.AWS_ACCOUNT_IDS.split(","))}return a.filter(((r,s)=>a.indexOf(r)===s))};s.getAccountIDs=getAccountIDs;const getRegistriesData=(r,i,a)=>l(void 0,void 0,void 0,(function*(){const A=(0,s.getRegion)(r);const c=(0,s.getAccountIDs)(r);const l={};if(c.length>0){d.debug(`Requesting AWS ECR auth token for ${c.join(", ")}`);l["registryIds"]=c}let y;const I=process.env.http_proxy||process.env.HTTP_PROXY||"";if(I){d.debug(`Using http proxy ${I}`);y=new h.HttpProxyAgent(I)}let B;const b=process.env.https_proxy||process.env.HTTPS_PROXY||"";if(b){d.debug(`Using https proxy ${b}`);B=new C.HttpsProxyAgent(b)}const Q=i&&a?{accessKeyId:i,secretAccessKey:a}:undefined;if((0,s.isPubECR)(r)){d.info(`AWS Public ECR detected with ${A} region`);const r=new p.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:Q,region:A,requestHandler:new g.NodeHttpHandler({httpAgent:y,httpsAgent:B})});const s=yield r.getAuthorizationToken(l);if(!s.authorizationData||!s.authorizationData.authorizationToken){throw new Error("Could not retrieve an authorization token from AWS Public ECR")}const i=Buffer.from(s.authorizationData.authoriLine truncated
|
||||
//# sourceMappingURL=index.js.map
|
||||
Reference in new issue
Block a user