@cloudsnorkel/cdk-github-runners 0.5.2 → 0.5.4

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/API.md CHANGED
@@ -963,7 +963,7 @@ Any object.
963
963
  | **Name** | **Type** | **Description** |
964
964
  | --- | --- | --- |
965
965
  | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.node">node</a></code> | <code>constructs.Node</code> | The tree node. |
966
- | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.assignPublicIp">assignPublicIp</a></code> | <code>boolean</code> | Whether task will have a public IP. |
966
+ | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.assignPublicIp">assignPublicIp</a></code> | <code>boolean</code> | Whether runner task will have a public IP. |
967
967
  | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.cluster">cluster</a></code> | <code>aws-cdk-lib.aws_ecs.Cluster</code> | Cluster hosting the task hosting the runner. |
968
968
  | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.connections">connections</a></code> | <code>aws-cdk-lib.aws_ec2.Connections</code> | The network connections associated with this resource. |
969
969
  | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.container">container</a></code> | <code>aws-cdk-lib.aws_ecs.ContainerDefinition</code> | Container definition hosting the runner. |
@@ -973,7 +973,8 @@ Any object.
973
973
  | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.spot">spot</a></code> | <code>boolean</code> | Use spot pricing for Fargate tasks. |
974
974
  | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.task">task</a></code> | <code>aws-cdk-lib.aws_ecs.FargateTaskDefinition</code> | Fargate task hosting the runner. |
975
975
  | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.securityGroup">securityGroup</a></code> | <code>aws-cdk-lib.aws_ec2.ISecurityGroup</code> | Security group attached to the task. |
976
- | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.vpc">vpc</a></code> | <code>aws-cdk-lib.aws_ec2.IVpc</code> | VPC used for hosting the task. |
976
+ | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.subnetSelection">subnetSelection</a></code> | <code>aws-cdk-lib.aws_ec2.SubnetSelection</code> | Subnets used for hosting the runner task. |
977
+ | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.vpc">vpc</a></code> | <code>aws-cdk-lib.aws_ec2.IVpc</code> | VPC used for hosting the runner task. |
977
978
 
978
979
  ---
979
980
 
@@ -997,7 +998,7 @@ public readonly assignPublicIp: boolean;
997
998
 
998
999
  - *Type:* boolean
999
1000
 
1000
- Whether task will have a public IP.
1001
+ Whether runner task will have a public IP.
1001
1002
 
1002
1003
  ---
1003
1004
 
@@ -1109,6 +1110,18 @@ Security group attached to the task.
1109
1110
 
1110
1111
  ---
1111
1112
 
1113
+ ##### `subnetSelection`<sup>Optional</sup> <a name="subnetSelection" id="@cloudsnorkel/cdk-github-runners.FargateRunner.property.subnetSelection"></a>
1114
+
1115
+ ```typescript
1116
+ public readonly subnetSelection: SubnetSelection;
1117
+ ```
1118
+
1119
+ - *Type:* aws-cdk-lib.aws_ec2.SubnetSelection
1120
+
1121
+ Subnets used for hosting the runner task.
1122
+
1123
+ ---
1124
+
1112
1125
  ##### `vpc`<sup>Optional</sup> <a name="vpc" id="@cloudsnorkel/cdk-github-runners.FargateRunner.property.vpc"></a>
1113
1126
 
1114
1127
  ```typescript
@@ -1117,7 +1130,7 @@ public readonly vpc: IVpc;
1117
1130
 
1118
1131
  - *Type:* aws-cdk-lib.aws_ec2.IVpc
1119
1132
 
1120
- VPC used for hosting the task.
1133
+ VPC used for hosting the runner task.
1121
1134
 
1122
1135
  ---
1123
1136
 
@@ -2347,6 +2360,7 @@ const containerImageBuilderProps: ContainerImageBuilderProps = { ... }
2347
2360
  | <code><a href="#@cloudsnorkel/cdk-github-runners.ContainerImageBuilderProps.property.logRemovalPolicy">logRemovalPolicy</a></code> | <code>aws-cdk-lib.RemovalPolicy</code> | Removal policy for logs of image builds. |
2348
2361
  | <code><a href="#@cloudsnorkel/cdk-github-runners.ContainerImageBuilderProps.property.logRetention">logRetention</a></code> | <code>aws-cdk-lib.aws_logs.RetentionDays</code> | The number of days log events are kept in CloudWatch Logs. |
2349
2362
  | <code><a href="#@cloudsnorkel/cdk-github-runners.ContainerImageBuilderProps.property.os">os</a></code> | <code><a href="#@cloudsnorkel/cdk-github-runners.Os">Os</a></code> | Image OS. |
2363
+ | <code><a href="#@cloudsnorkel/cdk-github-runners.ContainerImageBuilderProps.property.parentImage">parentImage</a></code> | <code>string</code> | Parent image for the new Docker Image. |
2350
2364
  | <code><a href="#@cloudsnorkel/cdk-github-runners.ContainerImageBuilderProps.property.rebuildInterval">rebuildInterval</a></code> | <code>aws-cdk-lib.Duration</code> | Schedule the image to be rebuilt every given interval. |
2351
2365
  | <code><a href="#@cloudsnorkel/cdk-github-runners.ContainerImageBuilderProps.property.runnerVersion">runnerVersion</a></code> | <code><a href="#@cloudsnorkel/cdk-github-runners.RunnerVersion">RunnerVersion</a></code> | Version of GitHub Runners to install. |
2352
2366
  | <code><a href="#@cloudsnorkel/cdk-github-runners.ContainerImageBuilderProps.property.securityGroup">securityGroup</a></code> | <code>aws-cdk-lib.aws_ec2.ISecurityGroup</code> | Security Group to assign to this instance. |
@@ -2428,6 +2442,21 @@ Image OS.
2428
2442
 
2429
2443
  ---
2430
2444
 
2445
+ ##### `parentImage`<sup>Optional</sup> <a name="parentImage" id="@cloudsnorkel/cdk-github-runners.ContainerImageBuilderProps.property.parentImage"></a>
2446
+
2447
+ ```typescript
2448
+ public readonly parentImage: string;
2449
+ ```
2450
+
2451
+ - *Type:* string
2452
+ - *Default:* 'mcr.microsoft.com/windows/servercore:ltsc2019-amd64'
2453
+
2454
+ Parent image for the new Docker Image.
2455
+
2456
+ You can use either Image Builder image ARN or public registry image.
2457
+
2458
+ ---
2459
+
2431
2460
  ##### `rebuildInterval`<sup>Optional</sup> <a name="rebuildInterval" id="@cloudsnorkel/cdk-github-runners.ContainerImageBuilderProps.property.rebuildInterval"></a>
2432
2461
 
2433
2462
  ```typescript
