mirror of
https://github.com/docker/login-action.git
synced 2026-10-09 00:56:21 +02:00
chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -1,4 +1,4 @@
|
||||
require('./sourcemap-register.js');(()=>{var i={76846:function(i,d,p){"use strict";var y=this&&this.__createBinding||(Object.create?function(i,d,p,y){if(y===undefined)y=p;var v=Object.getOwnPropertyDescriptor(d,p);if(!v||("get"in v?!d.__esModule:v.writable||v.configurable)){v={enumerable:true,get:function(){return d[p]}}}Object.defineProperty(i,y,v)}:function(i,d,p,y){if(y===undefined)y=p;i[y]=d[p]});var v=this&&this.__exportStar||function(i,d){for(var p in i)if(p!=="default"&&!Object.prototype.hasOwnProperty.call(d,p))y(d,i,p)};Object.defineProperty(d,"__esModule",{value:true});const D=p(64487);v(p(13776),d);v(p(45655),d);v(p(64487),d);const M=new D.DefaultArtifactClient;d["default"]=M},35592:(i,d,p)=>{"use strict";Object.defineProperty(d,"__esModule",{value:true});d.Timestamp=void 0;const y=p(68886);const v=p(68886);const D=p(68886);const M=p(68886);const U=p(68886);const j=p(68886);const V=p(68886);class Timestamp$Type extends V.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){const i=this.create();const d=Date.now();i.seconds=j.PbLong.from(Math.floor(d/1e3)).toString();i.nanos=d%1e3*1e6;return i}toDate(i){return new Date(j.PbLong.from(i.seconds).toNumber()*1e3+Math.ceil(i.nanos/1e6))}fromDate(i){const d=this.create();const p=i.getTime();d.seconds=j.PbLong.from(Math.floor(p/1e3)).toString();d.nanos=p%1e3*1e6;return d}internalJsonWrite(i,d){let p=j.PbLong.from(i.seconds).toNumber()*1e3;if(p<Date.parse("0001-01-01T00:00:00Z")||p>Date.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(i.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let y="Z";if(i.nanos>0){let d=(i.nanos+1e9).toString().substring(1);if(d.substring(3)==="000000")y="."+d.substring(0,3)+"Z";else if(d.substring(6)==="000")y="."+d.substring(0,6)+"Z";else y="."+d+"Z"}return new Date(p).toISOString().replace(".000Z",y)}internalJsonRead(i,d,p){if(typeof i!=="string")throw new Error("Unable to parse Timestamp from JSON "+(0,U.typeofJsonValue)(i)+".");let y=i.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!y)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let v=Date.parse(y[1]+"-"+y[2]+"-"+y[3]+"T"+y[4]+":"+y[5]+":"+y[6]+(y[8]?y[8]:"Z"));if(Number.isNaN(v))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(v<Date.parse("0001-01-01T00:00:00Z")||v>Date.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(!p)p=this.create();p.seconds=j.PbLong.from(v/1e3).toString();p.nanos=0;if(y[7])p.nanos=parseInt("1"+y[7]+"0".repeat(9-y[7].length))-1e9;return p}create(i){const d={seconds:"0",nanos:0};globalThis.Object.defineProperty(d,M.MESSAGE_TYPE,{enumerable:false,value:this});if(i!==undefined)(0,D.reflectionMergePartial)(this,d,i);return d}internalBinaryRead(i,d,p,y){let D=y!==null&&y!==void 0?y:this.create(),M=i.pos+d;while(i.pos<M){let[d,y]=i.tag();switch(d){case 1:D.seconds=i.int64().toString();break;case 2:D.nanos=i.int32();break;default:let M=p.readUnknownField;if(M==="throw")throw new globalThis.Error(`Unknown field ${d} (wire type ${y}) for ${this.typeName}`);let U=i.skip(y);if(M!==false)(M===true?v.UnknownFieldHandler.onRead:M)(this.typeName,D,d,y,U)}}return D}internalBinaryWrite(i,d,p){if(i.seconds!=="0")d.tag(1,y.WireType.Varint).int64(i.seconds);if(i.nanos!==0)d.tag(2,y.WireType.Varint).int32(i.nanos);let D=p.writeUnknownFields;if(D!==false)(D==true?v.UnknownFieldHandler.onWrite:D)(this.typeName,i,d);return d}}d.Timestamp=new Timestamp$Type},78806:(i,d,p)=>{"use strict";Object.defineProperty(d,"__esModule",{value:true});d.BytesValue=d.StringValue=d.BoolValue=d.UInt32Value=d.Int32Value=d.UInt64Value=d.Int64Value=d.FloatValue=d.DoubleValue=void 0;const y=p(68886);const v=p(68886);const D=p(68886);const M=p(68886);const U=p(68886);const j=p(68886);const V=p(68886);class DoubleValue$Type extends V.MessageType{constructor(){super("google.protobuf.DoubleValue",[{no:1,name:"value",kind:"scalar",T:1}])}internalJsonWrite(i,d){return this.refJsonWriter.scalar(2,i.value,"value",false,true)}internalJsonRead(i,d,p){if(!p)p=this.create();p.value=this.refJsonReader.scalar(i,1,undefined,"value");return p}create(i){const d={value:0};globalThis.Object.defineProperty(d,j.MESSAGE_TYPE,{enumerable:false,value:this});if(i!==undefined)(0,U.reflectionMergePartial)(this,d,i);return d}internalBinaryRead(i,d,p,y){let v=y!==null&&y!==void 0?y:this.create(),D=i.pos+d;while(i.pos<D){let[d,y]=i.tag();switch(d){case 1:v.value=i.double();break;default:let D=p.readUnknownField;if(D==="throw")throw new globalThis.Error(`Unknown field ${d} (wire type ${y}) for ${this.typeName}`);let U=i.skip(y);Line truncated
|
||||
require('./sourcemap-register.js');(()=>{var i={76846:function(i,d,p){"use strict";var y=this&&this.__createBinding||(Object.create?function(i,d,p,y){if(y===undefined)y=p;var v=Object.getOwnPropertyDescriptor(d,p);if(!v||("get"in v?!d.__esModule:v.writable||v.configurable)){v={enumerable:true,get:function(){return d[p]}}}Object.defineProperty(i,y,v)}:function(i,d,p,y){if(y===undefined)y=p;i[y]=d[p]});var v=this&&this.__exportStar||function(i,d){for(var p in i)if(p!=="default"&&!Object.prototype.hasOwnProperty.call(d,p))y(d,i,p)};Object.defineProperty(d,"__esModule",{value:true});const D=p(64487);v(p(13776),d);v(p(45655),d);v(p(64487),d);const M=new D.DefaultArtifactClient;d["default"]=M},35592:(i,d,p)=>{"use strict";Object.defineProperty(d,"__esModule",{value:true});d.Timestamp=void 0;const y=p(68886);const v=p(68886);const D=p(68886);const M=p(68886);const U=p(68886);const j=p(68886);const V=p(68886);class Timestamp$Type extends V.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){const i=this.create();const d=Date.now();i.seconds=j.PbLong.from(Math.floor(d/1e3)).toString();i.nanos=d%1e3*1e6;return i}toDate(i){return new Date(j.PbLong.from(i.seconds).toNumber()*1e3+Math.ceil(i.nanos/1e6))}fromDate(i){const d=this.create();const p=i.getTime();d.seconds=j.PbLong.from(Math.floor(p/1e3)).toString();d.nanos=p%1e3*1e6;return d}internalJsonWrite(i,d){let p=j.PbLong.from(i.seconds).toNumber()*1e3;if(p<Date.parse("0001-01-01T00:00:00Z")||p>Date.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(i.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let y="Z";if(i.nanos>0){let d=(i.nanos+1e9).toString().substring(1);if(d.substring(3)==="000000")y="."+d.substring(0,3)+"Z";else if(d.substring(6)==="000")y="."+d.substring(0,6)+"Z";else y="."+d+"Z"}return new Date(p).toISOString().replace(".000Z",y)}internalJsonRead(i,d,p){if(typeof i!=="string")throw new Error("Unable to parse Timestamp from JSON "+(0,U.typeofJsonValue)(i)+".");let y=i.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!y)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let v=Date.parse(y[1]+"-"+y[2]+"-"+y[3]+"T"+y[4]+":"+y[5]+":"+y[6]+(y[8]?y[8]:"Z"));if(Number.isNaN(v))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(v<Date.parse("0001-01-01T00:00:00Z")||v>Date.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(!p)p=this.create();p.seconds=j.PbLong.from(v/1e3).toString();p.nanos=0;if(y[7])p.nanos=parseInt("1"+y[7]+"0".repeat(9-y[7].length))-1e9;return p}create(i){const d={seconds:"0",nanos:0};globalThis.Object.defineProperty(d,M.MESSAGE_TYPE,{enumerable:false,value:this});if(i!==undefined)(0,D.reflectionMergePartial)(this,d,i);return d}internalBinaryRead(i,d,p,y){let D=y!==null&&y!==void 0?y:this.create(),M=i.pos+d;while(i.pos<M){let[d,y]=i.tag();switch(d){case 1:D.seconds=i.int64().toString();break;case 2:D.nanos=i.int32();break;default:let M=p.readUnknownField;if(M==="throw")throw new globalThis.Error(`Unknown field ${d} (wire type ${y}) for ${this.typeName}`);let U=i.skip(y);if(M!==false)(M===true?v.UnknownFieldHandler.onRead:M)(this.typeName,D,d,y,U)}}return D}internalBinaryWrite(i,d,p){if(i.seconds!=="0")d.tag(1,y.WireType.Varint).int64(i.seconds);if(i.nanos!==0)d.tag(2,y.WireType.Varint).int32(i.nanos);let D=p.writeUnknownFields;if(D!==false)(D==true?v.UnknownFieldHandler.onWrite:D)(this.typeName,i,d);return d}}d.Timestamp=new Timestamp$Type},78806:(i,d,p)=>{"use strict";Object.defineProperty(d,"__esModule",{value:true});d.BytesValue=d.StringValue=d.BoolValue=d.UInt32Value=d.Int32Value=d.UInt64Value=d.Int64Value=d.FloatValue=d.DoubleValue=void 0;const y=p(68886);const v=p(68886);const D=p(68886);const M=p(68886);const U=p(68886);const j=p(68886);const V=p(68886);class DoubleValue$Type extends V.MessageType{constructor(){super("google.protobuf.DoubleValue",[{no:1,name:"value",kind:"scalar",T:1}])}internalJsonWrite(i,d){return this.refJsonWriter.scalar(2,i.value,"value",false,true)}internalJsonRead(i,d,p){if(!p)p=this.create();p.value=this.refJsonReader.scalar(i,1,undefined,"value");return p}create(i){const d={value:0};globalThis.Object.defineProperty(d,j.MESSAGE_TYPE,{enumerable:false,value:this});if(i!==undefined)(0,U.reflectionMergePartial)(this,d,i);return d}internalBinaryRead(i,d,p,y){let v=y!==null&&y!==void 0?y:this.create(),D=i.pos+d;while(i.pos<D){let[d,y]=i.tag();switch(d){case 1:v.value=i.double();break;default:let D=p.readUnknownField;if(D==="throw")throw new globalThis.Error(`Unknown field ${d} (wire type ${y}) for ${this.typeName}`);let U=i.skip(y);Line truncated
|
||||
/**
|
||||
* Archiver Vending
|
||||
*
|
||||
@@ -99,5 +99,5 @@ const y=p(79896);const v=p(70857);const D=p(16928);const M=p(76982);const U={fs:
|
||||
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
|
||||
* @copyright (c) 2014 Chris Talkington, contributors.
|
||||
*/
|
||||
var y=p(39023).inherits;var v=p(47544).ZipArchiveOutputStream;var D=p(47544).ZipArchiveEntry;var M=p(53296);var U=i.exports=function(i){if(!(this instanceof U)){return new U(i)}i=this.options=i||{};i.zlib=i.zlib||{};v.call(this,i);if(typeof i.level==="number"&&i.level>=0){i.zlib.level=i.level;delete i.level}if(!i.forceZip64&&typeof i.zlib.level==="number"&&i.zlib.level===0){i.store=true}i.namePrependSlash=i.namePrependSlash||false;if(i.comment&&i.comment.length>0){this.setComment(i.comment)}};y(U,v);U.prototype._normalizeFileData=function(i){i=M.defaults(i,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var d=i.type==="directory";var p=i.type==="symlink";if(i.name){i.name=M.sanitizePath(i.name);if(!p&&i.name.slice(-1)==="/"){d=true;i.type="directory"}else if(d){i.name+="/"}}if(d||p){i.store=true}i.date=M.dateify(i.date);return i};U.prototype.entry=function(i,d,p){if(typeof p!=="function"){p=this._emitErrorCallback.bind(this)}d=this._normalizeFileData(d);if(d.type!=="file"&&d.type!=="directory"&&d.type!=="symlink"){p(new Error(d.type+" entries not currently supported"));return}if(typeof d.name!=="string"||d.name.length===0){p(new Error("entry name must be a non-empty string value"));return}if(d.type==="symlink"&&typeof d.linkname!=="string"){p(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var y=new D(d.name);y.setTime(d.date,this.options.forceLocalTime);if(d.namePrependSlash){y.setName(d.name,true)}if(d.store){y.setMethod(0)}if(d.comment.length>0){y.setComment(d.comment)}if(d.type==="symlink"&&typeof d.mode!=="number"){d.mode=40960}if(typeof d.mode==="number"){if(d.type==="symlink"){d.mode|=40960}y.setUnixMode(d.mode)}if(d.type==="symlink"&&typeof d.linkname==="string"){i=Buffer.from(d.linkname)}return v.prototype.entry.call(this,y,i,p)};U.prototype.finalize=function(){this.finish()}},94258:function(i,d,p){"use strict";var y=this&&this.__createBinding||(Object.create?function(i,d,p,y){if(y===undefined)y=p;var v=Object.getOwnPropertyDescriptor(d,p);if(!v||("get"in v?!d.__esModule:v.writable||v.configurable)){v={enumerable:true,get:function(){return d[p]}}}Object.defineProperty(i,y,v)}:function(i,d,p,y){if(y===undefined)y=p;i[y]=d[p]});var v=this&&this.__setModuleDefault||(Object.create?function(i,d){Object.defineProperty(i,"default",{enumerable:true,value:d})}:function(i,d){i["default"]=d});var D=this&&this.__importStar||function(){var ownKeys=function(i){ownKeys=Object.getOwnPropertyNames||function(i){var d=[];for(var p in i)if(Object.prototype.hasOwnProperty.call(i,p))d[d.length]=p;return d};return ownKeys(i)};return function(i){if(i&&i.__esModule)return i;var d={};if(i!=null)for(var p=ownKeys(i),D=0;D<p.length;D++)if(p[D]!=="default")y(d,i,p[D]);v(d,i);return d}}();var M=this&&this.__awaiter||function(i,d,p,y){function adopt(i){return i instanceof p?i:new p((function(d){d(i)}))}return new(p||(p=Promise))((function(p,v){function fulfilled(i){try{step(y.next(i))}catch(i){v(i)}}function rejected(i){try{step(y["throw"](i))}catch(i){v(i)}}function step(i){i.done?p(i.value):adopt(i.value).then(fulfilled,rejected)}step((y=y.apply(i,d||[])).next())}))};Object.defineProperty(d,"__esModule",{value:true});d.getRegistriesData=d.getAccountIDs=d.getRegion=d.isPubECR=d.isECR=void 0;const U=D(p(37484));const j=p(28249);const V=p(29821);const K=p(61279);const ee=p(81970);const te=p(3669);const re=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.com(.cn)?))(\/([^:]+)(:.+)?)?$/;const ne=/public\.ecr\.aws|ecr-public\.aws\.com/;const isECR=i=>re.test(i)||(0,d.isPubECR)(i);d.isECR=isECR;const isPubECR=i=>ne.test(i);d.isPubECR=isPubECR;const getRegion=i=>{if((0,d.isPubECR)(i)){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}const p=i.match(re);if(!p){return""}return p[4]};d.getRegion=getRegion;const getAccountIDs=i=>{if((0,d.isPubECR)(i)){return[]}const p=i.match(re);if(!p){return[]}const y=[p[2]];if(process.env.AWS_ACCOUNT_IDS){y.push(...process.env.AWS_ACCOUNT_IDS.split(","))}return y.filter(((i,d)=>y.indexOf(i)===d))};d.getAccountIDs=getAccountIDs;const getRegistriesData=(i,p,y)=>M(void 0,void 0,void 0,(function*(){const v=(0,d.getRegion)(i);const D=(0,d.getAccountIDs)(i);const M={};if(D.length>0){U.debug(`Requesting AWS ECR auth token for ${D.join(", ")}`);M["registryIds"]=D}let re;const ne=process.env.http_proxy||process.env.HTTP_PROXY||"";if(ne){U.debug(`Using http proxy ${ne}`);re=new ee.HttpProxyAgent(ne)}let ie;const se=process.env.https_proxy||process.env.HTTPS_PROXY||"";if(se){U.debug(`Using https proxy ${se}`);ie=new te.HttpsProxyAgent(se)}const ae=p&&y?{accessKeyId:p,secretAccessKey:y}:undefined;if((0,d.isPubECR)(i)){U.info(`AWS Public ECR detected with ${v} region`);const i=new V.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:ae,region:v,requestHandler:new K.NodeHttpHandler({httpAgent:re,httpsAgent:ie})});const d=yield i.Line truncated
|
||||
var y=p(39023).inherits;var v=p(47544).ZipArchiveOutputStream;var D=p(47544).ZipArchiveEntry;var M=p(53296);var U=i.exports=function(i){if(!(this instanceof U)){return new U(i)}i=this.options=i||{};i.zlib=i.zlib||{};v.call(this,i);if(typeof i.level==="number"&&i.level>=0){i.zlib.level=i.level;delete i.level}if(!i.forceZip64&&typeof i.zlib.level==="number"&&i.zlib.level===0){i.store=true}i.namePrependSlash=i.namePrependSlash||false;if(i.comment&&i.comment.length>0){this.setComment(i.comment)}};y(U,v);U.prototype._normalizeFileData=function(i){i=M.defaults(i,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var d=i.type==="directory";var p=i.type==="symlink";if(i.name){i.name=M.sanitizePath(i.name);if(!p&&i.name.slice(-1)==="/"){d=true;i.type="directory"}else if(d){i.name+="/"}}if(d||p){i.store=true}i.date=M.dateify(i.date);return i};U.prototype.entry=function(i,d,p){if(typeof p!=="function"){p=this._emitErrorCallback.bind(this)}d=this._normalizeFileData(d);if(d.type!=="file"&&d.type!=="directory"&&d.type!=="symlink"){p(new Error(d.type+" entries not currently supported"));return}if(typeof d.name!=="string"||d.name.length===0){p(new Error("entry name must be a non-empty string value"));return}if(d.type==="symlink"&&typeof d.linkname!=="string"){p(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var y=new D(d.name);y.setTime(d.date,this.options.forceLocalTime);if(d.namePrependSlash){y.setName(d.name,true)}if(d.store){y.setMethod(0)}if(d.comment.length>0){y.setComment(d.comment)}if(d.type==="symlink"&&typeof d.mode!=="number"){d.mode=40960}if(typeof d.mode==="number"){if(d.type==="symlink"){d.mode|=40960}y.setUnixMode(d.mode)}if(d.type==="symlink"&&typeof d.linkname==="string"){i=Buffer.from(d.linkname)}return v.prototype.entry.call(this,y,i,p)};U.prototype.finalize=function(){this.finish()}},94258:function(i,d,p){"use strict";var y=this&&this.__createBinding||(Object.create?function(i,d,p,y){if(y===undefined)y=p;var v=Object.getOwnPropertyDescriptor(d,p);if(!v||("get"in v?!d.__esModule:v.writable||v.configurable)){v={enumerable:true,get:function(){return d[p]}}}Object.defineProperty(i,y,v)}:function(i,d,p,y){if(y===undefined)y=p;i[y]=d[p]});var v=this&&this.__setModuleDefault||(Object.create?function(i,d){Object.defineProperty(i,"default",{enumerable:true,value:d})}:function(i,d){i["default"]=d});var D=this&&this.__importStar||function(){var ownKeys=function(i){ownKeys=Object.getOwnPropertyNames||function(i){var d=[];for(var p in i)if(Object.prototype.hasOwnProperty.call(i,p))d[d.length]=p;return d};return ownKeys(i)};return function(i){if(i&&i.__esModule)return i;var d={};if(i!=null)for(var p=ownKeys(i),D=0;D<p.length;D++)if(p[D]!=="default")y(d,i,p[D]);v(d,i);return d}}();var M=this&&this.__awaiter||function(i,d,p,y){function adopt(i){return i instanceof p?i:new p((function(d){d(i)}))}return new(p||(p=Promise))((function(p,v){function fulfilled(i){try{step(y.next(i))}catch(i){v(i)}}function rejected(i){try{step(y["throw"](i))}catch(i){v(i)}}function step(i){i.done?p(i.value):adopt(i.value).then(fulfilled,rejected)}step((y=y.apply(i,d||[])).next())}))};Object.defineProperty(d,"__esModule",{value:true});d.getRegistriesData=d.getAccountIDs=d.getRegion=d.isPubECR=d.isECR=void 0;const U=D(p(37484));const j=p(28249);const V=p(29821);const K=p(61279);const ee=p(81970);const te=p(3669);const re=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.com(.cn)?))(\/([^:]+)(:.+)?)?$/;const ne=/public\.ecr\.aws|ecr-public\.aws\.com/;const isECR=i=>re.test(i)||(0,d.isPubECR)(i);d.isECR=isECR;const isPubECR=i=>ne.test(i);d.isPubECR=isPubECR;const getRegion=i=>{if((0,d.isPubECR)(i)){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}const p=i.match(re);if(!p){return""}return p[4]};d.getRegion=getRegion;const getAccountIDs=i=>{if((0,d.isPubECR)(i)){return[]}const p=i.match(re);if(!p){return[]}const y=[p[2]];if(process.env.AWS_ACCOUNT_IDS){y.push(...process.env.AWS_ACCOUNT_IDS.split(","))}return y.filter(((i,d)=>y.indexOf(i)===d))};d.getAccountIDs=getAccountIDs;const getRegistriesData=(i,p,y)=>M(void 0,void 0,void 0,(function*(){const v=(0,d.getRegion)(i);const D=(0,d.getAccountIDs)(i);const M={};if(D.length>0){U.debug(`Requesting AWS ECR auth token for ${D.join(", ")}`);M["registryIds"]=D}let re;const ne=process.env.http_proxy||process.env.HTTP_PROXY||"";if(ne){U.debug(`Using http proxy ${ne}`);re=new ee.HttpProxyAgent(ne)}let ie;const se=process.env.https_proxy||process.env.HTTPS_PROXY||"";if(se){U.debug(`Using https proxy ${se}`);ie=new te.HttpsProxyAgent(se)}const ae=p&&y?{accessKeyId:p,secretAccessKey:y}:undefined;if((0,d.isPubECR)(i)){U.info(`AWS Public ECR detected with ${v} region`);const i=new V.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:ae,region:v,requestHandler:new K.NodeHttpHandler({httpAgent:re,httpsAgent:ie})});const d=yield i.Line truncated
|
||||
//# sourceMappingURL=index.js.map
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","names":["__createBinding","this","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__exportStar","exports","p","prototype","hasOwnProperty","call","value","client_1","__webpack_require__","client","DefaultArtifactClient","Timestamp","runtime_1","runtime_2","runtime_3","runtime_4","runtime_5","runtime_6","runtime_7","Timestamp$Type","MessageType","constructor","super","no","name","kind","T","now","msg","ms","Date","seconds","PbLong","from","Math","floor","toString","nanos","toDate","message","toNumber","ceil","fromDate","date","getTime","internalJsonWrite","options","parse","Error","z","nanosStr","substring","toISOString","replace","internalJsonRead","json","target","typeofJsonValue","matches","match","Number","isNaN","globalThis","parseInt","repeat","length","MESSAGE_TYPE","reflectionMergePartial","internalBinaryRead","reader","end","pos","fieldNo","wireType","tag","int64","int32","u","readUnknownField","typeName","d","skip","UnknownFieldHandler","onRead","internalBinaryWrite","writer","WireType","Varint","writeUnknownFields","onWrite","BytesValue","StringValue","BoolValue","UInt32Value","Int32Value","UInt64Value","Int64Value","FloatValue","DoubleValue","DoubleValue$Type","refJsonWriter","scalar","refJsonReader","double","Bit64","FloatValue$Type","float","Bit32","Int64Value$Type","ScalarType","INT64","LongType","STRING","UInt64Value$Type","UINT64","uint64","Int32Value$Type","UInt32Value$Type","uint32","BoolValue$Type","bool","StringValue$Type","string","LengthDelimited","BytesValue$Type","Uint8Array","bytes","ArtifactService","DeleteArtifactResponse","DeleteArtifactRequest","GetSignedArtifactURLResponse","GetSignedArtifactURLRequest","ListArtifactsResponse_MonolithArtifact","ListArtifactsResponse","ListArtifactsRequest","FinalizeArtifactResponse","FinalizeArtifactRequest","CreateArtifactResponse","CreateArtifactRequest","FinalizeMigratedArtifactResponse","FinalizeMigratedArtifactRequest","MigrateArtifactResponse","MigrateArtifactRequest","runtime_rpc_1","wrappers_1","wrappers_2","timestamp_1","MigrateArtifactRequest$Type","workflowRunBackendId","expiresAt","fork","join","MigrateArtifactResponse$Type","ok","signedUploadUrl","FinalizeMigratedArtifactRequest$Type","size","FinalizeMigratedArtifactResponse$Type","artifactId","CreateArtifactRequest$Type","workflowJobRunBackendId","version","CreateArtifactResponse$Type","FinalizeArtifactRequest$Type","hash","FinalizeArtifactResponse$Type","ListArtifactsRequest$Type","nameFilter","idFilter","ListArtifactsResponse$Type","artifacts","push","i","ListArtifactsResponse_MonolithArtifact$Type","databaseId","createdAt","digest","GetSignedArtifactURLRequest$Type","GetSignedArtifactURLResponse$Type","signedUrl","DeleteArtifactRequest$Type","DeleteArtifactResponse$Type","ServiceType","I","O","ArtifactServiceClientProtobuf","ArtifactServiceClientJSON","artifact_1","rpc","CreateArtifact","bind","FinalizeArtifact","ListArtifacts","GetSignedArtifactURL","DeleteArtifact","request","data","toJson","useProtoFieldName","emitDefaultValues","promise","then","fromJson","ignoreUnknownFields","toBinary","fromBinary","__awaiter","thisArg","_arguments","P","generator","adopt","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","apply","__rest","s","t","indexOf","getOwnPropertySymbols","propertyIsEnumerable","core_1","config_1","upload_artifact_1","download_artifact_1","delete_artifact_1","get_artifact_1","list_artifacts_1","errors_1","uploadArtifact","files","rootDirectory","isGhes","GHESNotSupportedError","error","warning","downloadArtifact","findBy","repositoryOwner","repositoryName","token","downloadOptions","downloadArtifactPublic","downloadArtifactInternal","listArtifacts","workflowRunId","listArtifactsPublic","latest","listArtifactsInternal","getArtifact","artifactName","getArtifactPublic","getArtifactInternal","deleteArtifact","deleteArtifactPublic","deleteArtifactInternal","github_1","user_agent_1","retry_options_1","utils_1","plugin_request_log_1","plugin_retry_1","artifact_twirp_client_1","util_1","generated_1","_a","retryOpts","requestOpts","getRetryOptions","defaults","opts","log","userAgent","getUserAgentString","previews","retry","github","getOctokit","requestLog","getArtifactResp","deleteArtifactResp","rest","actions","owner","repo","artifact_id","artifact","id","status","InvalidResponseError","headers","artifactClient","internalArtifactTwirpClient","getBackendIdsFromToken","listReq","listRes","ArtifactNotFoundError","sort","a","b","debug","req","res","info","__setModuleDefault","v","__importStar","mod","__importDefault","default","streamExtractExternal","promises_1","crypto","stream","core","httpClient","unzip_stream_1","scrubQueryParameters","url","parsed","URL","search","exists","path","access","code","streamExtract","directory","retryCount","setTimeout","HttpClient","response","statusCode","statusMessLine truncated
|
||||
{"version":3,"file":"index.js","names":["__createBinding","this","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__exportStar","exports","p","prototype","hasOwnProperty","call","value","client_1","__webpack_require__","client","DefaultArtifactClient","Timestamp","runtime_1","runtime_2","runtime_3","runtime_4","runtime_5","runtime_6","runtime_7","Timestamp$Type","MessageType","constructor","super","no","name","kind","T","now","msg","ms","Date","seconds","PbLong","from","Math","floor","toString","nanos","toDate","message","toNumber","ceil","fromDate","date","getTime","internalJsonWrite","options","parse","Error","z","nanosStr","substring","toISOString","replace","internalJsonRead","json","target","typeofJsonValue","matches","match","Number","isNaN","globalThis","parseInt","repeat","length","MESSAGE_TYPE","reflectionMergePartial","internalBinaryRead","reader","end","pos","fieldNo","wireType","tag","int64","int32","u","readUnknownField","typeName","d","skip","UnknownFieldHandler","onRead","internalBinaryWrite","writer","WireType","Varint","writeUnknownFields","onWrite","BytesValue","StringValue","BoolValue","UInt32Value","Int32Value","UInt64Value","Int64Value","FloatValue","DoubleValue","DoubleValue$Type","refJsonWriter","scalar","refJsonReader","double","Bit64","FloatValue$Type","float","Bit32","Int64Value$Type","ScalarType","INT64","LongType","STRING","UInt64Value$Type","UINT64","uint64","Int32Value$Type","UInt32Value$Type","uint32","BoolValue$Type","bool","StringValue$Type","string","LengthDelimited","BytesValue$Type","Uint8Array","bytes","ArtifactService","DeleteArtifactResponse","DeleteArtifactRequest","GetSignedArtifactURLResponse","GetSignedArtifactURLRequest","ListArtifactsResponse_MonolithArtifact","ListArtifactsResponse","ListArtifactsRequest","FinalizeArtifactResponse","FinalizeArtifactRequest","CreateArtifactResponse","CreateArtifactRequest","FinalizeMigratedArtifactResponse","FinalizeMigratedArtifactRequest","MigrateArtifactResponse","MigrateArtifactRequest","runtime_rpc_1","wrappers_1","wrappers_2","timestamp_1","MigrateArtifactRequest$Type","workflowRunBackendId","expiresAt","fork","join","MigrateArtifactResponse$Type","ok","signedUploadUrl","FinalizeMigratedArtifactRequest$Type","size","FinalizeMigratedArtifactResponse$Type","artifactId","CreateArtifactRequest$Type","workflowJobRunBackendId","version","CreateArtifactResponse$Type","FinalizeArtifactRequest$Type","hash","FinalizeArtifactResponse$Type","ListArtifactsRequest$Type","nameFilter","idFilter","ListArtifactsResponse$Type","artifacts","push","i","ListArtifactsResponse_MonolithArtifact$Type","databaseId","createdAt","digest","GetSignedArtifactURLRequest$Type","GetSignedArtifactURLResponse$Type","signedUrl","DeleteArtifactRequest$Type","DeleteArtifactResponse$Type","ServiceType","I","O","ArtifactServiceClientProtobuf","ArtifactServiceClientJSON","artifact_1","rpc","CreateArtifact","bind","FinalizeArtifact","ListArtifacts","GetSignedArtifactURL","DeleteArtifact","request","data","toJson","useProtoFieldName","emitDefaultValues","promise","then","fromJson","ignoreUnknownFields","toBinary","fromBinary","__awaiter","thisArg","_arguments","P","generator","adopt","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","apply","__rest","s","t","indexOf","getOwnPropertySymbols","propertyIsEnumerable","core_1","config_1","upload_artifact_1","download_artifact_1","delete_artifact_1","get_artifact_1","list_artifacts_1","errors_1","uploadArtifact","files","rootDirectory","isGhes","GHESNotSupportedError","error","warning","downloadArtifact","findBy","repositoryOwner","repositoryName","token","downloadOptions","downloadArtifactPublic","downloadArtifactInternal","listArtifacts","workflowRunId","listArtifactsPublic","latest","listArtifactsInternal","getArtifact","artifactName","getArtifactPublic","getArtifactInternal","deleteArtifact","deleteArtifactPublic","deleteArtifactInternal","github_1","user_agent_1","retry_options_1","utils_1","plugin_request_log_1","plugin_retry_1","artifact_twirp_client_1","util_1","generated_1","_a","retryOpts","requestOpts","getRetryOptions","defaults","opts","log","userAgent","getUserAgentString","previews","retry","github","getOctokit","requestLog","getArtifactResp","deleteArtifactResp","rest","actions","owner","repo","artifact_id","artifact","id","status","InvalidResponseError","headers","artifactClient","internalArtifactTwirpClient","getBackendIdsFromToken","listReq","listRes","ArtifactNotFoundError","sort","a","b","debug","req","res","info","__setModuleDefault","v","__importStar","mod","__importDefault","default","streamExtractExternal","promises_1","crypto","stream","core","httpClient","unzip_stream_1","scrubQueryParameters","url","parsed","URL","search","exists","path","access","code","streamExtract","directory","retryCount","setTimeout","HttpClient","response","statusCode","statusMessLine truncated
|
||||
Reference in new issue
Block a user