@cloudsnorkel/cdk-github-runners 0.7.6 → 0.8.1

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
@@ -621,6 +621,7 @@ Any object.
621
621
  | <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunner.property.grantPrincipal">grantPrincipal</a></code> | <code>aws-cdk-lib.aws_iam.IPrincipal</code> | Grant principal used to add permissions to the runner role. |
622
622
  | <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunner.property.image">image</a></code> | <code><a href="#@cloudsnorkel/cdk-github-runners.RunnerImage">RunnerImage</a></code> | Docker image loaded with GitHub Actions Runner and its prerequisites. |
623
623
  | <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunner.property.labels">labels</a></code> | <code>string[]</code> | Labels associated with this provider. |
624
+ | <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunner.property.logGroup">logGroup</a></code> | <code>aws-cdk-lib.aws_logs.ILogGroup</code> | Log group where provided runners will save their logs. |
624
625
  | <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunner.property.project">project</a></code> | <code>aws-cdk-lib.aws_codebuild.Project</code> | CodeBuild project hosting the runner. |
625
626
 
626
627
  ---
@@ -687,6 +688,20 @@ Labels associated with this provider.
687
688
 
688
689
  ---
689
690
 
691
+ ##### `logGroup`<sup>Required</sup> <a name="logGroup" id="@cloudsnorkel/cdk-github-runners.CodeBuildRunner.property.logGroup"></a>
692
+
693
+ ```typescript
694
+ public readonly logGroup: ILogGroup;
695
+ ```
696
+
697
+ - *Type:* aws-cdk-lib.aws_logs.ILogGroup
698
+
699
+ Log group where provided runners will save their logs.
700
+
701
+ Note that this is not the job log, but the runner itself. It will not contain output from the GitHub Action but only metadata on its execution.
702
+
703
+ ---
704
+
690
705
  ##### `project`<sup>Required</sup> <a name="project" id="@cloudsnorkel/cdk-github-runners.CodeBuildRunner.property.project"></a>
691
706
 
692
707
  ```typescript
@@ -1106,6 +1121,7 @@ Any object.
1106
1121
  | <code><a href="#@cloudsnorkel/cdk-github-runners.Ec2Runner.property.connections">connections</a></code> | <code>aws-cdk-lib.aws_ec2.Connections</code> | The network connections associated with this resource. |
1107
1122
  | <code><a href="#@cloudsnorkel/cdk-github-runners.Ec2Runner.property.grantPrincipal">grantPrincipal</a></code> | <code>aws-cdk-lib.aws_iam.IPrincipal</code> | Grant principal used to add permissions to the runner role. |
1108
1123
  | <code><a href="#@cloudsnorkel/cdk-github-runners.Ec2Runner.property.labels">labels</a></code> | <code>string[]</code> | Labels associated with this provider. |
1124
+ | <code><a href="#@cloudsnorkel/cdk-github-runners.Ec2Runner.property.logGroup">logGroup</a></code> | <code>aws-cdk-lib.aws_logs.ILogGroup</code> | Log group where provided runners will save their logs. |
1109
1125
 
1110
1126
  ---
1111
1127
 
@@ -1157,6 +1173,20 @@ Labels associated with this provider.
1157
1173
 
1158
1174
  ---
1159
1175
 
1176
+ ##### `logGroup`<sup>Required</sup> <a name="logGroup" id="@cloudsnorkel/cdk-github-runners.Ec2Runner.property.logGroup"></a>
1177
+
1178
+ ```typescript
1179
+ public readonly logGroup: ILogGroup;
1180
+ ```
1181
+
1182
+ - *Type:* aws-cdk-lib.aws_logs.ILogGroup
1183
+
1184
+ Log group where provided runners will save their logs.
1185
+
1186
+ Note that this is not the job log, but the runner itself. It will not contain output from the GitHub Action but only metadata on its execution.
1187
+
1188
+ ---
1189
+
1160
1190
 
1161
1191
  ### FargateRunner <a name="FargateRunner" id="@cloudsnorkel/cdk-github-runners.FargateRunner"></a>
1162
1192
 
@@ -1310,6 +1340,7 @@ Any object.
1310
1340
  | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.grantPrincipal">grantPrincipal</a></code> | <code>aws-cdk-lib.aws_iam.IPrincipal</code> | Grant principal used to add permissions to the runner role. |
1311
1341
  | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.image">image</a></code> | <code><a href="#@cloudsnorkel/cdk-github-runners.RunnerImage">RunnerImage</a></code> | Docker image loaded with GitHub Actions Runner and its prerequisites. |
1312
1342
  | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.labels">labels</a></code> | <code>string[]</code> | Labels associated with this provider. |
1343
+ | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.logGroup">logGroup</a></code> | <code>aws-cdk-lib.aws_logs.ILogGroup</code> | Log group where provided runners will save their logs. |
1313
1344
  | <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.spot">spot</a></code> | <code>boolean</code> | Use spot pricing for Fargate tasks. |
1314
1345
  | <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. |
1315
1346
  | <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. |
@@ -1415,6 +1446,20 @@ Labels associated with this provider.
1415
1446
 
1416
1447
  ---
1417
1448
 
1449
+ ##### `logGroup`<sup>Required</sup> <a name="logGroup" id="@cloudsnorkel/cdk-github-runners.FargateRunner.property.logGroup"></a>
1450
+
1451
+ ```typescript
1452
+ public readonly logGroup: ILogGroup;
1453
+ ```
1454
+
1455
+ - *Type:* aws-cdk-lib.aws_logs.ILogGroup
1456
+
1457
+ Log group where provided runners will save their logs.
1458
+
1459
+ Note that this is not the job log, but the runner itself. It will not contain output from the GitHub Action but only metadata on its execution.
1460
+
1461
+ ---
1462
+
1418
1463
  ##### `spot`<sup>Required</sup> <a name="spot" id="@cloudsnorkel/cdk-github-runners.FargateRunner.property.spot"></a>
1419
1464
 
1420
1465
  ```typescript