@@ -2523,6 +2552,7 @@ const fargateRunnerProps: FargateRunnerProps = { ... }
2523
2552
  | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.memoryLimitMiB">memoryLimitMiB</a></code> | <code>number</code> | The amount (in MiB) of memory used by the task. |
2524
2553
  | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.securityGroup">securityGroup</a></code> | <code>aws-cdk-lib.aws_ec2.ISecurityGroup</code> | Security Group to assign to the task. |
2525
2554
  | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.spot">spot</a></code> | <code>boolean</code> | Use Fargate spot capacity provider to save money. |
2555
+ | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.subnetSelection">subnetSelection</a></code> | <code>aws-cdk-lib.aws_ec2.SubnetSelection</code> | Subnets to run the runners in. |
2526
2556
  | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.vpc">vpc</a></code> | <code>aws-cdk-lib.aws_ec2.IVpc</code> | VPC to launch the runners in. |
2527
2557
 
2528
2558
  ---
@@ -2699,6 +2729,19 @@ Use Fargate spot capacity provider to save money.
2699
2729
 
2700
2730
  ---
2701
2731
 
2732
+ ##### `subnetSelection`<sup>Optional</sup> <a name="subnetSelection" id="@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.subnetSelection"></a>
2733
+
2734
+ ```typescript
2735
+ public readonly subnetSelection: SubnetSelection;
2736
+ ```
2737
+
2738
+ - *Type:* aws-cdk-lib.aws_ec2.SubnetSelection
2739
+ - *Default:* Fargate default
2740
+
2741
+ Subnets to run the runners in.
2742
+
2743
+ ---
2744
+
2702
2745
  ##### `vpc`<sup>Optional</sup> <a name="vpc" id="@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.vpc"></a>
2703
2746
 
2704
2747
  ```typescript
@@ -7432,7 +7432,7 @@ var require_dist_node6 = __commonJS({
7432
7432
  parse
7433
7433
  });
7434
7434
  }
7435
- var VERSION = "7.0.2";
7435
+ var VERSION = "7.0.3";
7436
7436
  var userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`;
