@cloudsnorkel/cdk-github-runners 0.5.2 → 0.5.3
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 +61 -27
- package/API.md +31 -4
- package/lib/lambdas/delete-runner/index.js +38 -50
- package/lib/lambdas/setup/index.html +12 -12
- package/lib/lambdas/status/index.js +38 -50
- package/lib/lambdas/token-retriever/index.js +38 -50
- package/lib/lambdas/update-lambda/index.js +1267 -1124
- package/lib/providers/codebuild.js +1 -1
- package/lib/providers/common.js +3 -3
- package/lib/providers/fargate.d.ts +12 -2
- package/lib/providers/fargate.js +4 -2
- 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.js +1 -1
- package/lib/runner.js +1 -1
- package/lib/secrets.js +1 -1
- package/package.json +8 -8
package/.jsii
CHANGED
|
@@ -4542,7 +4542,7 @@
|
|
|
4542
4542
|
},
|
|
4543
4543
|
"locationInModule": {
|
|
4544
4544
|
"filename": "src/providers/fargate.ts",
|
|
4545
|
-
"line":
|
|
4545
|
+
"line": 251
|
|
4546
4546
|
},
|
|
4547
4547
|
"parameters": [
|
|
4548
4548
|
{
|
|
@@ -4571,7 +4571,7 @@
|
|
|
4571
4571
|
"kind": "class",
|
|
4572
4572
|
"locationInModule": {
|
|
4573
4573
|
"filename": "src/providers/fargate.ts",
|
|
4574
|
-
"line":
|
|
4574
|
+
"line": 172
|
|
4575
4575
|
},
|
|
4576
4576
|
"methods": [
|
|
4577
4577
|
{
|
|
@@ -4582,7 +4582,7 @@
|
|
|
4582
4582
|
},
|
|
4583
4583
|
"locationInModule": {
|
|
4584
4584
|
"filename": "src/providers/fargate.ts",
|
|
4585
|
-
"line":
|
|
4585
|
+
"line": 334
|
|
4586
4586
|
},
|
|
4587
4587
|
"name": "getStepFunctionTask",
|
|
4588
4588
|
"overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
|
|
@@ -4616,7 +4616,7 @@
|
|
|
4616
4616
|
"immutable": true,
|
|
4617
4617
|
"locationInModule": {
|
|
4618
4618
|
"filename": "src/providers/fargate.ts",
|
|
4619
|
-
"line":
|
|
4619
|
+
"line": 189
|
|
4620
4620
|
},
|
|
4621
4621
|
"name": "LINUX_ARM64_DOCKERFILE_PATH",
|
|
4622
4622
|
"static": true,
|
|
@@ -4634,7 +4634,7 @@
|
|
|
4634
4634
|
"immutable": true,
|
|
4635
4635
|
"locationInModule": {
|
|
4636
4636
|
"filename": "src/providers/fargate.ts",
|
|
4637
|
-
"line":
|
|
4637
|
+
"line": 180
|
|
4638
4638
|
},
|
|
4639
4639
|
"name": "LINUX_X64_DOCKERFILE_PATH",
|
|
4640
4640
|
"static": true,
|
|
@@ -4645,12 +4645,12 @@
|
|
|
4645
4645
|
{
|
|
4646
4646
|
"docs": {
|
|
4647
4647
|
"stability": "experimental",
|
|
4648
|
-
"summary": "Whether task will have a public IP."
|
|
4648
|
+
"summary": "Whether runner task will have a public IP."
|
|
4649
4649
|
},
|
|
4650
4650
|
"immutable": true,
|
|
4651
4651
|
"locationInModule": {
|
|
4652
4652
|
"filename": "src/providers/fargate.ts",
|
|
4653
|
-
"line":
|
|
4653
|
+
"line": 229
|
|
4654
4654
|
},
|
|
4655
4655
|
"name": "assignPublicIp",
|
|
4656
4656
|
"type": {
|
|
@@ -4665,7 +4665,7 @@
|
|
|
4665
4665
|
"immutable": true,
|
|
4666
4666
|
"locationInModule": {
|
|
4667
4667
|
"filename": "src/providers/fargate.ts",
|
|
4668
|
-
"line":
|
|
4668
|
+
"line": 194
|
|
4669
4669
|
},
|
|
4670
4670
|
"name": "cluster",
|
|
4671
4671
|
"type": {
|
|
@@ -4680,7 +4680,7 @@
|
|
|
4680
4680
|
"immutable": true,
|
|
4681
4681
|
"locationInModule": {
|
|
4682
4682
|
"filename": "src/providers/fargate.ts",
|
|
4683
|
-
"line":
|
|
4683
|
+
"line": 239
|
|
4684
4684
|
},
|
|
4685
4685
|
"name": "connections",
|
|
4686
4686
|
"overrides": "aws-cdk-lib.aws_ec2.IConnectable",
|
|
@@ -4696,7 +4696,7 @@
|
|
|
4696
4696
|
"immutable": true,
|
|
4697
4697
|
"locationInModule": {
|
|
4698
4698
|
"filename": "src/providers/fargate.ts",
|
|
4699
|
-
"line":
|
|
4699
|
+
"line": 204
|
|
4700
4700
|
},
|
|
4701
4701
|
"name": "container",
|
|
4702
4702
|
"type": {
|
|
@@ -4711,7 +4711,7 @@
|
|
|
4711
4711
|
"immutable": true,
|
|
4712
4712
|
"locationInModule": {
|
|
4713
4713
|
"filename": "src/providers/fargate.ts",
|
|
4714
|
-
"line":
|
|
4714
|
+
"line": 234
|
|
4715
4715
|
},
|
|
4716
4716
|
"name": "grantPrincipal",
|
|
4717
4717
|
"overrides": "aws-cdk-lib.aws_iam.IGrantable",
|
|
@@ -4727,7 +4727,7 @@
|
|
|
4727
4727
|
"immutable": true,
|
|
4728
4728
|
"locationInModule": {
|
|
4729
4729
|
"filename": "src/providers/fargate.ts",
|
|
4730
|
-
"line":
|
|
4730
|
+
"line": 249
|
|
4731
4731
|
},
|
|
4732
4732
|
"name": "image",
|
|
4733
4733
|
"overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
|
|
@@ -4743,7 +4743,7 @@
|
|
|
4743
4743
|
"immutable": true,
|
|
4744
4744
|
"locationInModule": {
|
|
4745
4745
|
"filename": "src/providers/fargate.ts",
|
|
4746
|
-
"line":
|
|
4746
|
+
"line": 209
|
|
4747
4747
|
},
|
|
4748
4748
|
"name": "label",
|
|
4749
4749
|
"overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
|
|
@@ -4759,7 +4759,7 @@
|
|
|
4759
4759
|
"immutable": true,
|
|
4760
4760
|
"locationInModule": {
|
|
4761
4761
|
"filename": "src/providers/fargate.ts",
|
|
4762
|
-
"line":
|
|
4762
|
+
"line": 244
|
|
4763
4763
|
},
|
|
4764
4764
|
"name": "spot",
|
|
4765
4765
|
"type": {
|
|
@@ -4774,7 +4774,7 @@
|
|
|
4774
4774
|
"immutable": true,
|
|
4775
4775
|
"locationInModule": {
|
|
4776
4776
|
"filename": "src/providers/fargate.ts",
|
|
4777
|
-
"line":
|
|
4777
|
+
"line": 199
|
|
4778
4778
|
},
|
|
4779
4779
|
"name": "task",
|
|
4780
4780
|
"type": {
|
|
@@ -4789,7 +4789,7 @@
|
|
|
4789
4789
|
"immutable": true,
|
|
4790
4790
|
"locationInModule": {
|
|
4791
4791
|
"filename": "src/providers/fargate.ts",
|
|
4792
|
-
"line":
|
|
4792
|
+
"line": 224
|
|
4793
4793
|
},
|
|
4794
4794
|
"name": "securityGroup",
|
|
4795
4795
|
"optional": true,
|
|
@@ -4801,12 +4801,28 @@
|
|
|
4801
4801
|
{
|
|
4802
4802
|
"docs": {
|
|
4803
4803
|
"stability": "experimental",
|
|
4804
|
-
"summary": "
|
|
4804
|
+
"summary": "Subnets used for hosting the runner task."
|
|
4805
|
+
},
|
|
4806
|
+
"immutable": true,
|
|
4807
|
+
"locationInModule": {
|
|
4808
|
+
"filename": "src/providers/fargate.ts",
|
|
4809
|
+
"line": 219
|
|
4810
|
+
},
|
|
4811
|
+
"name": "subnetSelection",
|
|
4812
|
+
"optional": true,
|
|
4813
|
+
"type": {
|
|
4814
|
+
"fqn": "aws-cdk-lib.aws_ec2.SubnetSelection"
|
|
4815
|
+
}
|
|
4816
|
+
},
|
|
4817
|
+
{
|
|
4818
|
+
"docs": {
|
|
4819
|
+
"stability": "experimental",
|
|
4820
|
+
"summary": "VPC used for hosting the runner task."
|
|
4805
4821
|
},
|
|
4806
4822
|
"immutable": true,
|
|
4807
4823
|
"locationInModule": {
|
|
4808
4824
|
"filename": "src/providers/fargate.ts",
|
|
4809
|
-
"line":
|
|
4825
|
+
"line": 214
|
|
4810
4826
|
},
|
|
4811
4827
|
"name": "vpc",
|
|
4812
4828
|
"optional": true,
|
|
@@ -4847,7 +4863,7 @@
|
|
|
4847
4863
|
"immutable": true,
|
|
4848
4864
|
"locationInModule": {
|
|
4849
4865
|
"filename": "src/providers/fargate.ts",
|
|
4850
|
-
"line":
|
|
4866
|
+
"line": 70
|
|
4851
4867
|
},
|
|
4852
4868
|
"name": "assignPublicIp",
|
|
4853
4869
|
"optional": true,
|
|
@@ -4865,7 +4881,7 @@
|
|
|
4865
4881
|
"immutable": true,
|
|
4866
4882
|
"locationInModule": {
|
|
4867
4883
|
"filename": "src/providers/fargate.ts",
|
|
4868
|
-
"line":
|
|
4884
|
+
"line": 61
|
|
4869
4885
|
},
|
|
4870
4886
|
"name": "cluster",
|
|
4871
4887
|
"optional": true,
|
|
@@ -4884,7 +4900,7 @@
|
|
|
4884
4900
|
"immutable": true,
|
|
4885
4901
|
"locationInModule": {
|
|
4886
4902
|
"filename": "src/providers/fargate.ts",
|
|
4887
|
-
"line":
|
|
4903
|
+
"line": 89
|
|
4888
4904
|
},
|
|
4889
4905
|
"name": "cpu",
|
|
4890
4906
|
"optional": true,
|
|
@@ -4903,7 +4919,7 @@
|
|
|
4903
4919
|
"immutable": true,
|
|
4904
4920
|
"locationInModule": {
|
|
4905
4921
|
"filename": "src/providers/fargate.ts",
|
|
4906
|
-
"line":
|
|
4922
|
+
"line": 116
|
|
4907
4923
|
},
|
|
4908
4924
|
"name": "ephemeralStorageGiB",
|
|
4909
4925
|
"optional": true,
|
|
@@ -4959,7 +4975,7 @@
|
|
|
4959
4975
|
"immutable": true,
|
|
4960
4976
|
"locationInModule": {
|
|
4961
4977
|
"filename": "src/providers/fargate.ts",
|
|
4962
|
-
"line":
|
|
4978
|
+
"line": 107
|
|
4963
4979
|
},
|
|
4964
4980
|
"name": "memoryLimitMiB",
|
|
4965
4981
|
"optional": true,
|
|
@@ -4977,7 +4993,7 @@
|
|
|
4977
4993
|
"immutable": true,
|
|
4978
4994
|
"locationInModule": {
|
|
4979
4995
|
"filename": "src/providers/fargate.ts",
|
|
4980
|
-
"line":
|
|
4996
|
+
"line": 54
|
|
4981
4997
|
},
|
|
4982
4998
|
"name": "securityGroup",
|
|
4983
4999
|
"optional": true,
|
|
@@ -4996,7 +5012,7 @@
|
|
|
4996
5012
|
"immutable": true,
|
|
4997
5013
|
"locationInModule": {
|
|
4998
5014
|
"filename": "src/providers/fargate.ts",
|
|
4999
|
-
"line":
|
|
5015
|
+
"line": 126
|
|
5000
5016
|
},
|
|
5001
5017
|
"name": "spot",
|
|
5002
5018
|
"optional": true,
|
|
@@ -5004,6 +5020,24 @@
|
|
|
5004
5020
|
"primitive": "boolean"
|
|
5005
5021
|
}
|
|
5006
5022
|
},
|
|
5023
|
+
{
|
|
5024
|
+
"abstract": true,
|
|
5025
|
+
"docs": {
|
|
5026
|
+
"default": "Fargate default",
|
|
5027
|
+
"stability": "experimental",
|
|
5028
|
+
"summary": "Subnets to run the runners in."
|
|
5029
|
+
},
|
|
5030
|
+
"immutable": true,
|
|
5031
|
+
"locationInModule": {
|
|
5032
|
+
"filename": "src/providers/fargate.ts",
|
|
5033
|
+
"line": 47
|
|
5034
|
+
},
|
|
5035
|
+
"name": "subnetSelection",
|
|
5036
|
+
"optional": true,
|
|
5037
|
+
"type": {
|
|
5038
|
+
"fqn": "aws-cdk-lib.aws_ec2.SubnetSelection"
|
|
5039
|
+
}
|
|
5040
|
+
},
|
|
5007
5041
|
{
|
|
5008
5042
|
"abstract": true,
|
|
5009
5043
|
"docs": {
|
|
@@ -6836,6 +6870,6 @@
|
|
|
6836
6870
|
"symbolId": "src/providers/image-builders/static:StaticRunnerImage"
|
|
6837
6871
|
}
|
|
6838
6872
|
},
|
|
6839
|
-
"version": "0.5.
|
|
6840
|
-
"fingerprint": "
|
|
6873
|
+
"version": "0.5.3",
|
|
6874
|
+
"fingerprint": "KU7AQnH7Klq+n+WLB7qxvop5ji9n6mmFPTMKJb19tu4="
|
|
6841
6875
|
}
|
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.
|
|
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
|
|
|
@@ -2523,6 +2536,7 @@ const fargateRunnerProps: FargateRunnerProps = { ... }
|
|
|
2523
2536
|
| <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
2537
|
| <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
2538
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.spot">spot</a></code> | <code>boolean</code> | Use Fargate spot capacity provider to save money. |
|
|
2539
|
+
| <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
2540
|
| <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
2541
|
|
|
2528
2542
|
---
|
|
@@ -2699,6 +2713,19 @@ Use Fargate spot capacity provider to save money.
|
|
|
2699
2713
|
|
|
2700
2714
|
---
|
|
2701
2715
|
|
|
2716
|
+
##### `subnetSelection`<sup>Optional</sup> <a name="subnetSelection" id="@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.subnetSelection"></a>
|
|
2717
|
+
|
|
2718
|
+
```typescript
|
|
2719
|
+
public readonly subnetSelection: SubnetSelection;
|
|
2720
|
+
```
|
|
2721
|
+
|
|
2722
|
+
- *Type:* aws-cdk-lib.aws_ec2.SubnetSelection
|
|
2723
|
+
- *Default:* Fargate default
|
|
2724
|
+
|
|
2725
|
+
Subnets to run the runners in.
|
|
2726
|
+
|
|
2727
|
+
---
|
|
2728
|
+
|
|
2702
2729
|
##### `vpc`<sup>Optional</sup> <a name="vpc" id="@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.vpc"></a>
|
|
2703
2730
|
|
|
2704
2731
|
```typescript
|
|
@@ -7432,7 +7432,7 @@ var require_dist_node6 = __commonJS({
|
|
|
7432
7432
|
parse
|
|
7433
7433
|
});
|
|
7434
7434
|
}
|
|
7435
|
-
var VERSION = "7.0.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
|
|
8405
|
-
|
|
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
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
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
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
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
|
-
|
|
8471
|
-
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8475
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
12842
|
+
var VERSION = "6.2.2";
|
|
12855
12843
|
function getBufferResponse(response) {
|
|
12856
12844
|
return response.arrayBuffer();
|
|
12857
12845
|
}
|