@@ -1590,6 +1635,10 @@ new GitHubRunners(scope: Construct, id: string, props?: GitHubRunnersProps)
1590
1635
  | **Name** | **Description** |
1591
1636
  | --- | --- |
1592
1637
  | <code><a href="#@cloudsnorkel/cdk-github-runners.GitHubRunners.toString">toString</a></code> | Returns a string representation of this construct. |
1638
+ | <code><a href="#@cloudsnorkel/cdk-github-runners.GitHubRunners.metricFailed">metricFailed</a></code> | Metric for failed runner executions. |
1639
+ | <code><a href="#@cloudsnorkel/cdk-github-runners.GitHubRunners.metricJobCompleted">metricJobCompleted</a></code> | Metric for the number of GitHub Actions jobs completed. |
1640
+ | <code><a href="#@cloudsnorkel/cdk-github-runners.GitHubRunners.metricSucceeded">metricSucceeded</a></code> | Metric for successful executions. |
1641
+ | <code><a href="#@cloudsnorkel/cdk-github-runners.GitHubRunners.metricTime">metricTime</a></code> | Metric for the interval, in milliseconds, between the time the execution starts and the time it closes. |
1593
1642
 
1594
1643
  ---
1595
1644
 
@@ -1601,6 +1650,74 @@ public toString(): string
1601
1650
 
1602
1651
  Returns a string representation of this construct.
1603
1652
 