7437
7437
  var DEFAULTS = {
7438
7438
  method: "GET",
@@ -7518,7 +7518,7 @@ var require_dist_node8 = __commonJS({
7518
7518
  var isPlainObject = require_is_plain_object();
7519
7519
  var nodeFetch = _interopDefault(require_lib3());
7520
7520
  var requestError = require_dist_node7();
7521
- var VERSION = "6.2.1";
7521
+ var VERSION = "6.2.2";
7522
7522
  function getBufferResponse(response) {
7523
7523
  return response.arrayBuffer();
7524
7524
  }
@@ -7988,7 +7988,7 @@ var require_dist_node10 = __commonJS({
7988
7988
  parse
7989
7989
  });
7990
7990
  }
7991
- var VERSION = "7.0.2";
7991
+ var VERSION = "7.0.3";
7992
7992
  var userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`;
7993
7993
  var DEFAULTS = {
7994
7994
  method: "GET",
@@ -8074,7 +8074,7 @@ var require_dist_node12 = __commonJS({
8074
8074
  var isPlainObject = require_is_plain_object();
8075
8075
  var nodeFetch = _interopDefault(require_lib3());
8076
8076
  var requestError = require_dist_node11();
8077
- var VERSION = "6.2.1";
8077
+ var VERSION = "6.2.2";
8078
8078
  function getBufferResponse(response) {
8079
8079
  return response.arrayBuffer();
8080
8080
  }
@@ -8228,7 +8228,7 @@ var require_dist_node13 = __commonJS({
8228
8228
  var request = require_dist_node12();
8229
8229
  var requestError = require_dist_node11();
8230
8230
  var btoa = _interopDefault(require_btoa_node());
8231
- var VERSION = "2.0.3";
8231
+ var VERSION = "2.0.4";
8232
8232
  function requestToOAuthBaseUrl(request2) {
8233
8233
  const endpointDefaults = request2.endpoint.DEFAULTS;
8234
8234
  return /^https:\/\/(api\.)?github\.com$/.test(endpointDefaults.baseUrl) ? "https://github.com" : endpointDefaults.baseUrl.replace("/api/v3", "");
@@ -8395,17 +8395,14 @@ var require_dist_node13 = __commonJS({
8395
8395
  ...requestOptions
8396
8396
  } = options;
8397
8397
  const request$1 = optionsRequest || request.request;
8398
- const response = await request$1(
8399
- "POST /applications/{client_id}/token/scoped",
8400
- {
8401
- headers: {
8402
- authorization: `basic ${btoa(`${clientId}:${clientSecret}`)}`
8403
- },
8404
- client_id: clientId,
8405
- access_token: token,
8406
- ...requestOptions
8407
- }
8408
- );
8398
+ const response = await request$1("POST /applications/{client_id}/token/scoped", {
8399
+ headers: {
8400
+ authorization: `basic ${btoa(`${clientId}:${clientSecret}`)}`
8401
+ },
8402
+ client_id: clientId,
8403
+ access_token: token,
8404
+ ...requestOptions
8405
+ });
8409
8406
  const authentication = Object.assign({
8410
8407
  clientType,
8411
8408
  clientId,
@@ -8422,16 +8419,13 @@ var require_dist_node13 = __commonJS({
8422
8419
  async function resetToken(options) {
8423
8420
  const request$1 = options.request || request.request;
8424
8421
  const auth = btoa(`${options.clientId}:${options.clientSecret}`);
8425
- const response = await request$1(
8426
- "PATCH /applications/{client_id}/token",
8427
- {
8428
- headers: {
8429
- authorization: `basic ${auth}`
8430
- },
8431
- client_id: options.clientId,
8432
- access_token: options.token
8433
- }
8434
- );
8422
+ const response = await request$1("PATCH /applications/{client_id}/token", {
8423
+ headers: {
8424
+ authorization: `basic ${auth}`
8425
+ },
8426
+ client_id: options.clientId,
8427
+ access_token: options.token
8428
+ });
8435
8429
  const authentication = {
8436
8430
  clientType: options.clientType,
8437
8431
  clientId: options.clientId,
@@ -8452,30 +8446,24 @@ var require_dist_node13 = __commonJS({
8452
8446
  async function deleteToken(options) {
8453
8447
  const request$1 = options.request || request.request;
8454
8448
  const auth = btoa(`${options.clientId}:${options.clientSecret}`);
8455
- return request$1(
8456
- "DELETE /applications/{client_id}/token",
8457
- {
8458
- headers: {
8459
- authorization: `basic ${auth}`
8460
- },
8461
- client_id: options.clientId,
8462
- access_token: options.token
8463
- }
8464
- );
8449
+ return request$1("DELETE /applications/{client_id}/token", {
8450
+ headers: {
8451
+ authorization: `basic ${auth}`
8452
+ },
8453
+ client_id: options.clientId,
8454
+ access_token: options.token
8455
+ });
8465
8456
  }
8466
8457
  async function deleteAuthorization(options) {
8467
8458
  const request$1 = options.request || request.request;
8468
8459
  const auth = btoa(`${options.clientId}:${options.clientSecret}`);
8469
- return request$1(
8470
- "DELETE /applications/{client_id}/grant",
8471
- {
8472
- headers: {
8473
- authorization: `basic ${auth}`
8474
- },
8475
- client_id: options.clientId,
8476
- access_token: options.token
8477
- }
8478
- );
8460
+ return request$1("DELETE /applications/{client_id}/grant", {
8461
+ headers: {
8462
+ authorization: `basic ${auth}`
8463
+ },
8464
+ client_id: options.clientId,
8465
+ access_token: options.token
8466
+ });
8479
8467
  }
8480
8468
  exports2.VERSION = VERSION;
8481
8469
  exports2.checkToken = checkToken;
@@ -8589,7 +8577,7 @@ var require_dist_node14 = __commonJS({
8589
8577
  endpoint.headers.authorization = `token ${token}`;
8590
8578
  return request2(endpoint);
8591
8579
  }
8592
- var VERSION = "4.0.2";
8580
+ var VERSION = "4.0.3";
8593
8581
  function createOAuthDeviceAuth(options) {
8594
8582
  const requestWithDefaults = options.request || request.request.defaults({
8595
8583
  headers: {
@@ -8637,7 +8625,7 @@ var require_dist_node15 = __commonJS({
8637
8625
  var authOauthDevice = require_dist_node14();
8638
8626
  var oauthMethods = require_dist_node13();
8639
8627
  var btoa = _interopDefault(require_btoa_node());
8640
- var VERSION = "2.0.3";
8628
+ var VERSION = "2.0.4";
8641
8629
  async function getAuthentication(state) {
8642
8630
  if ("code" in state.strategyOptions) {
8643
8631
  const {
@@ -12765,7 +12753,7 @@ var require_dist_node18 = __commonJS({
12765
12753
  parse
12766
12754
  });
12767
12755
  }
12768
- var VERSION = "7.0.2";
12756
+ var VERSION = "7.0.3";
12769
12757
  var userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`;
12770
12758
  var DEFAULTS = {
12771
12759
  method: "GET",
@@ -12851,7 +12839,7 @@ var require_dist_node20 = __commonJS({
12851
12839
  var isPlainObject = require_is_plain_object();
12852
12840
  var nodeFetch = _interopDefault(require_lib3());
12853
12841
  var requestError = require_dist_node19();
12854
- var VERSION = "6.2.1";
12842
+ var VERSION = "6.2.2";
12855
12843
  function getBufferResponse(response) {
12856
12844
  return response.arrayBuffer();
12857
12845
  }
@@ -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 c of n)if(c.type==="childList")for(const p of c.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&i(p)}).observe(document,{childList:!0,subtree:!0});function o(n){const c={};return n.integrity&&(c.integrity=n.integrity),n.referrerpolicy&&(c.referrerPolicy=n.referrerpolicy),n.crossorigin==="use-credentials"?c.credentials="include":n.crossorigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(n){if(n.ep)return;n.ep=!0;const c=o(n);fetch(n.href,c)}})();function ee(){}function Le(e){return e()}function Ce(){return Object.create(null)}function j(e){e.forEach(Le)}function Be(e){return typeof e=="function"}function De(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Me(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 v(){return I(" ")}function $e(){return I("")}function z(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 Ue(e){return e===""?null:+e}function je(e){return Array.from(e.childNodes)}function pe(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function B(e,t){e.value=t==null?"":t}let ke;function x(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++,x(t),Ke(t.$$)}for(x(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(),x(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,on_mount:c,on_destroy:p,after_update:u}=e.$$;n&&n.m(t,o),i||ve(()=>{const m=c.map(Le).filter(Be);p?p.push(...m):j(m),e.$$.on_mount=[]}),u.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,c,p,u=[-1]){const m=ke;x(e);const a=e.$$={fragment:null,ctx:null,props:c,update:ee,not_equal:n,bound:Ce(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(m?m.$$.context:[])),callbacks:Ce(),dirty:u,skip_bound:!1,root:t.target||m.$$.root};p&&p(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()}x(m)}class Xe{$destroy(){Ze(this,1),this.$destroy=ee}$on(t,o){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&&!Me(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function Oe(e){let t,o,i,n,c,p,u,m;return{c(){t=r("h3"),t.textContent="GitHub Enterprise Server Domain",o=v(),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>.`,c=v(),p=r("input"),s(p,"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,c),l(i,p),B(p,e[1]),u||(m=z(p,"input",e[15]),u=!0)},p(a,h){h&2&&p.value!==a[1]&&B(p,a[1])},d(a){a&&T(t),a&&T(o),a&&T(i),u=!1,m()}}}function He(e){let t,o,i,n,c,p,u,m,a,h,g,f,O,k,S,C,d,_,A,E,N;return{c(){t=r("h3"),t.textContent="Authentication Type",o=v(),i=r("div"),n=r("p"),n.textContent=`You can choose between creating a new app that will provide authentication for specific
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 c of n)if(c.type==="childList")for(const p of c.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&i(p)}).observe(document,{childList:!0,subtree:!0});function o(n){const c={};return n.integrity&&(c.integrity=n.integrity),n.referrerpolicy&&(c.referrerPolicy=n.referrerpolicy),n.crossorigin==="use-credentials"?c.credentials="include":n.crossorigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(n){if(n.ep)return;n.ep=!0;const c=o(n);fetch(n.href,c)}})();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 pe(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function z(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:c}=e.$$;n&&n.m(t,o),i||ve(()=>{const p=e.$$.on_mount.map(Le).filter(Ue);e.$$.on_destroy?e.$$.on_destroy.push(...p):j(p),e.$$.on_mount=[]}),c.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,c,p,u=[-1]){const v=ke;ee(e);const a=e.$$={fragment:null,ctx:[],props:c,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};p&&p(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,c,p,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>.`,c=b(),p=r("input"),s(p,"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,c),l(i,p),z(p,e[1]),u||(v=$(p,"input",e[15]),u=!0)},p(a,h){h&2&&p.value!==a[1]&&z(p,a[1])},d(a){a&&T(t),a&&T(o),a&&T(i),u=!1,v()}}}function He(e){let t,o,i,n,c,p,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.`,c=v(),p=r("div"),u=r("input"),m=v(),a=r("label"),a.innerHTML="New GitHub App <b>(recommended)</b>",h=v(),g=r("div"),f=r("input"),O=v(),k=r("label"),k.textContent="Existing GitHub App",S=v(),C=r("div"),d=r("input"),_=v(),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(p,"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(b,w){H(b,t,w),H(b,o,w),H(b,i,w),l(i,n),l(i,c),l(i,p),l(p,u),u.checked=u.__value===e[2],l(p,m),l(p,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=[z(u,"change",e[16]),z(f,"change",e[17]),z(d,"change",e[18])],E=!0)},p(b,w){w&4&&(u.checked=u.__value===b[2]),w&4&&(f.checked=f.__value===b[2]),w&4&&(d.checked=d.__value===b[2])},d(b){b&&T(t),b&&T(o),b&&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,c,p,u,m,a,h,g,f,O,k,S,C,d;return{c(){t=r("h2"),t.textContent="Personal Access Token",o=v(),i=r("div"),n=r("p"),c=I("The "),p=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=v(),S=r("input"),s(p,"href",m="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,c),l(n,p),l(p,u),l(n,a),l(n,h),l(n,g),l(n,f),l(n,O),l(i,k),l(i,S),B(S,e[7]),C||(d=z(S,"input",e[25]),C=!0)},p(_,A){A&2&&m!==(m="https://"+_[1]+"/settings/tokens")&&s(p,"href",m),A&128&&S.value!==_[7]&&B(S,_[7])},d(_){_&&T(t),_&&T(o),_&&T(i),C=!1,d()}}}function et(e){let t,o,i,n,c,p,u,m,a,h,g,f,O,k,S,C,d,_;return{c(){t=r("h3"),t.textContent="Existing App Details",o=v(),i=r("div"),n=r("p"),n.innerHTML=`Existing apps must have <code>actions</code> and <code>administration</code> write
14
- permissions. Don&#39;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>.`,c=v(),p=r("div"),u=r("label"),u.textContent="App Id",m=v(),a=r("div"),h=r("input"),g=v(),f=r("div"),O=r("label"),O.textContent="Private Key",k=v(),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(p,"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,c),l(i,p),l(p,u),l(p,m),l(p,a),l(a,h),B(h,e[5]),l(i,g),l(i,f),l(f,O),l(f,k),l(f,S),l(S,C),B(C,e[6]),d||(_=[z(h,"input",e[23]),z(C,"input",e[24])],d=!0)},p(A,E){E&32&&Ue(h.value)!==A[5]&&B(h,A[5]),E&64&&B(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,c,p,u,m,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=v(),i=r("div"),n=r("p"),n.textContent=`Choose whether to create a new personal app or organization app. A private personal app can
12
+ you have previously created an app, you can choose to use an existing app.`,c=b(),p=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(p,"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,c),l(i,p),l(p,u),u.checked=u.__value===e[2],l(p,v),l(p,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,c,p,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"),c=I("The "),p=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(p,"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,c),l(n,p),l(p,u),l(n,a),l(n,h),l(n,g),l(n,f),l(n,O),l(i,k),l(i,S),z(S,e[7]),C||(d=$(S,"input",e[25]),C=!0)},p(_,A){A&2&&v!==(v="https://"+_[1]+"/settings/tokens")&&s(p,"href",v),A&128&&S.value!==_[7]&&z(S,_[7])},d(_){_&&T(t),_&&T(o),_&&T(i),C=!1,d()}}}function et(e){let t,o,i,n,c,p,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&#39;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>.`,c=b(),p=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(p,"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,c),l(i,p),l(p,u),l(p,v),l(p,a),l(a,h),z(h,e[5]),l(i,g),l(i,f),l(f,O),l(f,k),l(f,S),l(S,C),z(C,e[6]),d||(_=[$(h,"input",e[23]),$(C,"input",e[24])],d=!0)},p(A,E){E&32&&$e(h.value)!==A[5]&&z(h,A[5]),E&64&&z(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,c,p,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.`,c=v(),p=r("div"),u=r("input"),m=v(),a=r("label"),a.textContent="User app",h=v(),g=r("div"),f=r("input"),O=v(),k=r("label"),k.textContent="Organization app",S=v(),E&&E.c(),C=v(),N&&N.c(),d=$e(),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(p,"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(b,w){H(b,t,w),H(b,o,w),H(b,i,w),l(i,n),l(i,c),l(i,p),l(p,u),u.checked=u.__value===e[3],l(p,m),l(p,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(b,C,w),N&&N.m(b,w),H(b,d,w),_||(A=[z(u,"change",e[19]),z(f,"change",e[20])],_=!0)},p(b,w){w&8&&(u.checked=u.__value===b[3]),w&8&&(f.checked=f.__value===b[3]),b[0]==="ghes"?E?E.p(b,w):(E=Ne(b),E.c(),E.m(i,null)):E&&(E.d(1),E=null),b[3]==="org"?N?N.p(b,w):(N=Ie(b),N.c(),N.m(d.parentNode,d)):N&&(N.d(1),N=null)},d(b){b&&T(t),b&&T(o),b&&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(),b&&T(C),N&&N.d(b),b&&T(d),_=!1,j(A)}}}function Ne(e){let t,o,i,n,c,p,u,m;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=v(),i=r("div"),n=r("input"),c=v(),p=r("label"),p.textContent="Public app",s(t,"class","pt-2"),s(n,"class","form-check-input"),s(n,"type","checkbox"),s(n,"id","public"),s(p,"class","form-check-label"),s(p,"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),B(n,e[10].public),l(i,c),l(i,p),u||(m=z(n,"change",e[21]),u=!0)},p(a,h){h&1024&&B(n,a[10].public)},d(a){a&&T(t),a&&T(o),a&&T(i),u=!1,m()}}}function Ie(e){let t,o,i,n,c,p,u,m,a,h,g,f,O,k,S,C;return{c(){t=r("h3"),t.textContent="Organization name",o=v(),i=r("div"),n=r("p"),c=I(`What is the slug for your organization? If your repositories have a URL like
18
- `),p=r("code"),u=I("https://"),m=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=v(),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,c),l(n,p),l(p,u),l(p,m),l(p,a),l(n,h),l(n,g),l(n,f),l(i,O),l(i,k),B(k,e[4]),S||(C=z(k,"input",e[22]),S=!0)},p(d,_){_&2&&pe(m,d[1]),_&16&&k.value!==d[4]&&B(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,c){H(n,t,c),l(t,o)},p(n,c){c&512&&pe(o,n[9]),c&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:ee,d(o){o&&T(t)}}}function Ge(e){let t,o,i,n,c,p;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"),c=I(e[1]),p=I(`
16
+ for repositories under that organization.`,c=b(),p=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(p,"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,c),l(i,p),l(p,u),u.checked=u.__value===e[3],l(p,v),l(p,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,c,p,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"),c=b(),p=r("label"),p.textContent="Public app",s(t,"class","pt-2"),s(n,"class","form-check-input"),s(n,"type","checkbox"),s(n,"id","public"),s(p,"class","form-check-label"),s(p,"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),z(n,e[10].public),l(i,c),l(i,p),u||(v=$(n,"change",e[21]),u=!0)},p(a,h){h&1024&&z(n,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,c,p,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"),c=I(`What is the slug for your organization? If your repositories have a URL like
18
+ `),p=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,c),l(n,p),l(p,u),l(p,v),l(p,a),l(n,h),l(n,g),l(n,f),l(i,O),l(i,k),z(k,e[4]),S||(C=$(k,"input",e[22]),S=!0)},p(d,_){_&2&&pe(v,d[1]),_&16&&k.value!==d[4]&&z(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,c){H(n,t,c),l(t,o)},p(n,c){c&512&&pe(o,n[9]),c&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,c,p;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"),c=I(e[1]),p=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,m){H(u,t,m),l(t,o),l(t,i),l(t,n),l(n,c),l(t,p)},p(u,m){m&2&&pe(c,u[1])},d(u){u&&T(t)}}}function it(e){let t,o,i,n,c,p,u,m,a,h,g,f,O,k,S,C,d,_,A,E,N,b,w,te,q,ne,Y,Z,Q,V,M,D,ce,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),$=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"),c=r("h1"),c.textContent="Setup GitHub Runners",p=v(),u=r("p"),m=I(`Answer all the questions on this page to automatically configure GitHub integration and get the
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,c),l(t,p)},p(u,v){v&2&&pe(c,u[1])},d(u){u&&T(t)}}}function it(e){let t,o,i,n,c,p,u,v,a,h,g,f,O,k,S,C,d,_,A,E,N,m,w,te,q,ne,Z,Q,V,X,D,B,ce,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),M=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"),c=r("h1"),c.textContent="Setup GitHub Runners",p=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
- to access it again, edit `),a=r("code"),a.textContent=`${ot}`,h=I(" and run the status function again."),g=v(),f=r("h3"),f.textContent="Choose GitHub Instance",O=v(),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=v(),d=r("div"),_=r("input"),A=v(),E=r("label"),E.textContent="GitHub.com",N=v(),b=r("div"),w=r("input"),te=v(),q=r("label"),q.textContent="GitHub Enterprise Server",ne=v(),R&&R.c(),Y=v(),P&&P.c(),Z=v(),L&&L.c(),Q=v(),V=r("h2"),V.textContent="Finish Setup",M=v(),D=r("div"),$.c(),ce=v(),U&&U.c(),fe=v(),J=r("button"),de=I(le),ye=v(),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(b,"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(D,"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,c),l(n,p),l(n,u),l(u,m),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,b),l(b,w),w.checked=w.__value===e[0],l(b,te),l(b,q),l(n,ne),R&&R.m(n,null),l(n,Y),P&&P.m(n,null),l(n,Z),L&&L.m(n,null),l(n,Q),l(n,V),l(n,M),l(n,D),$.m(D,null),l(D,ce),U&&U.m(D,null),l(D,fe),l(D,J),l(J,de),l(t,ye),l(t,K),l(K,W),_e||(we=[z(_,"change",e[12]),z(w,"change",e[14]),z(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,Y)):R&&(R.d(1),R=null),y[0]?P?P.p(y,G):(P=He(y),P.c(),P.m(n,Z)):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,Q))),re===(re=Ae(y))&&$?$.p(y,G):($.d(1),$=re(y),$&&($.c(),$.m(D,ce))),y[10].public&&y[2]==="newApp"?U?U.p(y,G):(U=Ge(y),U.c(),U.m(D,fe)):U&&(U.d(1),U=null),G&4&&le!==(le=Pe(y[2])+"")&&pe(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:ee,o:ee,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(),U&&U.d(),_e=!1,j(we)}}}const ot="INSERT_SECRET_ARN_HERE",ge="INSERT_TOKEN_HERE";function Re(e,t,o,i,n,c){return c||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(c=>{i(new Error(`${c} [${n.status}]`))}).catch(i)}).catch(i)})}function st(e,t,o){let i,n="INSERT_DOMAIN_HERE",c,p="user",u="ORGANIZATION",m="",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(Q){Q.preventDefault();function V(){const M=i==="ghes"?n:"github.com";switch(c){case"newApp":return me("domain",{domain:M}).then(D=>(document.getElementById("appform").submit(),Promise.resolve("Redirecting to GitHub...")));case"existingApp":return me("app",{appid:m,pk:a,domain:M});case"pat":return me("pat",{pat:h,domain:M})}}V().then(M=>{o(9,f=M),o(8,g=!0)}).catch(M=>{o(9,f=`${M}`),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(){c=this.__value,o(2,c)}function E(){c=this.__value,o(2,c)}function N(){c=this.__value,o(2,c)}function b(){p=this.__value,o(3,p)}function w(){p=this.__value,o(3,p)}function te(){O.public=this.value,o(10,O)}function q(){u=this.value,o(4,u)}function ne(){m=Ue(this.value),o(5,m)}function Y(){a=this.value,o(6,a)}function Z(){h=this.value,o(7,h)}return[i,n,c,p,u,m,a,h,g,f,O,k,C,S,d,_,A,E,N,b,w,te,q,ne,Y,Z]}class rt extends Xe{constructor(t){super(),Ve(this,t,st,it,De,{})}}new rt({target:document.getElementById("app")});
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",D=b(),B=r("div"),M.c(),ce=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(B,"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,c),l(n,p),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,D),l(n,B),M.m(B,null),l(B,ce),U&&U.m(B,null),l(B,fe),l(B,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))&&M?M.p(y,G):(M.d(1),M=re(y),M&&(M.c(),M.m(B,ce))),y[10].public&&y[2]==="newApp"?U?U.p(y,G):(U=Ge(y),U.c(),U.m(B,fe)):U&&(U.d(1),U=null),G&4&&le!==(le=Pe(y[2])+"")&&pe(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(),M.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,c){return c||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(c=>{i(new Error(`${c} [${n.status}]`))}).catch(i)}).catch(i)})}function st(e,t,o){let i,n="INSERT_DOMAIN_HERE",c,p="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 D=i==="ghes"?n:"github.com";switch(c){case"newApp":return me("domain",{domain:D}).then(B=>(document.getElementById("appform").submit(),Promise.resolve("Redirecting to GitHub...")));case"existingApp":return me("app",{appid:v,pk:a,domain:D});case"pat":return me("pat",{pat:h,domain:D})}}X().then(D=>{o(9,f=D),o(8,g=!0)}).catch(D=>{o(9,f=`${D}`),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(){c=this.__value,o(2,c)}function E(){c=this.__value,o(2,c)}function N(){c=this.__value,o(2,c)}function m(){p=this.__value,o(3,p)}function w(){p=this.__value,o(3,p)}function te(){O.public=this.value,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,c,p,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">
@@ -7432,7 +7432,7 @@ var require_dist_node6 = __commonJS({
7432
7432
  parse
7433
7433
  });
7434
7434
  }
7435
- var VERSION = "7.0.2";
7435
+ var VERSION = "7.0.3";
7436
7436
  var userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`;
7437
7437
  var DEFAULTS = {
7438
7438
  method: "GET",
@@ -7518,7 +7518,7 @@ var require_dist_node8 = __commonJS({
7518
7518
  var isPlainObject = require_is_plain_object();
7519
7519
  var nodeFetch = _interopDefault(require_lib3());
7520
7520
  var requestError = require_dist_node7();
7521
- var VERSION = "6.2.1";
7521
+ var VERSION = "6.2.2";
7522
7522
  function getBufferResponse(response) {
7523
7523
  return response.arrayBuffer();
7524
7524
  }
@@ -7988,7 +7988,7 @@ var require_dist_node10 = __commonJS({
7988
7988
  parse
7989
7989
  });
7990
7990
  }
7991
- var VERSION = "7.0.2";
7991
+ var VERSION = "7.0.3";
7992
7992
  var userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`;
7993
7993
  var DEFAULTS = {
7994
7994
  method: "GET",
@@ -8074,7 +8074,7 @@ var require_dist_node12 = __commonJS({
8074
8074
  var isPlainObject = require_is_plain_object();
8075
8075
  var nodeFetch = _interopDefault(require_lib3());
8076
8076
  var requestError = require_dist_node11();
8077
- var VERSION = "6.2.1";
8077
+ var VERSION = "6.2.2";
8078
8078
  function getBufferResponse(response) {
8079
8079
  return response.arrayBuffer();
8080
8080
  }
@@ -8228,7 +8228,7 @@ var require_dist_node13 = __commonJS({
8228
8228
  var request = require_dist_node12();
8229
8229
  var requestError = require_dist_node11();
8230
8230
  var btoa = _interopDefault(require_btoa_node());
8231
- var VERSION = "2.0.3";
8231
+ var VERSION = "2.0.4";
8232
8232
  function requestToOAuthBaseUrl(request2) {
8233
8233
  const endpointDefaults = request2.endpoint.DEFAULTS;
8234
8234
  return /^https:\/\/(api\.)?github\.com$/.test(endpointDefaults.baseUrl) ? "https://github.com" : endpointDefaults.baseUrl.replace("/api/v3", "");
@@ -8395,17 +8395,14 @@ var require_dist_node13 = __commonJS({
8395
8395
  ...requestOptions
8396
8396
  } = options;
8397
8397
  const request$1 = optionsRequest || request.request;
8398
- const response = await request$1(
8399
- "POST /applications/{client_id}/token/scoped",
8400
- {
8401
- headers: {
8402
- authorization: `basic ${btoa(`${clientId}:${clientSecret}`)}`
8403
- },
8404
- client_id: clientId,
8405
- access_token: token,
8406
- ...requestOptions
8407
- }
8408
- );
8398
+ const response = await request$1("POST /applications/{client_id}/token/scoped", {
8399
+ headers: {
8400
+ authorization: `basic ${btoa(`${clientId}:${clientSecret}`)}`
8401
+ },
8402
+ client_id: clientId,
8403
+ access_token: token,
8404
+ ...requestOptions
8405
+ });
8409
8406
  const authentication = Object.assign({
8410
8407
  clientType,
8411
8408
  clientId,
@@ -8422,16 +8419,13 @@ var require_dist_node13 = __commonJS({
8422
8419
  async function resetToken(options) {
8423
8420
  const request$1 = options.request || request.request;
8424
8421
  const auth = btoa(`${options.clientId}:${options.clientSecret}`);
8425
- const response = await request$1(
8426
- "PATCH /applications/{client_id}/token",
8427
- {
8428
- headers: {
8429
- authorization: `basic ${auth}`
8430
- },
8431
- client_id: options.clientId,
8432
- access_token: options.token
8433
- }
8434
- );
8422
+ const response = await request$1("PATCH /applications/{client_id}/token", {
8423
+ headers: {
8424
+ authorization: `basic ${auth}`
8425
+ },
8426
+ client_id: options.clientId,
8427
+ access_token: options.token
8428
+ });
8435
8429
  const authentication = {
8436
8430
  clientType: options.clientType,
8437
8431
  clientId: options.clientId,
@@ -8452,30 +8446,24 @@ var require_dist_node13 = __commonJS({
8452
8446
  async function deleteToken(options) {
8453
8447
  const request$1 = options.request || request.request;
8454
8448
  const auth = btoa(`${options.clientId}:${options.clientSecret}`);
8455
- return request$1(
8456
- "DELETE /applications/{client_id}/token",
8457
- {
8458
- headers: {
8459
- authorization: `basic ${auth}`
8460
- },
8461
- client_id: options.clientId,
8462
- access_token: options.token
8463
- }
8464
- );
8449
+ return request$1("DELETE /applications/{client_id}/token", {
8450
+ headers: {
8451
+ authorization: `basic ${auth}`
8452
+ },
8453
+ client_id: options.clientId,
8454
+ access_token: options.token
8455
+ });
8465
8456
  }
8466
8457
  async function deleteAuthorization(options) {
8467
8458
  const request$1 = options.request || request.request;
8468
8459
  const auth = btoa(`${options.clientId}:${options.clientSecret}`);
8469
- return request$1(
8470
- "DELETE /applications/{client_id}/grant",
8471
- {
8472
- headers: {
8473
- authorization: `basic ${auth}`
8474
- },
8475
- client_id: options.clientId,
8476
- access_token: options.token
8477
- }
8478
- );
8460
+ return request$1("DELETE /applications/{client_id}/grant", {
8461
+ headers: {
8462
+ authorization: `basic ${auth}`
8463
+ },
8464
+ client_id: options.clientId,
8465
+ access_token: options.token
8466
+ });
8479
8467
  }
8480
8468
  exports2.VERSION = VERSION;
8481
8469
  exports2.checkToken = checkToken;
@@ -8589,7 +8577,7 @@ var require_dist_node14 = __commonJS({
8589
8577
  endpoint.headers.authorization = `token ${token}`;
8590
8578
  return request2(endpoint);
8591
8579
  }
8592
- var VERSION = "4.0.2";
8580
+ var VERSION = "4.0.3";
8593
8581
  function createOAuthDeviceAuth(options) {
8594
8582
  const requestWithDefaults = options.request || request.request.defaults({
8595
8583
  headers: {
@@ -8637,7 +8625,7 @@ var require_dist_node15 = __commonJS({
8637
8625
  var authOauthDevice = require_dist_node14();
8638
8626
  var oauthMethods = require_dist_node13();
8639
8627
  var btoa = _interopDefault(require_btoa_node());
8640
- var VERSION = "2.0.3";
8628
+ var VERSION = "2.0.4";
8641
8629
  async function getAuthentication(state) {
8642
8630
  if ("code" in state.strategyOptions) {
8643
8631
  const {
@@ -12765,7 +12753,7 @@ var require_dist_node18 = __commonJS({
12765
12753
  parse
12766
12754
  });
12767
12755
  }
12768
- var VERSION = "7.0.2";
12756
+ var VERSION = "7.0.3";
12769
12757
  var userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`;
12770
12758
  var DEFAULTS = {
12771
12759
  method: "GET",
@@ -12851,7 +12839,7 @@ var require_dist_node20 = __commonJS({
12851
12839
  var isPlainObject = require_is_plain_object();
12852
12840
  var nodeFetch = _interopDefault(require_lib3());
12853
12841
  var requestError = require_dist_node19();
12854
- var VERSION = "6.2.1";
12842
+ var VERSION = "6.2.2";
12855
12843
  function getBufferResponse(response) {
12856
12844
  return response.arrayBuffer();
12857
12845
  }