@cloudsnorkel/cdk-github-runners 0.5.5 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +391 -132
- package/API.md +108 -28
- package/README.md +6 -3
- package/lib/lambdas/delete-runner/index.js +1401 -167
- package/lib/lambdas/setup/index.html +11 -11
- package/lib/lambdas/setup/index.js +3 -3
- package/lib/lambdas/status/index.js +96 -150
- package/lib/lambdas/token-retriever/index.js +1372 -153
- package/lib/lambdas/update-lambda/index.js +4173 -3366
- package/lib/providers/codebuild.d.ts +18 -7
- package/lib/providers/codebuild.js +9 -10
- package/lib/providers/common.d.ts +15 -2
- package/lib/providers/common.js +26 -5
- package/lib/providers/fargate.d.ts +16 -5
- package/lib/providers/fargate.js +6 -7
- package/lib/providers/image-builders/codebuild.js +1 -1
- package/lib/providers/image-builders/container.js +2 -2
- package/lib/providers/image-builders/static.js +1 -1
- package/lib/providers/lambda.d.ts +16 -5
- package/lib/providers/lambda.js +8 -9
- package/lib/runner.d.ts +7 -0
- package/lib/runner.js +34 -7
- package/lib/secrets.js +1 -1
- package/package.json +8 -9
- package/setup/src/App.svelte +1 -1
|
@@ -5,24 +5,24 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Setup GitHub Runners</title>
|
|
7
7
|
<script type="module" crossorigin>
|
|
8
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const
|
|
9
|
-
and without any path. It should look something like <code>github.mycompany.com</code>.`,
|
|
8
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const p of n)if(p.type==="childList")for(const c of p.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function o(n){const p={};return n.integrity&&(p.integrity=n.integrity),n.referrerpolicy&&(p.referrerPolicy=n.referrerpolicy),n.crossorigin==="use-credentials"?p.credentials="include":n.crossorigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function i(n){if(n.ep)return;n.ep=!0;const p=o(n);fetch(n.href,p)}})();function Y(){}function Le(e){return e()}function Ce(){return Object.create(null)}function j(e){e.forEach(Le)}function Ue(e){return typeof e=="function"}function Be(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function De(e){return Object.keys(e).length===0}function l(e,t){e.appendChild(t)}function H(e,t,o){e.insertBefore(t,o||null)}function T(e){e.parentNode.removeChild(e)}function r(e){return document.createElement(e)}function I(e){return document.createTextNode(e)}function b(){return I(" ")}function Me(){return I("")}function $(e,t,o,i){return e.addEventListener(t,o,i),()=>e.removeEventListener(t,o,i)}function s(e,t,o){o==null?e.removeAttribute(t):e.getAttribute(t)!==o&&e.setAttribute(t,o)}function $e(e){return e===""?null:+e}function je(e){return Array.from(e.childNodes)}function ce(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function M(e,t){e.value=t==null?"":t}let ke;function ee(e){ke=e}const x=[],Se=[],ae=[],Te=[],qe=Promise.resolve();let be=!1;function Je(){be||(be=!0,qe.then(ze))}function ve(e){ae.push(e)}const he=new Set;let ue=0;function ze(){const e=ke;do{for(;ue<x.length;){const t=x[ue];ue++,ee(t),Ke(t.$$)}for(ee(null),x.length=0,ue=0;Se.length;)Se.pop()();for(let t=0;t<ae.length;t+=1){const o=ae[t];he.has(o)||(he.add(o),o())}ae.length=0}while(x.length);for(;Te.length;)Te.pop()();be=!1,he.clear(),ee(e)}function Ke(e){if(e.fragment!==null){e.update(),j(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ve)}}const We=new Set;function Fe(e,t){e&&e.i&&(We.delete(e),e.i(t))}function Ye(e,t,o,i){const{fragment:n,after_update:p}=e.$$;n&&n.m(t,o),i||ve(()=>{const c=e.$$.on_mount.map(Le).filter(Ue);e.$$.on_destroy?e.$$.on_destroy.push(...c):j(c),e.$$.on_mount=[]}),p.forEach(ve)}function Ze(e,t){const o=e.$$;o.fragment!==null&&(j(o.on_destroy),o.fragment&&o.fragment.d(t),o.on_destroy=o.fragment=null,o.ctx=[])}function Qe(e,t){e.$$.dirty[0]===-1&&(x.push(e),Je(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Ve(e,t,o,i,n,p,c,u=[-1]){const v=ke;ee(e);const a=e.$$={fragment:null,ctx:[],props:p,update:Y,not_equal:n,bound:Ce(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(v?v.$$.context:[])),callbacks:Ce(),dirty:u,skip_bound:!1,root:t.target||v.$$.root};c&&c(a.root);let h=!1;if(a.ctx=o?o(e,t.props||{},(g,f,...O)=>{const k=O.length?O[0]:f;return a.ctx&&n(a.ctx[g],a.ctx[g]=k)&&(!a.skip_bound&&a.bound[g]&&a.bound[g](k),h&&Qe(e,g)),f}):[],a.update(),h=!0,j(a.before_update),a.fragment=i?i(a.ctx):!1,t.target){if(t.hydrate){const g=je(t.target);a.fragment&&a.fragment.l(g),g.forEach(T)}else a.fragment&&a.fragment.c();t.intro&&Fe(e.$$.fragment),Ye(e,t.target,t.anchor,t.customElement),ze()}ee(v)}class Xe{$destroy(){Ze(this,1),this.$destroy=Y}$on(t,o){if(!Ue(o))return Y;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(o),()=>{const n=i.indexOf(o);n!==-1&&i.splice(n,1)}}$set(t){this.$$set&&!De(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function Oe(e){let t,o,i,n,p,c,u,v;return{c(){t=r("h3"),t.textContent="GitHub Enterprise Server Domain",o=b(),i=r("div"),n=r("p"),n.innerHTML=`Where is GitHub Enterprise Server hosted? Type in the domain without <code>https://</code>
|
|
9
|
+
and without any path. It should look something like <code>github.mycompany.com</code>.`,p=b(),c=r("input"),s(c,"class","form-control"),s(i,"class","px-3 py-3")},m(a,h){H(a,t,h),H(a,o,h),H(a,i,h),l(i,n),l(i,p),l(i,c),M(c,e[1]),u||(v=$(c,"input",e[15]),u=!0)},p(a,h){h&2&&c.value!==a[1]&&M(c,a[1])},d(a){a&&T(t),a&&T(o),a&&T(i),u=!1,v()}}}function He(e){let t,o,i,n,p,c,u,v,a,h,g,f,O,k,S,C,d,_,A,E,N;return{c(){t=r("h3"),t.textContent="Authentication Type",o=b(),i=r("div"),n=r("p"),n.textContent=`You can choose between creating a new app that will provide authentication for specific
|
|
10
10
|
repositories, or a personal access token that will provide access to all repositories
|
|
11
11
|
available to you. Apps are easier to set up and provide more fine-grained access control. If
|
|
12
|
-
you have previously created an app, you can choose to use an existing app.`,
|
|
13
|
-
scope enabled. Don't forget to also create a webhook as described in `),f=r("a"),f.textContent="SETUP_GITHUB.md",O=I("."),k=b(),S=r("input"),s(
|
|
14
|
-
permissions. Don't forget to set up the webhook and its secret as described in <a href="https://github.com/CloudSnorkel/cdk-github-runners/blob/main/SETUP_GITHUB.md">SETUP_GITHUB.md</a>.`,
|
|
12
|
+
you have previously created an app, you can choose to use an existing app.`,p=b(),c=r("div"),u=r("input"),v=b(),a=r("label"),a.innerHTML="New GitHub App <b>(recommended)</b>",h=b(),g=r("div"),f=r("input"),O=b(),k=r("label"),k.textContent="Existing GitHub App",S=b(),C=r("div"),d=r("input"),_=b(),A=r("label"),A.textContent="Personal Authentication Token",s(u,"class","form-check-input"),s(u,"type","radio"),u.__value="newApp",u.value=u.__value,s(u,"id","newApp"),e[13][1].push(u),s(a,"class","form-check-label"),s(a,"for","newApp"),s(c,"class","form-check"),s(f,"class","form-check-input"),s(f,"type","radio"),f.__value="existingApp",f.value=f.__value,s(f,"id","existingApp"),e[13][1].push(f),s(k,"class","form-check-label"),s(k,"for","existingApp"),s(g,"class","form-check"),s(d,"class","form-check-input"),s(d,"type","radio"),d.__value="pat",d.value=d.__value,s(d,"id","pat"),e[13][1].push(d),s(A,"class","form-check-label"),s(A,"for","pat"),s(C,"class","form-check"),s(i,"class","px-3 py-3")},m(m,w){H(m,t,w),H(m,o,w),H(m,i,w),l(i,n),l(i,p),l(i,c),l(c,u),u.checked=u.__value===e[2],l(c,v),l(c,a),l(i,h),l(i,g),l(g,f),f.checked=f.__value===e[2],l(g,O),l(g,k),l(i,S),l(i,C),l(C,d),d.checked=d.__value===e[2],l(C,_),l(C,A),E||(N=[$(u,"change",e[16]),$(f,"change",e[17]),$(d,"change",e[18])],E=!0)},p(m,w){w&4&&(u.checked=u.__value===m[2]),w&4&&(f.checked=f.__value===m[2]),w&4&&(d.checked=d.__value===m[2])},d(m){m&&T(t),m&&T(o),m&&T(i),e[13][1].splice(e[13][1].indexOf(u),1),e[13][1].splice(e[13][1].indexOf(f),1),e[13][1].splice(e[13][1].indexOf(d),1),E=!1,j(N)}}}function xe(e){let t,o,i,n,p,c,u,v,a,h,g,f,O,k,S,C,d;return{c(){t=r("h2"),t.textContent="Personal Access Token",o=b(),i=r("div"),n=r("p"),p=I("The "),c=r("a"),u=I("personal access token"),a=I(" must have the "),h=r("code"),h.textContent="repo",g=I(`
|
|
13
|
+
scope enabled. Don't forget to also create a webhook as described in `),f=r("a"),f.textContent="SETUP_GITHUB.md",O=I("."),k=b(),S=r("input"),s(c,"href",v="https://"+e[1]+"/settings/tokens"),s(f,"href","https://github.com/CloudSnorkel/cdk-github-runners/blob/main/SETUP_GITHUB.md"),s(S,"class","form-control"),s(S,"placeholder","Token e.g. ghp_abcdefghijklmnopqrstuvwxyz1234567890"),s(i,"class","px-3 py-3")},m(_,A){H(_,t,A),H(_,o,A),H(_,i,A),l(i,n),l(n,p),l(n,c),l(c,u),l(n,a),l(n,h),l(n,g),l(n,f),l(n,O),l(i,k),l(i,S),M(S,e[7]),C||(d=$(S,"input",e[25]),C=!0)},p(_,A){A&2&&v!==(v="https://"+_[1]+"/settings/tokens")&&s(c,"href",v),A&128&&S.value!==_[7]&&M(S,_[7])},d(_){_&&T(t),_&&T(o),_&&T(i),C=!1,d()}}}function et(e){let t,o,i,n,p,c,u,v,a,h,g,f,O,k,S,C,d,_;return{c(){t=r("h3"),t.textContent="Existing App Details",o=b(),i=r("div"),n=r("p"),n.innerHTML=`Existing apps must have <code>actions</code> and <code>administration</code> write
|
|
14
|
+
permissions. Don't forget to set up the webhook and its secret as described in <a href="https://github.com/CloudSnorkel/cdk-github-runners/blob/main/SETUP_GITHUB.md">SETUP_GITHUB.md</a>.`,p=b(),c=r("div"),u=r("label"),u.textContent="App Id",v=b(),a=r("div"),h=r("input"),g=b(),f=r("div"),O=r("label"),O.textContent="Private Key",k=b(),S=r("div"),C=r("textarea"),s(u,"for","appid"),s(u,"class","col-sm-2 col-form-label"),s(h,"type","number"),s(h,"class","form-control"),s(h,"id","appid"),s(a,"class","col-sm-10"),s(c,"class","form-group row px-3 py-2"),s(O,"for","pk"),s(O,"class","col-sm-2 col-form-label"),s(C,"class","form-control"),s(C,"id","pk"),s(C,"rows","10"),s(S,"class","col-sm-10"),s(f,"class","form-group row px-3 py-2"),s(i,"class","px-3 py-3")},m(A,E){H(A,t,E),H(A,o,E),H(A,i,E),l(i,n),l(i,p),l(i,c),l(c,u),l(c,v),l(c,a),l(a,h),M(h,e[5]),l(i,g),l(i,f),l(f,O),l(f,k),l(f,S),l(S,C),M(C,e[6]),d||(_=[$(h,"input",e[23]),$(C,"input",e[24])],d=!0)},p(A,E){E&32&&$e(h.value)!==A[5]&&M(h,A[5]),E&64&&M(C,A[6])},d(A){A&&T(t),A&&T(o),A&&T(i),d=!1,j(_)}}}function tt(e){let t,o,i,n,p,c,u,v,a,h,g,f,O,k,S,C,d,_,A,E=e[0]==="ghes"&&Ne(e),N=e[3]==="org"&&Ie(e);return{c(){t=r("h3"),t.textContent="New App Settings",o=b(),i=r("div"),n=r("p"),n.textContent=`Choose whether to create a new personal app or organization app. A private personal app can
|
|
15
15
|
only be used for repositories under your user. A private origination app can only be used
|
|
16
|
-
for repositories under that organization.`,
|
|
17
|
-
you can make the app public.`,o=b(),i=r("div"),n=r("input"),
|
|
18
|
-
`),
|
|
19
|
-
then your organization slug is `),g=r("code"),g.textContent="MyOrg",f=I("."),O=b(),k=r("input"),s(k,"class","form-control"),s(i,"class","px-3 py-3")},m(d,_){H(d,t,_),H(d,o,_),H(d,i,_),l(i,n),l(n,
|
|
16
|
+
for repositories under that organization.`,p=b(),c=r("div"),u=r("input"),v=b(),a=r("label"),a.textContent="User app",h=b(),g=r("div"),f=r("input"),O=b(),k=r("label"),k.textContent="Organization app",S=b(),E&&E.c(),C=b(),N&&N.c(),d=Me(),s(u,"class","form-check-input"),s(u,"type","radio"),u.__value="user",u.value=u.__value,s(u,"id","userScope"),e[13][2].push(u),s(a,"class","form-check-label"),s(a,"for","userScope"),s(c,"class","form-check"),s(f,"class","form-check-input"),s(f,"type","radio"),f.__value="org",f.value=f.__value,s(f,"id","orgScope"),e[13][2].push(f),s(k,"class","form-check-label"),s(k,"for","orgScope"),s(g,"class","form-check"),s(i,"class","px-3 py-3")},m(m,w){H(m,t,w),H(m,o,w),H(m,i,w),l(i,n),l(i,p),l(i,c),l(c,u),u.checked=u.__value===e[3],l(c,v),l(c,a),l(i,h),l(i,g),l(g,f),f.checked=f.__value===e[3],l(g,O),l(g,k),l(i,S),E&&E.m(i,null),H(m,C,w),N&&N.m(m,w),H(m,d,w),_||(A=[$(u,"change",e[19]),$(f,"change",e[20])],_=!0)},p(m,w){w&8&&(u.checked=u.__value===m[3]),w&8&&(f.checked=f.__value===m[3]),m[0]==="ghes"?E?E.p(m,w):(E=Ne(m),E.c(),E.m(i,null)):E&&(E.d(1),E=null),m[3]==="org"?N?N.p(m,w):(N=Ie(m),N.c(),N.m(d.parentNode,d)):N&&(N.d(1),N=null)},d(m){m&&T(t),m&&T(o),m&&T(i),e[13][2].splice(e[13][2].indexOf(u),1),e[13][2].splice(e[13][2].indexOf(f),1),E&&E.d(),m&&T(C),N&&N.d(m),m&&T(d),_=!1,j(A)}}}function Ne(e){let t,o,i,n,p,c,u,v;return{c(){t=r("p"),t.textContent=`If multiple organizations under the same GitHub Enterprise Server need to use the runners,
|
|
17
|
+
you can make the app public.`,o=b(),i=r("div"),n=r("input"),p=b(),c=r("label"),c.textContent="Public app",s(t,"class","pt-2"),s(n,"class","form-check-input"),s(n,"type","checkbox"),s(n,"id","public"),s(c,"class","form-check-label"),s(c,"for","public"),s(i,"class","form-check")},m(a,h){H(a,t,h),H(a,o,h),H(a,i,h),l(i,n),n.checked=e[10].public,l(i,p),l(i,c),u||(v=$(n,"change",e[21]),u=!0)},p(a,h){h&1024&&(n.checked=a[10].public)},d(a){a&&T(t),a&&T(o),a&&T(i),u=!1,v()}}}function Ie(e){let t,o,i,n,p,c,u,v,a,h,g,f,O,k,S,C;return{c(){t=r("h3"),t.textContent="Organization name",o=b(),i=r("div"),n=r("p"),p=I(`What is the slug for your organization? If your repositories have a URL like
|
|
18
|
+
`),c=r("code"),u=I("https://"),v=I(e[1]),a=I("/MyOrg/my-repo"),h=I(`
|
|
19
|
+
then your organization slug is `),g=r("code"),g.textContent="MyOrg",f=I("."),O=b(),k=r("input"),s(k,"class","form-control"),s(i,"class","px-3 py-3")},m(d,_){H(d,t,_),H(d,o,_),H(d,i,_),l(i,n),l(n,p),l(n,c),l(c,u),l(c,v),l(c,a),l(n,h),l(n,g),l(n,f),l(i,O),l(i,k),M(k,e[4]),S||(C=$(k,"input",e[22]),S=!0)},p(d,_){_&2&&ce(v,d[1]),_&16&&k.value!==d[4]&&M(k,d[4])},d(d){d&&T(t),d&&T(o),d&&T(i),S=!1,C()}}}function nt(e){let t,o,i;return{c(){t=r("div"),o=I(e[9]),s(t,"class",i="alert alert-"+(e[8]?"success":"danger")),s(t,"role","alert")},m(n,p){H(n,t,p),l(t,o)},p(n,p){p&512&&ce(o,n[9]),p&256&&i!==(i="alert alert-"+(n[8]?"success":"danger"))&&s(t,"class",i)},d(n){n&&T(t)}}}function lt(e){let t;return{c(){t=r("p"),t.textContent="This button will be enabled once all the questions above are answered."},m(o,i){H(o,t,i)},p:Y,d(o){o&&T(t)}}}function Ge(e){let t,o,i,n,p,c;return{c(){t=r("p"),o=r("b"),o.textContent="WARNING:",i=I(" using a public app means anyone with access to "),n=r("code"),p=I(e[1]),c=I(`
|
|
20
20
|
can use the runners you're setting up now. Anyone can create a workflow that will run on those runners,
|
|
21
21
|
have access to their instance profile, and be part of their security group. Consider the security
|
|
22
|
-
implications before continuing.`),s(o,"class","text-danger")},m(u,v){H(u,t,v),l(t,o),l(t,i),l(t,n),l(n,
|
|
22
|
+
implications before continuing.`),s(o,"class","text-danger")},m(u,v){H(u,t,v),l(t,o),l(t,i),l(t,n),l(n,p),l(t,c)},p(u,v){v&2&&ce(p,u[1])},d(u){u&&T(t)}}}function it(e){let t,o,i,n,p,c,u,v,a,h,g,f,O,k,S,C,d,_,A,E,N,m,w,te,q,ne,Z,Q,V,X,B,z,pe,fe,J,le=Pe(e[2])+"",de,ie,ye,K,W,oe,se,_e,we,R=e[0]==="ghes"&&Oe(e),P=e[0]&&He(e);function Ee(y,G){if(y[2]==="newApp")return tt;if(y[2]==="existingApp")return et;if(y[2]==="pat")return xe}let F=Ee(e),L=F&&F(e);function Ae(y,G){return y[9]===void 0?lt:nt}let re=Ae(e),D=re(e),U=e[10].public&&e[2]==="newApp"&&Ge(e);return{c(){t=r("main"),o=r("div"),i=r("div"),n=r("form"),p=r("h1"),p.textContent="Setup GitHub Runners",c=b(),u=r("p"),v=I(`Answer all the questions on this page to automatically configure GitHub integration and get the
|
|
23
23
|
runners working. This page will not be accessible once you complete this operation. If you ever want
|
|
24
24
|
to access it again, edit `),a=r("code"),a.textContent=`${ot}`,h=I(" and run the status function again."),g=b(),f=r("h3"),f.textContent="Choose GitHub Instance",O=b(),k=r("div"),S=r("p"),S.textContent=`Are your repositories hosted on GitHub.com or are you using an on-premise installation of GitHub
|
|
25
|
-
Enterprise Server?`,C=b(),d=r("div"),_=r("input"),A=b(),E=r("label"),E.textContent="GitHub.com",N=b(),m=r("div"),w=r("input"),te=b(),q=r("label"),q.textContent="GitHub Enterprise Server",ne=b(),R&&R.c(),Z=b(),P&&P.c(),Q=b(),L&&L.c(),V=b(),X=r("h2"),X.textContent="Finish Setup",
|
|
25
|
+
Enterprise Server?`,C=b(),d=r("div"),_=r("input"),A=b(),E=r("label"),E.textContent="GitHub.com",N=b(),m=r("div"),w=r("input"),te=b(),q=r("label"),q.textContent="GitHub Enterprise Server",ne=b(),R&&R.c(),Z=b(),P&&P.c(),Q=b(),L&&L.c(),V=b(),X=r("h2"),X.textContent="Finish Setup",B=b(),z=r("div"),D.c(),pe=b(),U&&U.c(),fe=b(),J=r("button"),de=I(le),ye=b(),K=r("form"),W=r("input"),s(_,"class","form-check-input"),s(_,"type","radio"),_.__value="github.com",_.value=_.__value,s(_,"id","github.com"),e[13][0].push(_),s(E,"class","form-check-label"),s(E,"for","github.com"),s(d,"class","form-check"),s(w,"class","form-check-input"),s(w,"type","radio"),w.__value="ghes",w.value=w.__value,s(w,"id","ghes"),e[13][0].push(w),s(q,"class","form-check-label"),s(q,"for","ghes"),s(m,"class","form-check"),s(k,"class","px-3 py-3"),s(J,"type","submit"),s(J,"class","btn btn-success"),J.disabled=ie=Re(e[0],e[2],e[5],e[6],e[7],e[8]),s(z,"class","px-3 py-3"),s(n,"class","col"),s(i,"class","row"),s(o,"class","container py-3 px-2"),s(W,"type","hidden"),s(W,"name","manifest"),W.value=oe=JSON.stringify(e[10]),s(K,"action",se="https://"+e[1]+"/"+(e[3]==="org"?`organizations/${e[4]}/`:"")+"settings/apps/new?state="+ge),s(K,"method","post"),s(K,"id","appform")},m(y,G){H(y,t,G),l(t,o),l(o,i),l(i,n),l(n,p),l(n,c),l(n,u),l(u,v),l(u,a),l(u,h),l(n,g),l(n,f),l(n,O),l(n,k),l(k,S),l(k,C),l(k,d),l(d,_),_.checked=_.__value===e[0],l(d,A),l(d,E),l(k,N),l(k,m),l(m,w),w.checked=w.__value===e[0],l(m,te),l(m,q),l(n,ne),R&&R.m(n,null),l(n,Z),P&&P.m(n,null),l(n,Q),L&&L.m(n,null),l(n,V),l(n,X),l(n,B),l(n,z),D.m(z,null),l(z,pe),U&&U.m(z,null),l(z,fe),l(z,J),l(J,de),l(t,ye),l(t,K),l(K,W),_e||(we=[$(_,"change",e[12]),$(w,"change",e[14]),$(n,"submit",e[11])],_e=!0)},p(y,[G]){G&1&&(_.checked=_.__value===y[0]),G&1&&(w.checked=w.__value===y[0]),y[0]==="ghes"?R?R.p(y,G):(R=Oe(y),R.c(),R.m(n,Z)):R&&(R.d(1),R=null),y[0]?P?P.p(y,G):(P=He(y),P.c(),P.m(n,Q)):P&&(P.d(1),P=null),F===(F=Ee(y))&&L?L.p(y,G):(L&&L.d(1),L=F&&F(y),L&&(L.c(),L.m(n,V))),re===(re=Ae(y))&&D?D.p(y,G):(D.d(1),D=re(y),D&&(D.c(),D.m(z,pe))),y[10].public&&y[2]==="newApp"?U?U.p(y,G):(U=Ge(y),U.c(),U.m(z,fe)):U&&(U.d(1),U=null),G&4&&le!==(le=Pe(y[2])+"")&&ce(de,le),G&485&&ie!==(ie=Re(y[0],y[2],y[5],y[6],y[7],y[8]))&&(J.disabled=ie),G&1024&&oe!==(oe=JSON.stringify(y[10]))&&(W.value=oe),G&26&&se!==(se="https://"+y[1]+"/"+(y[3]==="org"?`organizations/${y[4]}/`:"")+"settings/apps/new?state="+ge)&&s(K,"action",se)},i:Y,o:Y,d(y){y&&T(t),e[13][0].splice(e[13][0].indexOf(_),1),e[13][0].splice(e[13][0].indexOf(w),1),R&&R.d(),P&&P.d(),L&&L.d(),D.d(),U&&U.d(),_e=!1,j(we)}}}const ot="INSERT_SECRET_ARN_HERE",ge="INSERT_TOKEN_HERE";function Re(e,t,o,i,n,p){return p||e===void 0||t===void 0?!0:t==="newApp"?!1:t==="existingApp"?o===""||i==="":t==="pat"?n==="":(console.error("Something is broken",e,t,o),!0)}function Pe(e){return e==="newApp"?"Create GitHub App":"Setup"}function me(e,t){return new Promise((o,i)=>{fetch(`${e}?token=${ge}`,{method:"POST",mode:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),redirect:"error"}).then(n=>{n.ok?n.text().then(o).catch(i):n.text().then(p=>{i(new Error(`${p} [${n.status}]`))}).catch(i)}).catch(i)})}function st(e,t,o){let i,n="INSERT_DOMAIN_HERE",p,c="user",u="ORGANIZATION",v="",a="",h="",g,f;const O={url:"https://github.com/CloudSnorkel/cdk-github-runners",hook_attributes:{url:"INSERT_WEBHOOK_URL_HERE"},redirect_url:"INSERT_BASE_URL_HERE/complete-new-app",public:!1,default_permissions:{actions:"write",administration:"write"},default_events:["workflow_job"]};function k(V){V.preventDefault();function X(){const B=i==="ghes"?n:"github.com";switch(p){case"newApp":return me("domain",{domain:B}).then(z=>(document.getElementById("appform").submit(),Promise.resolve("Redirecting to GitHub...")));case"existingApp":return me("app",{appid:v,pk:a,domain:B});case"pat":return me("pat",{pat:h,domain:B})}}X().then(B=>{o(9,f=B),o(8,g=!0)}).catch(B=>{o(9,f=`${B}`),o(8,g=!1)})}const S=[[],[],[]];function C(){i=this.__value,o(0,i)}function d(){i=this.__value,o(0,i)}function _(){n=this.value,o(1,n)}function A(){p=this.__value,o(2,p)}function E(){p=this.__value,o(2,p)}function N(){p=this.__value,o(2,p)}function m(){c=this.__value,o(3,c)}function w(){c=this.__value,o(3,c)}function te(){O.public=this.checked,o(10,O)}function q(){u=this.value,o(4,u)}function ne(){v=$e(this.value),o(5,v)}function Z(){a=this.value,o(6,a)}function Q(){h=this.value,o(7,h)}return[i,n,p,c,u,v,a,h,g,f,O,k,C,S,d,_,A,E,N,m,w,te,q,ne,Z,Q]}class rt extends Xe{constructor(t){super(),Ve(this,t,st,it,Be,{})}}new rt({target:document.getElementById("app")});
|
|
26
26
|
|
|
27
27
|
</script>
|
|
28
28
|
<style type="text/css">
|
|
@@ -7081,9 +7081,9 @@ var require_once = __commonJS({
|
|
|
7081
7081
|
}
|
|
7082
7082
|
});
|
|
7083
7083
|
|
|
7084
|
-
// node_modules/@octokit/request-error/dist-node/index.js
|
|
7084
|
+
// node_modules/@octokit/request/node_modules/@octokit/request-error/dist-node/index.js
|
|
7085
7085
|
var require_dist_node4 = __commonJS({
|
|
7086
|
-
"node_modules/@octokit/request-error/dist-node/index.js"(exports2) {
|
|
7086
|
+
"node_modules/@octokit/request/node_modules/@octokit/request-error/dist-node/index.js"(exports2) {
|
|
7087
7087
|
"use strict";
|
|
7088
7088
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7089
7089
|
function _interopDefault(ex) {
|
|
@@ -8887,7 +8887,7 @@ function response(code, body) {
|
|
|
8887
8887
|
statusCode: code,
|
|
8888
8888
|
headers: {
|
|
8889
8889
|
"Content-Type": "text/html",
|
|
8890
|
-
"Content-Security-Policy": `default-src 'nonce-${nonce}'; img-src data:; connect-src 'self'; form-action https:; frame-ancestors 'none'`
|
|
8890
|
+
"Content-Security-Policy": `default-src 'unsafe-inline' 'nonce-${nonce}'; img-src data:; connect-src 'self'; form-action https:; frame-ancestors 'none'; object-src 'none'; base-uri 'self'`
|
|
8891
8891
|
},
|
|
8892
8892
|
body
|
|
8893
8893
|
};
|
|
@@ -6938,9 +6938,9 @@ var require_once = __commonJS({
|
|
|
6938
6938
|
}
|
|
6939
6939
|
});
|
|
6940
6940
|
|
|
6941
|
-
// node_modules/@octokit/request-error/dist-node/index.js
|
|
6941
|
+
// node_modules/@octokit/request/node_modules/@octokit/request-error/dist-node/index.js
|
|
6942
6942
|
var require_dist_node4 = __commonJS({
|
|
6943
|
-
"node_modules/@octokit/request-error/dist-node/index.js"(exports2) {
|
|
6943
|
+
"node_modules/@octokit/request/node_modules/@octokit/request-error/dist-node/index.js"(exports2) {
|
|
6944
6944
|
"use strict";
|
|
6945
6945
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6946
6946
|
function _interopDefault(ex) {
|
|
@@ -7451,9 +7451,9 @@ var require_dist_node6 = __commonJS({
|
|
|
7451
7451
|
}
|
|
7452
7452
|
});
|
|
7453
7453
|
|
|
7454
|
-
// node_modules/@octokit/
|
|
7454
|
+
// node_modules/@octokit/request-error/dist-node/index.js
|
|
7455
7455
|
var require_dist_node7 = __commonJS({
|
|
7456
|
-
"node_modules/@octokit/
|
|
7456
|
+
"node_modules/@octokit/request-error/dist-node/index.js"(exports2) {
|
|
7457
7457
|
"use strict";
|
|
7458
7458
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7459
7459
|
function _interopDefault(ex) {
|
|
@@ -8007,62 +8007,8 @@ var require_dist_node10 = __commonJS({
|
|
|
8007
8007
|
}
|
|
8008
8008
|
});
|
|
8009
8009
|
|
|
8010
|
-
// node_modules/@octokit/oauth-methods/node_modules/@octokit/request-error/dist-node/index.js
|
|
8011
|
-
var require_dist_node11 = __commonJS({
|
|
8012
|
-
"node_modules/@octokit/oauth-methods/node_modules/@octokit/request-error/dist-node/index.js"(exports2) {
|
|
8013
|
-
"use strict";
|
|
8014
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8015
|
-
function _interopDefault(ex) {
|
|
8016
|
-
return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex;
|
|
8017
|
-
}
|
|
8018
|
-
var deprecation = require_dist_node3();
|
|
8019
|
-
var once = _interopDefault(require_once());
|
|
8020
|
-
var logOnceCode = once((deprecation2) => console.warn(deprecation2));
|
|
8021
|
-
var logOnceHeaders = once((deprecation2) => console.warn(deprecation2));
|
|
8022
|
-
var RequestError = class extends Error {
|
|
8023
|
-
constructor(message, statusCode, options) {
|
|
8024
|
-
super(message);
|
|
8025
|
-
if (Error.captureStackTrace) {
|
|
8026
|
-
Error.captureStackTrace(this, this.constructor);
|
|
8027
|
-
}
|
|
8028
|
-
this.name = "HttpError";
|
|
8029
|
-
this.status = statusCode;
|
|
8030
|
-
let headers;
|
|
8031
|
-
if ("headers" in options && typeof options.headers !== "undefined") {
|
|
8032
|
-
headers = options.headers;
|
|
8033
|
-
}
|
|
8034
|
-
if ("response" in options) {
|
|
8035
|
-
this.response = options.response;
|
|
8036
|
-
headers = options.response.headers;
|
|
8037
|
-
}
|
|
8038
|
-
const requestCopy = Object.assign({}, options.request);
|
|
8039
|
-
if (options.request.headers.authorization) {
|
|
8040
|
-
requestCopy.headers = Object.assign({}, options.request.headers, {
|
|
8041
|
-
authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
|
|
8042
|
-
});
|
|
8043
|
-
}
|
|
8044
|
-
requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
|
|
8045
|
-
this.request = requestCopy;
|
|
8046
|
-
Object.defineProperty(this, "code", {
|
|
8047
|
-
get() {
|
|
8048
|
-
logOnceCode(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
|
|
8049
|
-
return statusCode;
|
|
8050
|
-
}
|
|
8051
|
-
});
|
|
8052
|
-
Object.defineProperty(this, "headers", {
|
|
8053
|
-
get() {
|
|
8054
|
-
logOnceHeaders(new deprecation.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));
|
|
8055
|
-
return headers || {};
|
|
8056
|
-
}
|
|
8057
|
-
});
|
|
8058
|
-
}
|
|
8059
|
-
};
|
|
8060
|
-
exports2.RequestError = RequestError;
|
|
8061
|
-
}
|
|
8062
|
-
});
|
|
8063
|
-
|
|
8064
8010
|
// node_modules/@octokit/oauth-methods/node_modules/@octokit/request/dist-node/index.js
|
|
8065
|
-
var
|
|
8011
|
+
var require_dist_node11 = __commonJS({
|
|
8066
8012
|
"node_modules/@octokit/oauth-methods/node_modules/@octokit/request/dist-node/index.js"(exports2) {
|
|
8067
8013
|
"use strict";
|
|
8068
8014
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -8073,7 +8019,7 @@ var require_dist_node12 = __commonJS({
|
|
|
8073
8019
|
var universalUserAgent = require_dist_node();
|
|
8074
8020
|
var isPlainObject = require_is_plain_object();
|
|
8075
8021
|
var nodeFetch = _interopDefault(require_lib3());
|
|
8076
|
-
var requestError =
|
|
8022
|
+
var requestError = require_dist_node7();
|
|
8077
8023
|
var VERSION = "6.2.2";
|
|
8078
8024
|
function getBufferResponse(response) {
|
|
8079
8025
|
return response.arrayBuffer();
|
|
@@ -8217,7 +8163,7 @@ var require_dist_node12 = __commonJS({
|
|
|
8217
8163
|
});
|
|
8218
8164
|
|
|
8219
8165
|
// node_modules/@octokit/oauth-methods/dist-node/index.js
|
|
8220
|
-
var
|
|
8166
|
+
var require_dist_node12 = __commonJS({
|
|
8221
8167
|
"node_modules/@octokit/oauth-methods/dist-node/index.js"(exports2) {
|
|
8222
8168
|
"use strict";
|
|
8223
8169
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -8225,8 +8171,8 @@ var require_dist_node13 = __commonJS({
|
|
|
8225
8171
|
return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex;
|
|
8226
8172
|
}
|
|
8227
8173
|
var oauthAuthorizationUrl = require_dist_node9();
|
|
8228
|
-
var request =
|
|
8229
|
-
var requestError =
|
|
8174
|
+
var request = require_dist_node11();
|
|
8175
|
+
var requestError = require_dist_node7();
|
|
8230
8176
|
var btoa = _interopDefault(require_btoa_node());
|
|
8231
8177
|
var VERSION = "2.0.4";
|
|
8232
8178
|
function requestToOAuthBaseUrl(request2) {
|
|
@@ -8480,13 +8426,13 @@ var require_dist_node13 = __commonJS({
|
|
|
8480
8426
|
});
|
|
8481
8427
|
|
|
8482
8428
|
// node_modules/@octokit/auth-oauth-app/node_modules/@octokit/auth-oauth-user/node_modules/@octokit/auth-oauth-device/dist-node/index.js
|
|
8483
|
-
var
|
|
8429
|
+
var require_dist_node13 = __commonJS({
|
|
8484
8430
|
"node_modules/@octokit/auth-oauth-app/node_modules/@octokit/auth-oauth-user/node_modules/@octokit/auth-oauth-device/dist-node/index.js"(exports2) {
|
|
8485
8431
|
"use strict";
|
|
8486
8432
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8487
8433
|
var universalUserAgent = require_dist_node();
|
|
8488
8434
|
var request = require_dist_node8();
|
|
8489
|
-
var oauthMethods =
|
|
8435
|
+
var oauthMethods = require_dist_node12();
|
|
8490
8436
|
async function getOAuthAccessToken(state, options) {
|
|
8491
8437
|
const cachedAuthentication = getCachedAuthentication(state, options.auth);
|
|
8492
8438
|
if (cachedAuthentication)
|
|
@@ -8613,7 +8559,7 @@ var require_dist_node14 = __commonJS({
|
|
|
8613
8559
|
});
|
|
8614
8560
|
|
|
8615
8561
|
// node_modules/@octokit/auth-oauth-app/node_modules/@octokit/auth-oauth-user/dist-node/index.js
|
|
8616
|
-
var
|
|
8562
|
+
var require_dist_node14 = __commonJS({
|
|
8617
8563
|
"node_modules/@octokit/auth-oauth-app/node_modules/@octokit/auth-oauth-user/dist-node/index.js"(exports2) {
|
|
8618
8564
|
"use strict";
|
|
8619
8565
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -8622,8 +8568,8 @@ var require_dist_node15 = __commonJS({
|
|
|
8622
8568
|
}
|
|
8623
8569
|
var universalUserAgent = require_dist_node();
|
|
8624
8570
|
var request = require_dist_node8();
|
|
8625
|
-
var authOauthDevice =
|
|
8626
|
-
var oauthMethods =
|
|
8571
|
+
var authOauthDevice = require_dist_node13();
|
|
8572
|
+
var oauthMethods = require_dist_node12();
|
|
8627
8573
|
var btoa = _interopDefault(require_btoa_node());
|
|
8628
8574
|
var VERSION = "2.0.4";
|
|
8629
8575
|
async function getAuthentication(state) {
|
|
@@ -8804,7 +8750,7 @@ var require_dist_node15 = __commonJS({
|
|
|
8804
8750
|
});
|
|
8805
8751
|
|
|
8806
8752
|
// node_modules/@octokit/auth-oauth-app/dist-node/index.js
|
|
8807
|
-
var
|
|
8753
|
+
var require_dist_node15 = __commonJS({
|
|
8808
8754
|
"node_modules/@octokit/auth-oauth-app/dist-node/index.js"(exports2) {
|
|
8809
8755
|
"use strict";
|
|
8810
8756
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -8814,7 +8760,7 @@ var require_dist_node16 = __commonJS({
|
|
|
8814
8760
|
var universalUserAgent = require_dist_node();
|
|
8815
8761
|
var request = require_dist_node5();
|
|
8816
8762
|
var btoa = _interopDefault(require_btoa_node());
|
|
8817
|
-
var authOauthUser =
|
|
8763
|
+
var authOauthUser = require_dist_node14();
|
|
8818
8764
|
function ownKeys(object, enumerableOnly) {
|
|
8819
8765
|
var keys = Object.keys(object);
|
|
8820
8766
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -11782,7 +11728,7 @@ var require_jsonwebtoken = __commonJS({
|
|
|
11782
11728
|
});
|
|
11783
11729
|
|
|
11784
11730
|
// node_modules/universal-github-app-jwt/dist-node/index.js
|
|
11785
|
-
var
|
|
11731
|
+
var require_dist_node16 = __commonJS({
|
|
11786
11732
|
"node_modules/universal-github-app-jwt/dist-node/index.js"(exports2) {
|
|
11787
11733
|
"use strict";
|
|
11788
11734
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -12476,7 +12422,7 @@ var require_lru_cache = __commonJS({
|
|
|
12476
12422
|
});
|
|
12477
12423
|
|
|
12478
12424
|
// node_modules/@octokit/auth-oauth-device/node_modules/@octokit/endpoint/dist-node/index.js
|
|
12479
|
-
var
|
|
12425
|
+
var require_dist_node17 = __commonJS({
|
|
12480
12426
|
"node_modules/@octokit/auth-oauth-device/node_modules/@octokit/endpoint/dist-node/index.js"(exports2) {
|
|
12481
12427
|
"use strict";
|
|
12482
12428
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -12772,73 +12718,19 @@ var require_dist_node18 = __commonJS({
|
|
|
12772
12718
|
}
|
|
12773
12719
|
});
|
|
12774
12720
|
|
|
12775
|
-
// node_modules/@octokit/auth-oauth-device/node_modules/@octokit/request-error/dist-node/index.js
|
|
12776
|
-
var require_dist_node19 = __commonJS({
|
|
12777
|
-
"node_modules/@octokit/auth-oauth-device/node_modules/@octokit/request-error/dist-node/index.js"(exports2) {
|
|
12778
|
-
"use strict";
|
|
12779
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12780
|
-
function _interopDefault(ex) {
|
|
12781
|
-
return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex;
|
|
12782
|
-
}
|
|
12783
|
-
var deprecation = require_dist_node3();
|
|
12784
|
-
var once = _interopDefault(require_once());
|
|
12785
|
-
var logOnceCode = once((deprecation2) => console.warn(deprecation2));
|
|
12786
|
-
var logOnceHeaders = once((deprecation2) => console.warn(deprecation2));
|
|
12787
|
-
var RequestError = class extends Error {
|
|
12788
|
-
constructor(message, statusCode, options) {
|
|
12789
|
-
super(message);
|
|
12790
|
-
if (Error.captureStackTrace) {
|
|
12791
|
-
Error.captureStackTrace(this, this.constructor);
|
|
12792
|
-
}
|
|
12793
|
-
this.name = "HttpError";
|
|
12794
|
-
this.status = statusCode;
|
|
12795
|
-
let headers;
|
|
12796
|
-
if ("headers" in options && typeof options.headers !== "undefined") {
|
|
12797
|
-
headers = options.headers;
|
|
12798
|
-
}
|
|
12799
|
-
if ("response" in options) {
|
|
12800
|
-
this.response = options.response;
|
|
12801
|
-
headers = options.response.headers;
|
|
12802
|
-
}
|
|
12803
|
-
const requestCopy = Object.assign({}, options.request);
|
|
12804
|
-
if (options.request.headers.authorization) {
|
|
12805
|
-
requestCopy.headers = Object.assign({}, options.request.headers, {
|
|
12806
|
-
authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
|
|
12807
|
-
});
|
|
12808
|
-
}
|
|
12809
|
-
requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
|
|
12810
|
-
this.request = requestCopy;
|
|
12811
|
-
Object.defineProperty(this, "code", {
|
|
12812
|
-
get() {
|
|
12813
|
-
logOnceCode(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
|
|
12814
|
-
return statusCode;
|
|
12815
|
-
}
|
|
12816
|
-
});
|
|
12817
|
-
Object.defineProperty(this, "headers", {
|
|
12818
|
-
get() {
|
|
12819
|
-
logOnceHeaders(new deprecation.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));
|
|
12820
|
-
return headers || {};
|
|
12821
|
-
}
|
|
12822
|
-
});
|
|
12823
|
-
}
|
|
12824
|
-
};
|
|
12825
|
-
exports2.RequestError = RequestError;
|
|
12826
|
-
}
|
|
12827
|
-
});
|
|
12828
|
-
|
|
12829
12721
|
// node_modules/@octokit/auth-oauth-device/node_modules/@octokit/request/dist-node/index.js
|
|
12830
|
-
var
|
|
12722
|
+
var require_dist_node18 = __commonJS({
|
|
12831
12723
|
"node_modules/@octokit/auth-oauth-device/node_modules/@octokit/request/dist-node/index.js"(exports2) {
|
|
12832
12724
|
"use strict";
|
|
12833
12725
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12834
12726
|
function _interopDefault(ex) {
|
|
12835
12727
|
return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex;
|
|
12836
12728
|
}
|
|
12837
|
-
var endpoint =
|
|
12729
|
+
var endpoint = require_dist_node17();
|
|
12838
12730
|
var universalUserAgent = require_dist_node();
|
|
12839
12731
|
var isPlainObject = require_is_plain_object();
|
|
12840
12732
|
var nodeFetch = _interopDefault(require_lib3());
|
|
12841
|
-
var requestError =
|
|
12733
|
+
var requestError = require_dist_node7();
|
|
12842
12734
|
var VERSION = "6.2.2";
|
|
12843
12735
|
function getBufferResponse(response) {
|
|
12844
12736
|
return response.arrayBuffer();
|
|
@@ -12982,13 +12874,13 @@ var require_dist_node20 = __commonJS({
|
|
|
12982
12874
|
});
|
|
12983
12875
|
|
|
12984
12876
|
// node_modules/@octokit/auth-oauth-device/dist-node/index.js
|
|
12985
|
-
var
|
|
12877
|
+
var require_dist_node19 = __commonJS({
|
|
12986
12878
|
"node_modules/@octokit/auth-oauth-device/dist-node/index.js"(exports2) {
|
|
12987
12879
|
"use strict";
|
|
12988
12880
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12989
12881
|
var universalUserAgent = require_dist_node();
|
|
12990
|
-
var request =
|
|
12991
|
-
var oauthMethods =
|
|
12882
|
+
var request = require_dist_node18();
|
|
12883
|
+
var oauthMethods = require_dist_node12();
|
|
12992
12884
|
function ownKeys(object, enumerableOnly) {
|
|
12993
12885
|
var keys = Object.keys(object);
|
|
12994
12886
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -13185,7 +13077,7 @@ var require_dist_node21 = __commonJS({
|
|
|
13185
13077
|
});
|
|
13186
13078
|
|
|
13187
13079
|
// node_modules/@octokit/auth-oauth-user/node_modules/@octokit/oauth-authorization-url/dist-node/index.js
|
|
13188
|
-
var
|
|
13080
|
+
var require_dist_node20 = __commonJS({
|
|
13189
13081
|
"node_modules/@octokit/auth-oauth-user/node_modules/@octokit/oauth-authorization-url/dist-node/index.js"(exports2) {
|
|
13190
13082
|
"use strict";
|
|
13191
13083
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -13234,17 +13126,71 @@ var require_dist_node22 = __commonJS({
|
|
|
13234
13126
|
}
|
|
13235
13127
|
});
|
|
13236
13128
|
|
|
13129
|
+
// node_modules/@octokit/auth-oauth-user/node_modules/@octokit/request-error/dist-node/index.js
|
|
13130
|
+
var require_dist_node21 = __commonJS({
|
|
13131
|
+
"node_modules/@octokit/auth-oauth-user/node_modules/@octokit/request-error/dist-node/index.js"(exports2) {
|
|
13132
|
+
"use strict";
|
|
13133
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13134
|
+
function _interopDefault(ex) {
|
|
13135
|
+
return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex;
|
|
13136
|
+
}
|
|
13137
|
+
var deprecation = require_dist_node3();
|
|
13138
|
+
var once = _interopDefault(require_once());
|
|
13139
|
+
var logOnceCode = once((deprecation2) => console.warn(deprecation2));
|
|
13140
|
+
var logOnceHeaders = once((deprecation2) => console.warn(deprecation2));
|
|
13141
|
+
var RequestError = class extends Error {
|
|
13142
|
+
constructor(message, statusCode, options) {
|
|
13143
|
+
super(message);
|
|
13144
|
+
if (Error.captureStackTrace) {
|
|
13145
|
+
Error.captureStackTrace(this, this.constructor);
|
|
13146
|
+
}
|
|
13147
|
+
this.name = "HttpError";
|
|
13148
|
+
this.status = statusCode;
|
|
13149
|
+
let headers;
|
|
13150
|
+
if ("headers" in options && typeof options.headers !== "undefined") {
|
|
13151
|
+
headers = options.headers;
|
|
13152
|
+
}
|
|
13153
|
+
if ("response" in options) {
|
|
13154
|
+
this.response = options.response;
|
|
13155
|
+
headers = options.response.headers;
|
|
13156
|
+
}
|
|
13157
|
+
const requestCopy = Object.assign({}, options.request);
|
|
13158
|
+
if (options.request.headers.authorization) {
|
|
13159
|
+
requestCopy.headers = Object.assign({}, options.request.headers, {
|
|
13160
|
+
authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
|
|
13161
|
+
});
|
|
13162
|
+
}
|
|
13163
|
+
requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
|
|
13164
|
+
this.request = requestCopy;
|
|
13165
|
+
Object.defineProperty(this, "code", {
|
|
13166
|
+
get() {
|
|
13167
|
+
logOnceCode(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
|
|
13168
|
+
return statusCode;
|
|
13169
|
+
}
|
|
13170
|
+
});
|
|
13171
|
+
Object.defineProperty(this, "headers", {
|
|
13172
|
+
get() {
|
|
13173
|
+
logOnceHeaders(new deprecation.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));
|
|
13174
|
+
return headers || {};
|
|
13175
|
+
}
|
|
13176
|
+
});
|
|
13177
|
+
}
|
|
13178
|
+
};
|
|
13179
|
+
exports2.RequestError = RequestError;
|
|
13180
|
+
}
|
|
13181
|
+
});
|
|
13182
|
+
|
|
13237
13183
|
// node_modules/@octokit/auth-oauth-user/node_modules/@octokit/oauth-methods/dist-node/index.js
|
|
13238
|
-
var
|
|
13184
|
+
var require_dist_node22 = __commonJS({
|
|
13239
13185
|
"node_modules/@octokit/auth-oauth-user/node_modules/@octokit/oauth-methods/dist-node/index.js"(exports2) {
|
|
13240
13186
|
"use strict";
|
|
13241
13187
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13242
13188
|
function _interopDefault(ex) {
|
|
13243
13189
|
return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex;
|
|
13244
13190
|
}
|
|
13245
|
-
var oauthAuthorizationUrl =
|
|
13191
|
+
var oauthAuthorizationUrl = require_dist_node20();
|
|
13246
13192
|
var request = require_dist_node5();
|
|
13247
|
-
var requestError =
|
|
13193
|
+
var requestError = require_dist_node21();
|
|
13248
13194
|
var btoa = _interopDefault(require_btoa_node());
|
|
13249
13195
|
var VERSION = "1.2.6";
|
|
13250
13196
|
function ownKeys(object, enumerableOnly) {
|
|
@@ -13564,7 +13510,7 @@ var require_dist_node23 = __commonJS({
|
|
|
13564
13510
|
});
|
|
13565
13511
|
|
|
13566
13512
|
// node_modules/@octokit/auth-oauth-user/dist-node/index.js
|
|
13567
|
-
var
|
|
13513
|
+
var require_dist_node23 = __commonJS({
|
|
13568
13514
|
"node_modules/@octokit/auth-oauth-user/dist-node/index.js"(exports2) {
|
|
13569
13515
|
"use strict";
|
|
13570
13516
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -13573,8 +13519,8 @@ var require_dist_node24 = __commonJS({
|
|
|
13573
13519
|
}
|
|
13574
13520
|
var universalUserAgent = require_dist_node();
|
|
13575
13521
|
var request = require_dist_node5();
|
|
13576
|
-
var authOauthDevice =
|
|
13577
|
-
var oauthMethods =
|
|
13522
|
+
var authOauthDevice = require_dist_node19();
|
|
13523
|
+
var oauthMethods = require_dist_node22();
|
|
13578
13524
|
var btoa = _interopDefault(require_btoa_node());
|
|
13579
13525
|
function ownKeys(object, enumerableOnly) {
|
|
13580
13526
|
var keys = Object.keys(object);
|
|
@@ -13824,7 +13770,7 @@ var require_dist_node24 = __commonJS({
|
|
|
13824
13770
|
});
|
|
13825
13771
|
|
|
13826
13772
|
// node_modules/@octokit/auth-app/dist-node/index.js
|
|
13827
|
-
var
|
|
13773
|
+
var require_dist_node24 = __commonJS({
|
|
13828
13774
|
"node_modules/@octokit/auth-app/dist-node/index.js"(exports2) {
|
|
13829
13775
|
"use strict";
|
|
13830
13776
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -13833,11 +13779,11 @@ var require_dist_node25 = __commonJS({
|
|
|
13833
13779
|
}
|
|
13834
13780
|
var universalUserAgent = require_dist_node();
|
|
13835
13781
|
var request = require_dist_node5();
|
|
13836
|
-
var authOauthApp =
|
|
13782
|
+
var authOauthApp = require_dist_node15();
|
|
13837
13783
|
var deprecation = require_dist_node3();
|
|
13838
|
-
var universalGithubAppJwt =
|
|
13784
|
+
var universalGithubAppJwt = require_dist_node16();
|
|
13839
13785
|
var LRU = _interopDefault(require_lru_cache());
|
|
13840
|
-
var authOauthUser =
|
|
13786
|
+
var authOauthUser = require_dist_node23();
|
|
13841
13787
|
function ownKeys(object, enumerableOnly) {
|
|
13842
13788
|
var keys = Object.keys(object);
|
|
13843
13789
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -14408,7 +14354,7 @@ var require_before_after_hook = __commonJS({
|
|
|
14408
14354
|
});
|
|
14409
14355
|
|
|
14410
14356
|
// node_modules/@octokit/graphql/dist-node/index.js
|
|
14411
|
-
var
|
|
14357
|
+
var require_dist_node25 = __commonJS({
|
|
14412
14358
|
"node_modules/@octokit/graphql/dist-node/index.js"(exports2) {
|
|
14413
14359
|
"use strict";
|
|
14414
14360
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -14506,7 +14452,7 @@ var require_dist_node26 = __commonJS({
|
|
|
14506
14452
|
});
|
|
14507
14453
|
|
|
14508
14454
|
// node_modules/@octokit/auth-token/dist-node/index.js
|
|
14509
|
-
var
|
|
14455
|
+
var require_dist_node26 = __commonJS({
|
|
14510
14456
|
"node_modules/@octokit/auth-token/dist-node/index.js"(exports2) {
|
|
14511
14457
|
"use strict";
|
|
14512
14458
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -14552,15 +14498,15 @@ var require_dist_node27 = __commonJS({
|
|
|
14552
14498
|
});
|
|
14553
14499
|
|
|
14554
14500
|
// node_modules/@octokit/core/dist-node/index.js
|
|
14555
|
-
var
|
|
14501
|
+
var require_dist_node27 = __commonJS({
|
|
14556
14502
|
"node_modules/@octokit/core/dist-node/index.js"(exports2) {
|
|
14557
14503
|
"use strict";
|
|
14558
14504
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
14559
14505
|
var universalUserAgent = require_dist_node();
|
|
14560
14506
|
var beforeAfterHook = require_before_after_hook();
|
|
14561
14507
|
var request = require_dist_node5();
|
|
14562
|
-
var graphql =
|
|
14563
|
-
var authToken =
|
|
14508
|
+
var graphql = require_dist_node25();
|
|
14509
|
+
var authToken = require_dist_node26();
|
|
14564
14510
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
14565
14511
|
if (source == null)
|
|
14566
14512
|
return {};
|
|
@@ -14688,8 +14634,8 @@ var require_dist_node28 = __commonJS({
|
|
|
14688
14634
|
});
|
|
14689
14635
|
|
|
14690
14636
|
// src/lambdas/status/index.ts
|
|
14691
|
-
var import_auth_app = __toESM(
|
|
14692
|
-
var import_core = __toESM(
|
|
14637
|
+
var import_auth_app = __toESM(require_dist_node24());
|
|
14638
|
+
var import_core = __toESM(require_dist_node27());
|
|
14693
14639
|
var AWS2 = __toESM(require("aws-sdk"));
|
|
14694
14640
|
|
|
14695
14641
|
// src/lambdas/helpers.ts
|