1653
+ ##### `metricFailed` <a name="metricFailed" id="@cloudsnorkel/cdk-github-runners.GitHubRunners.metricFailed"></a>
1654
+
1655
+ ```typescript
1656
+ public metricFailed(props?: MetricProps): Metric
1657
+ ```
1658
+
1659
+ Metric for failed runner executions.
1660
+
1661
+ A failed runner usually means the runner failed to start and so a job was never executed. It doesn't necessarily mean the job was executed and failed. For that, see {@link metricJobCompleted}.
1662
+
1663
+ ###### `props`<sup>Optional</sup> <a name="props" id="@cloudsnorkel/cdk-github-runners.GitHubRunners.metricFailed.parameter.props"></a>
1664
+
1665
+ - *Type:* aws-cdk-lib.aws_cloudwatch.MetricProps
1666
+
1667
+ ---
1668
+
1669
+ ##### `metricJobCompleted` <a name="metricJobCompleted" id="@cloudsnorkel/cdk-github-runners.GitHubRunners.metricJobCompleted"></a>
1670
+
1671
+ ```typescript
1672
+ public metricJobCompleted(props?: MetricProps): Metric
1673
+ ```
1674
+
1675
+ Metric for the number of GitHub Actions jobs completed.
1676
+
1677
+ It has `ProviderLabels` and `Status` dimensions. The status can be one of "Succeeded", "SucceededWithIssues", "Failed", "Canceled", "Skipped", or "Abandoned".
1678
+
1679
+ **WARNING:** this method creates a metric filter for each provider. Each metric has a status dimension with six possible values. These resources may incur cost.
1680
+
1681
+ ###### `props`<sup>Optional</sup> <a name="props" id="@cloudsnorkel/cdk-github-runners.GitHubRunners.metricJobCompleted.parameter.props"></a>
1682
+
1683
+ - *Type:* aws-cdk-lib.aws_cloudwatch.MetricProps
1684
+
1685
+ ---
1686
+
1687
+ ##### `metricSucceeded` <a name="metricSucceeded" id="@cloudsnorkel/cdk-github-runners.GitHubRunners.metricSucceeded"></a>
1688
+
1689
+ ```typescript
1690
+ public metricSucceeded(props?: MetricProps): Metric
1691
+ ```
1692
+
1693
+ Metric for successful executions.
1694
+
1695
+ A successful execution doesn't always mean a runner was started. It can be successful even without any label matches.
1696
+
1697
+ A successful runner doesn't mean the job it executed was successful. For that, see {@link metricJobCompleted}.
1698
+
1699
+ ###### `props`<sup>Optional</sup> <a name="props" id="@cloudsnorkel/cdk-github-runners.GitHubRunners.metricSucceeded.parameter.props"></a>
1700
+
1701
+ - *Type:* aws-cdk-lib.aws_cloudwatch.MetricProps
1702
+
1703
+ ---
1704
+
1705
+ ##### `metricTime` <a name="metricTime" id="@cloudsnorkel/cdk-github-runners.GitHubRunners.metricTime"></a>
1706
+
1707
+ ```typescript
1708
+ public metricTime(props?: MetricProps): Metric
1709
+ ```
1710
+
1711
+ Metric for the interval, in milliseconds, between the time the execution starts and the time it closes.
1712
+
1713
+ This time may be longer than the time the runner took.
1714
+
1715
+ ###### `props`<sup>Optional</sup> <a name="props" id="@cloudsnorkel/cdk-github-runners.GitHubRunners.metricTime.parameter.props"></a>
1716
+
1717
+ - *Type:* aws-cdk-lib.aws_cloudwatch.MetricProps
1718
+
1719
+ ---
1720
+
1604
1721
  #### Static Functions <a name="Static Functions" id="Static Functions"></a>
1605
1722
 
1606
1723
  | **Name** | **Description** |
@@ -2083,6 +2200,7 @@ Any object.
2083
2200
  | <code><a href="#@cloudsnorkel/cdk-github-runners.LambdaRunner.property.grantPrincipal">grantPrincipal</a></code> | <code>aws-cdk-lib.aws_iam.IPrincipal</code> | Grant principal used to add permissions to the runner role. |
2084
2201
  | <code><a href="#@cloudsnorkel/cdk-github-runners.LambdaRunner.property.image">image</a></code> | <code><a href="#@cloudsnorkel/cdk-github-runners.RunnerImage">RunnerImage</a></code> | Docker image loaded with GitHub Actions Runner and its prerequisites. |
2085
2202
  | <code><a href="#@cloudsnorkel/cdk-github-runners.LambdaRunner.property.labels">labels</a></code> | <code>string[]</code> | Labels associated with this provider. |
2203
+ | <code><a href="#@cloudsnorkel/cdk-github-runners.LambdaRunner.property.logGroup">logGroup</a></code> | <code>aws-cdk-lib.aws_logs.ILogGroup</code> | Log group where provided runners will save their logs. |
2086
2204
 
2087
2205
  ---
2088
2206
 
@@ -2160,6 +2278,20 @@ Labels associated with this provider.
2160
2278
 
2161
2279
  ---
2162
2280
 
2281
+ ##### `logGroup`<sup>Required</sup> <a name="logGroup" id="@cloudsnorkel/cdk-github-runners.LambdaRunner.property.logGroup"></a>
2282
+
2283
+ ```typescript
2284
+ public readonly logGroup: ILogGroup;
2285
+ ```
2286
+
2287
+ - *Type:* aws-cdk-lib.aws_logs.ILogGroup
2288
+
2289
+ Log group where provided runners will save their logs.
2290
+
2291
+ Note that this is not the job log, but the runner itself. It will not contain output from the GitHub Action but only metadata on its execution.
2292
+
2293
+ ---
2294
+
2163
2295
  #### Constants <a name="Constants" id="Constants"></a>
2164
2296
 
2165
2297
  | **Name** | **Type** | **Description** |
@@ -2585,6 +2717,7 @@ const codeBuildImageBuilderProps: CodeBuildImageBuilderProps = { ... }
2585
2717
  | --- | --- | --- |
2586
2718
  | <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildImageBuilderProps.property.dockerfilePath">dockerfilePath</a></code> | <code>string</code> | Path to Dockerfile to be built. |
2587
2719
  | <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildImageBuilderProps.property.architecture">architecture</a></code> | <code><a href="#@cloudsnorkel/cdk-github-runners.Architecture">Architecture</a></code> | Image architecture. |
2720
+ | <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildImageBuilderProps.property.buildImage">buildImage</a></code> | <code>aws-cdk-lib.aws_codebuild.IBuildImage</code> | Build image to use in CodeBuild. |
2588
2721
  | <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildImageBuilderProps.property.computeType">computeType</a></code> | <code>aws-cdk-lib.aws_codebuild.ComputeType</code> | The type of compute to use for this build. |
2589
2722
  | <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildImageBuilderProps.property.logRemovalPolicy">logRemovalPolicy</a></code> | <code>aws-cdk-lib.RemovalPolicy</code> | Removal policy for logs of image builds. |
2590
2723
  | <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildImageBuilderProps.property.logRetention">logRetention</a></code> | <code>aws-cdk-lib.aws_logs.RetentionDays</code> | The number of days log events are kept in CloudWatch Logs. |
@@ -2625,6 +2758,23 @@ Image architecture.
2625
2758
 
2626
2759
  ---
2627
2760
 
2761
+ ##### `buildImage`<sup>Optional</sup> <a name="buildImage" id="@cloudsnorkel/cdk-github-runners.CodeBuildImageBuilderProps.property.buildImage"></a>
2762
+
2763
+ ```typescript
2764
+ public readonly buildImage: IBuildImage;
2765
+ ```
2766
+
2767
+ - *Type:* aws-cdk-lib.aws_codebuild.IBuildImage
2768
+ - *Default:* Ubuntu 20.04 for x64 and Amazon Linux 2 for ARM64
2769
+
2770
+ Build image to use in CodeBuild.
2771
+
2772
+ This is the image that's going to run the code that builds the runner image.
2773
+
2774
+ The only action taken in CodeBuild is running `docker build`. You would therefore not need to change this setting often.
2775
+
2776
+ ---
2777
+
2628
2778
  ##### `computeType`<sup>Optional</sup> <a name="computeType" id="@cloudsnorkel/cdk-github-runners.CodeBuildImageBuilderProps.property.computeType"></a>
2629
2779
 
2630
2780
  ```typescript
@@ -5788,6 +5938,7 @@ grantable for the status function.
5788
5938
  | <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProvider.property.grantPrincipal">grantPrincipal</a></code> | <code>aws-cdk-lib.aws_iam.IPrincipal</code> | The principal to grant permissions to. |
5789
5939
  | <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProvider.property.node">node</a></code> | <code>constructs.Node</code> | The tree node. |
5790
5940
  | <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProvider.property.labels">labels</a></code> | <code>string[]</code> | GitHub Actions labels used for this provider. |
5941
+ | <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProvider.property.logGroup">logGroup</a></code> | <code>aws-cdk-lib.aws_logs.ILogGroup</code> | Log group where provided runners will save their logs. |
5791
5942
 
5792
5943
  ---
5793
5944
 
@@ -5843,6 +5994,20 @@ job's labels, this provider will be chosen and spawn a new runner.
5843
5994
 
5844
5995
  ---
5845
5996
 
5997
+ ##### `logGroup`<sup>Required</sup> <a name="logGroup" id="@cloudsnorkel/cdk-github-runners.IRunnerProvider.property.logGroup"></a>
5998
+
5999
+ ```typescript
6000
+ public readonly logGroup: ILogGroup;
6001
+ ```
6002
+
6003
+ - *Type:* aws-cdk-lib.aws_logs.ILogGroup
6004
+
6005
+ Log group where provided runners will save their logs.
6006
+
6007
+ Note that this is not the job log, but the runner itself. It will not contain output from the GitHub Action but only metadata on its execution.
6008
+
6009
+ ---
6010
+
5846
6011
  ### IRunnerProviderStatus <a name="IRunnerProviderStatus" id="@cloudsnorkel/cdk-github-runners.IRunnerProviderStatus"></a>
5847
6012
 
5848
6013
  - *Implemented By:* <a href="#@cloudsnorkel/cdk-github-runners.IRunnerProviderStatus">IRunnerProviderStatus</a>
@@ -5858,6 +6023,7 @@ Interface for runner image status used by status.json.
5858
6023
  | <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProviderStatus.property.type">type</a></code> | <code>string</code> | Runner provider type. |
5859
6024
  | <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProviderStatus.property.ami">ami</a></code> | <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerAmiStatus">IRunnerAmiStatus</a></code> | Details about AMI used by this runner provider. |
5860
6025
  | <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProviderStatus.property.image">image</a></code> | <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerImageStatus">IRunnerImageStatus</a></code> | Details about Docker image used by this runner provider. |
6026
+ | <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProviderStatus.property.logGroup">logGroup</a></code> | <code>string</code> | Log group for runners. |
5861
6027
  | <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProviderStatus.property.roleArn">roleArn</a></code> | <code>string</code> | Role attached to runners. |
5862
6028
  | <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProviderStatus.property.securityGroups">securityGroups</a></code> | <code>string[]</code> | Security groups attached to runners. |
5863
6029
  | <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProviderStatus.property.vpcArn">vpcArn</a></code> | <code>string</code> | VPC where runners will be launched. |
@@ -5912,6 +6078,18 @@ Details about Docker image used by this runner provider.
5912
6078
 
5913
6079
  ---
5914
6080
 
6081
+ ##### `logGroup`<sup>Optional</sup> <a name="logGroup" id="@cloudsnorkel/cdk-github-runners.IRunnerProviderStatus.property.logGroup"></a>
6082
+
6083
+ ```typescript
6084
+ public readonly logGroup: string;
6085
+ ```
6086
+
6087
+ - *Type:* string
6088
+
6089
+ Log group for runners.
6090
+
6091
+ ---
6092
+
5915
6093
  ##### `roleArn`<sup>Optional</sup> <a name="roleArn" id="@cloudsnorkel/cdk-github-runners.IRunnerProviderStatus.property.roleArn"></a>
5916
6094
 
5917
6095
  ```typescript
@@ -6913,7 +6913,9 @@ var require_lib3 = __commonJS({
6913
6913
  if (signal && signal.aborted) {
6914
6914
  return;
6915
6915
  }
6916
- destroyStream(response.body, err);
6916
+ if (response && response.body) {
6917
+ destroyStream(response.body, err);
6918
+ }
6917
6919
  });
6918
6920
  if (parseInt(process.version.substring(1)) < 14) {
6919
6921
  req.on("socket", function(s) {
@@ -7689,7 +7691,7 @@ var require_dist_node6 = __commonJS({
7689
7691
  parse
7690
7692
  });
7691
7693
  }
7692
- var VERSION = "7.0.3";
7694
+ var VERSION = "7.0.5";
7693
7695
  var userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`;
7694
7696
  var DEFAULTS = {
7695
7697
  method: "GET",
@@ -7775,7 +7777,7 @@ var require_dist_node8 = __commonJS({
7775
7777
  var isPlainObject = require_is_plain_object();
7776
7778
  var nodeFetch = _interopDefault(require_lib3());
7777
7779
  var requestError = require_dist_node7();
7778
- var VERSION = "6.2.2";
7780
+ var VERSION = "6.2.3";
7779
7781
  function getBufferResponse(response) {
7780
7782
  return response.arrayBuffer();
7781
7783
  }
@@ -8248,7 +8250,7 @@ var require_dist_node10 = __commonJS({
8248
8250
  parse
8249
8251
  });
8250
8252
  }
8251
- var VERSION = "7.0.3";
8253
+ var VERSION = "7.0.5";
8252
8254
  var userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`;
8253
8255
  var DEFAULTS = {
8254
8256
  method: "GET",
@@ -8280,7 +8282,7 @@ var require_dist_node11 = __commonJS({
8280
8282
  var isPlainObject = require_is_plain_object();
8281
8283
  var nodeFetch = _interopDefault(require_lib3());
8282
8284
  var requestError = require_dist_node7();
8283
- var VERSION = "6.2.2";
8285
+ var VERSION = "6.2.3";
8284
8286
  function getBufferResponse(response) {
8285
8287
  return response.arrayBuffer();
8286
8288
  }
@@ -8437,7 +8439,7 @@ var require_dist_node12 = __commonJS({
8437
8439
  var request = require_dist_node11();
8438
8440
  var requestError = require_dist_node7();
8439
8441
  var btoa = _interopDefault(require_btoa_node());
8440
- var VERSION = "2.0.4";
8442
+ var VERSION = "2.0.5";
8441
8443
  function requestToOAuthBaseUrl(request2) {
8442
8444
  const endpointDefaults = request2.endpoint.DEFAULTS;
8443
8445
  return /^https:\/\/(api\.)?github\.com$/.test(endpointDefaults.baseUrl) ? "https://github.com" : endpointDefaults.baseUrl.replace("/api/v3", "");
@@ -8796,7 +8798,7 @@ var require_dist_node13 = __commonJS({
8796
8798
  endpoint.headers.authorization = `token ${token}`;
8797
8799
  return request2(endpoint);
8798
8800
  }
8799
- var VERSION = "4.0.3";
8801
+ var VERSION = "4.0.4";
8800
8802
  function createOAuthDeviceAuth(options) {
8801
8803
  const requestWithDefaults = options.request || request.request.defaults({
8802
8804
  headers: {
@@ -8844,7 +8846,7 @@ var require_dist_node14 = __commonJS({
8844
8846
  var authOauthDevice = require_dist_node13();
8845
8847
  var oauthMethods = require_dist_node12();
8846
8848
  var btoa = _interopDefault(require_btoa_node());
8847
- var VERSION = "2.1.0";
8849
+ var VERSION = "2.1.1";
8848
8850
  async function getAuthentication(state) {
8849
8851
  if ("code" in state.strategyOptions) {
8850
8852
  const {
@@ -8901,7 +8903,7 @@ var require_dist_node14 = __commonJS({
8901
8903
  }
8902
8904
  const currentAuthentication = state.authentication;
8903
8905
  if ("expiresAt" in currentAuthentication) {
8904
- if (options.type === "refresh" || new Date(currentAuthentication.expiresAt) < new Date()) {
8906
+ if (options.type === "refresh" || new Date(currentAuthentication.expiresAt) < /* @__PURE__ */ new Date()) {
8905
8907
  const {
8906
8908
  authentication
8907
8909
  } = await oauthMethods.refreshToken({
@@ -19126,7 +19128,7 @@ var require_dist_node17 = __commonJS({
19126
19128
  parse
19127
19129
  });
19128
19130
  }
19129
- var VERSION = "7.0.3";
19131
+ var VERSION = "7.0.5";
19130
19132
  var userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`;
19131
19133
  var DEFAULTS = {
19132
19134
  method: "GET",
@@ -19158,7 +19160,7 @@ var require_dist_node18 = __commonJS({
19158
19160
  var isPlainObject = require_is_plain_object();
19159
19161
  var nodeFetch = _interopDefault(require_lib3());
19160
19162
  var requestError = require_dist_node7();
19161
- var VERSION = "6.2.2";
19163
+ var VERSION = "6.2.3";
19162
19164
  function getBufferResponse(response) {
19163
19165
  return response.arrayBuffer();
19164
19166
  }
@@ -20088,7 +20090,7 @@ var require_dist_node23 = __commonJS({
20088
20090
  }
20089
20091
  const currentAuthentication = state.authentication;
20090
20092
  if ("expiresAt" in currentAuthentication) {
20091
- if (options.type === "refresh" || new Date(currentAuthentication.expiresAt) < new Date()) {
20093
+ if (options.type === "refresh" || new Date(currentAuthentication.expiresAt) < /* @__PURE__ */ new Date()) {
20092
20094
  const {
20093
20095
  authentication
20094
20096
  } = await oauthMethods.refreshToken({
@@ -20476,7 +20478,7 @@ var require_dist_node24 = __commonJS({
20476
20478
  const repositorySelection = repositorySelectionOptional || "all";
20477
20479
  const repositoryIds = repositories ? repositories.map((r) => r.id) : void 0;
20478
20480
  const repositoryNames = repositories ? repositories.map((repo) => repo.name) : void 0;
20479
- const createdAt = new Date().toISOString();
20481
+ const createdAt = (/* @__PURE__ */ new Date()).toISOString();
20480
20482
  await set(state.cache, optionsWithInstallationTokenFromState, {
20481
20483
  token,
20482
20484
  createdAt,
@@ -20557,7 +20559,7 @@ var require_dist_node24 = __commonJS({
20557
20559
  if (typeof error.response.headers.date === "undefined") {
20558
20560
  throw error;
20559
20561
  }
20560
- const diff = Math.floor((Date.parse(error.response.headers.date) - Date.parse(new Date().toString())) / 1e3);
20562
+ const diff = Math.floor((Date.parse(error.response.headers.date) - Date.parse((/* @__PURE__ */ new Date()).toString())) / 1e3);
20561
20563
  state.log.warn(error.message);
20562
20564
  state.log.warn(`[@octokit/auth-app] GitHub API time and system time are different by ${diff} seconds. Retrying request with the difference accounted for.`);
20563
20565
  const {
@@ -20590,7 +20592,7 @@ var require_dist_node24 = __commonJS({
20590
20592
  return sendRequestWithRetries(state, request2, endpoint, createdAt);
20591
20593
  }
20592
20594
  async function sendRequestWithRetries(state, request2, options, createdAt, retries = 0) {
20593
- const timeSinceTokenCreationInMs = +new Date() - +new Date(createdAt);
20595
+ const timeSinceTokenCreationInMs = +/* @__PURE__ */ new Date() - +new Date(createdAt);
20594
20596
  try {
20595
20597
  return await request2(options);
20596
20598
  } catch (error) {
@@ -7056,7 +7056,9 @@ var require_lib3 = __commonJS({
7056
7056
  if (signal && signal.aborted) {
7057
7057
  return;
7058
7058
  }
7059
- destroyStream(response2.body, err);
7059
+ if (response2 && response2.body) {
7060
+ destroyStream(response2.body, err);
7061
+ }
7060
7062
  });
7061
7063
  if (parseInt(process.version.substring(1)) < 14) {
7062
7064
  req.on("socket", function(s) {
@@ -6913,7 +6913,9 @@ var require_lib3 = __commonJS({
6913
6913
  if (signal && signal.aborted) {
6914
6914
  return;
6915
6915
  }
6916
- destroyStream(response.body, err);
6916
+ if (response && response.body) {
6917
+ destroyStream(response.body, err);
6918
+ }
6917
6919
  });
6918
6920
  if (parseInt(process.version.substring(1)) < 14) {
6919
6921
  req.on("socket", function(s) {
@@ -7689,7 +7691,7 @@ var require_dist_node6 = __commonJS({
7689
7691
  parse
7690
7692
  });
7691
7693
  }
7692
- var VERSION = "7.0.3";
7694
+ var VERSION = "7.0.5";
7693
7695
  var userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`;
7694
7696
  var DEFAULTS = {
7695
7697
  method: "GET",
@@ -7775,7 +7777,7 @@ var require_dist_node8 = __commonJS({
7775
7777
  var isPlainObject = require_is_plain_object();
7776
7778
  var nodeFetch = _interopDefault(require_lib3());
7777
7779
  var requestError = require_dist_node7();
7778
- var VERSION = "6.2.2";
7780
+ var VERSION = "6.2.3";
7779
7781
  function getBufferResponse(response) {
7780
7782
  return response.arrayBuffer();
7781
7783
  }
@@ -8248,7 +8250,7 @@ var require_dist_node10 = __commonJS({
8248
8250
  parse
8249
8251
  });
8250
8252
  }
8251
- var VERSION = "7.0.3";
8253
+ var VERSION = "7.0.5";
8252
8254
  var userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`;
8253
8255
  var DEFAULTS = {
8254
8256
  method: "GET",
@@ -8280,7 +8282,7 @@ var require_dist_node11 = __commonJS({
8280
8282
  var isPlainObject = require_is_plain_object();
8281
8283
  var nodeFetch = _interopDefault(require_lib3());
8282
8284
  var requestError = require_dist_node7();
8283
- var VERSION = "6.2.2";
8285
+ var VERSION = "6.2.3";
8284
8286
  function getBufferResponse(response) {
8285
8287
  return response.arrayBuffer();
8286
8288
  }
@@ -8437,7 +8439,7 @@ var require_dist_node12 = __commonJS({
8437
8439
  var request = require_dist_node11();
8438
8440
  var requestError = require_dist_node7();
8439
8441
  var btoa = _interopDefault(require_btoa_node());
8440
- var VERSION = "2.0.4";
8442
+ var VERSION = "2.0.5";
8441
8443
  function requestToOAuthBaseUrl(request2) {
8442
8444
  const endpointDefaults = request2.endpoint.DEFAULTS;
8443
8445
  return /^https:\/\/(api\.)?github\.com$/.test(endpointDefaults.baseUrl) ? "https://github.com" : endpointDefaults.baseUrl.replace("/api/v3", "");
@@ -8796,7 +8798,7 @@ var require_dist_node13 = __commonJS({
8796
8798
  endpoint.headers.authorization = `token ${token}`;
8797
8799
  return request2(endpoint);
8798
8800
  }
8799
- var VERSION = "4.0.3";
8801
+ var VERSION = "4.0.4";
8800
8802
  function createOAuthDeviceAuth(options) {
8801
8803
  const requestWithDefaults = options.request || request.request.defaults({
8802
8804
  headers: {
@@ -8844,7 +8846,7 @@ var require_dist_node14 = __commonJS({
8844
8846
  var authOauthDevice = require_dist_node13();
8845
8847
  var oauthMethods = require_dist_node12();
8846
8848
  var btoa = _interopDefault(require_btoa_node());
8847
- var VERSION = "2.1.0";
8849
+ var VERSION = "2.1.1";
8848
8850
  async function getAuthentication(state) {
8849
8851
  if ("code" in state.strategyOptions) {
8850
8852
  const {
@@ -8901,7 +8903,7 @@ var require_dist_node14 = __commonJS({
8901
8903
  }
8902
8904
  const currentAuthentication = state.authentication;
8903
8905
  if ("expiresAt" in currentAuthentication) {
8904
- if (options.type === "refresh" || new Date(currentAuthentication.expiresAt) < new Date()) {
8906
+ if (options.type === "refresh" || new Date(currentAuthentication.expiresAt) < /* @__PURE__ */ new Date()) {
8905
8907
  const {
8906
8908
  authentication
8907
8909
  } = await oauthMethods.refreshToken({
@@ -19126,7 +19128,7 @@ var require_dist_node17 = __commonJS({
19126
19128
  parse
19127
19129
  });
19128
19130
  }
19129
- var VERSION = "7.0.3";
19131
+ var VERSION = "7.0.5";
19130
19132
  var userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`;
19131
19133
  var DEFAULTS = {
19132
19134
  method: "GET",
@@ -19158,7 +19160,7 @@ var require_dist_node18 = __commonJS({
19158
19160
  var isPlainObject = require_is_plain_object();
19159
19161
  var nodeFetch = _interopDefault(require_lib3());
19160
19162
  var requestError = require_dist_node7();
19161
- var VERSION = "6.2.2";
19163
+ var VERSION = "6.2.3";
19162
19164
  function getBufferResponse(response) {
19163
19165
  return response.arrayBuffer();
19164
19166
  }
@@ -20088,7 +20090,7 @@ var require_dist_node23 = __commonJS({
20088
20090
  }
20089
20091
  const currentAuthentication = state.authentication;
20090
20092
  if ("expiresAt" in currentAuthentication) {
20091
- if (options.type === "refresh" || new Date(currentAuthentication.expiresAt) < new Date()) {
20093
+ if (options.type === "refresh" || new Date(currentAuthentication.expiresAt) < /* @__PURE__ */ new Date()) {
20092
20094
  const {
20093
20095
  authentication
20094
20096
  } = await oauthMethods.refreshToken({
@@ -20476,7 +20478,7 @@ var require_dist_node24 = __commonJS({
20476
20478
  const repositorySelection = repositorySelectionOptional || "all";
20477
20479
  const repositoryIds = repositories ? repositories.map((r) => r.id) : void 0;
20478
20480
  const repositoryNames = repositories ? repositories.map((repo) => repo.name) : void 0;
20479
- const createdAt = new Date().toISOString();
20481
+ const createdAt = (/* @__PURE__ */ new Date()).toISOString();
20480
20482
  await set(state.cache, optionsWithInstallationTokenFromState, {
20481
20483
  token,
20482
20484
  createdAt,
@@ -20557,7 +20559,7 @@ var require_dist_node24 = __commonJS({
20557
20559
  if (typeof error.response.headers.date === "undefined") {
20558
20560
  throw error;
20559
20561
  }
20560
- const diff = Math.floor((Date.parse(error.response.headers.date) - Date.parse(new Date().toString())) / 1e3);
20562
+ const diff = Math.floor((Date.parse(error.response.headers.date) - Date.parse((/* @__PURE__ */ new Date()).toString())) / 1e3);
20561
20563
  state.log.warn(error.message);
20562
20564
  state.log.warn(`[@octokit/auth-app] GitHub API time and system time are different by ${diff} seconds. Retrying request with the difference accounted for.`);
20563
20565
  const {
@@ -20590,7 +20592,7 @@ var require_dist_node24 = __commonJS({
20590
20592
  return sendRequestWithRetries(state, request2, endpoint, createdAt);
20591
20593
  }
20592
20594
  async function sendRequestWithRetries(state, request2, options, createdAt, retries = 0) {
20593
- const timeSinceTokenCreationInMs = +new Date() - +new Date(createdAt);
20595
+ const timeSinceTokenCreationInMs = +/* @__PURE__ */ new Date() - +new Date(createdAt);
20594
20596
  try {
20595
20597
  return await request2(options);
20596
20598
  } catch (error) {