@cloudsnorkel/cdk-github-runners 0.11.4 → 0.11.6

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.
Files changed (48) hide show
  1. package/.gitattributes +0 -1
  2. package/.jsii +169 -116
  3. package/API.md +47 -2
  4. package/SETUP_GITHUB.md +9 -5
  5. package/assets/delete-failed-runner.lambda/index.js +32 -14
  6. package/assets/docker-images/lambda/linux-arm64/runner.js +1 -0
  7. package/assets/docker-images/lambda/linux-arm64/runner.sh +1 -1
  8. package/assets/docker-images/lambda/linux-x64/runner.js +1 -0
  9. package/assets/docker-images/lambda/linux-x64/runner.sh +1 -1
  10. package/assets/idle-runner-repear.lambda/index.js +37 -19
  11. package/assets/setup.lambda/index.html +20 -12
  12. package/assets/setup.lambda/index.js +14 -9
  13. package/assets/status.lambda/index.js +3 -1
  14. package/assets/token-retriever.lambda/index.js +28 -8
  15. package/assets/webhook-handler.lambda/index.js +10 -10
  16. package/lib/access.js +1 -1
  17. package/lib/delete-failed-runner.lambda.js +4 -8
  18. package/lib/idle-runner-repear.lambda.js +11 -14
  19. package/lib/image-builders/api.js +1 -1
  20. package/lib/image-builders/aws-image-builder/builder.js +1 -1
  21. package/lib/image-builders/aws-image-builder/deprecated/ami.js +1 -1
  22. package/lib/image-builders/aws-image-builder/deprecated/container.js +1 -1
  23. package/lib/image-builders/aws-image-builder/deprecated/linux-components.js +1 -1
  24. package/lib/image-builders/aws-image-builder/deprecated/windows-components.js +1 -1
  25. package/lib/image-builders/codebuild-deprecated.js +1 -1
  26. package/lib/image-builders/components.js +1 -1
  27. package/lib/image-builders/static.js +1 -1
  28. package/lib/lambda-github.d.ts +16 -13
  29. package/lib/lambda-github.js +33 -8
  30. package/lib/providers/codebuild.js +10 -5
  31. package/lib/providers/common.d.ts +5 -1
  32. package/lib/providers/common.js +4 -4
  33. package/lib/providers/ec2.js +56 -17
  34. package/lib/providers/ecs.d.ts +7 -1
  35. package/lib/providers/ecs.js +8 -3
  36. package/lib/providers/fargate.js +12 -8
  37. package/lib/providers/lambda.js +4 -3
  38. package/lib/runner.d.ts +8 -0
  39. package/lib/runner.js +4 -2
  40. package/lib/secrets.js +4 -2
  41. package/lib/setup.lambda.js +13 -7
  42. package/lib/status.lambda.js +4 -1
  43. package/lib/token-retriever.lambda.d.ts +2 -1
  44. package/lib/token-retriever.lambda.js +30 -8
  45. package/lib/webhook-handler.lambda.js +11 -10
  46. package/lib/webhook.d.ts +4 -0
  47. package/lib/webhook.js +2 -1
  48. package/package.json +21 -18
package/.jsii CHANGED
@@ -4984,7 +4984,7 @@
4984
4984
  "kind": "class",
4985
4985
  "locationInModule": {
4986
4986
  "filename": "src/providers/codebuild.ts",
4987
- "line": 421
4987
+ "line": 426
4988
4988
  },
4989
4989
  "name": "CodeBuildRunner",
4990
4990
  "symbolId": "src/providers/codebuild:CodeBuildRunner"
@@ -5158,7 +5158,7 @@
5158
5158
  },
5159
5159
  "locationInModule": {
5160
5160
  "filename": "src/providers/codebuild.ts",
5161
- "line": 352
5161
+ "line": 353
5162
5162
  },
5163
5163
  "name": "getStepFunctionTask",
5164
5164
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -5187,7 +5187,7 @@
5187
5187
  },
5188
5188
  "locationInModule": {
5189
5189
  "filename": "src/providers/codebuild.ts",
5190
- "line": 389
5190
+ "line": 394
5191
5191
  },
5192
5192
  "name": "grantStateMachine",
5193
5193
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -5206,7 +5206,7 @@
5206
5206
  },
5207
5207
  "locationInModule": {
5208
5208
  "filename": "src/providers/common.ts",
5209
- "line": 473
5209
+ "line": 479
5210
5210
  },
5211
5211
  "name": "labelsFromProperties",
5212
5212
  "parameters": [
@@ -5256,7 +5256,7 @@
5256
5256
  },
5257
5257
  "locationInModule": {
5258
5258
  "filename": "src/providers/codebuild.ts",
5259
- "line": 392
5259
+ "line": 397
5260
5260
  },
5261
5261
  "name": "status",
5262
5262
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -5323,7 +5323,7 @@
5323
5323
  "immutable": true,
5324
5324
  "locationInModule": {
5325
5325
  "filename": "src/providers/codebuild.ts",
5326
- "line": 413
5326
+ "line": 418
5327
5327
  },
5328
5328
  "name": "connections",
5329
5329
  "overrides": "aws-cdk-lib.aws_ec2.IConnectable",
@@ -6343,7 +6343,7 @@
6343
6343
  },
6344
6344
  "locationInModule": {
6345
6345
  "filename": "src/providers/ec2.ts",
6346
- "line": 300
6346
+ "line": 340
6347
6347
  },
6348
6348
  "parameters": [
6349
6349
  {
@@ -6370,7 +6370,7 @@
6370
6370
  "kind": "class",
6371
6371
  "locationInModule": {
6372
6372
  "filename": "src/providers/ec2.ts",
6373
- "line": 514
6373
+ "line": 553
6374
6374
  },
6375
6375
  "name": "Ec2Runner",
6376
6376
  "symbolId": "src/providers/ec2:Ec2Runner"
@@ -6390,7 +6390,7 @@
6390
6390
  },
6391
6391
  "locationInModule": {
6392
6392
  "filename": "src/providers/ec2.ts",
6393
- "line": 300
6393
+ "line": 340
6394
6394
  },
6395
6395
  "parameters": [
6396
6396
  {
@@ -6420,7 +6420,7 @@
6420
6420
  "kind": "class",
6421
6421
  "locationInModule": {
6422
6422
  "filename": "src/providers/ec2.ts",
6423
- "line": 236
6423
+ "line": 276
6424
6424
  },
6425
6425
  "methods": [
6426
6426
  {
@@ -6431,7 +6431,7 @@
6431
6431
  },
6432
6432
  "locationInModule": {
6433
6433
  "filename": "src/providers/ec2.ts",
6434
- "line": 249
6434
+ "line": 289
6435
6435
  },
6436
6436
  "name": "imageBuilder",
6437
6437
  "parameters": [
@@ -6470,7 +6470,7 @@
6470
6470
  },
6471
6471
  "locationInModule": {
6472
6472
  "filename": "src/providers/ec2.ts",
6473
- "line": 355
6473
+ "line": 395
6474
6474
  },
6475
6475
  "name": "getStepFunctionTask",
6476
6476
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -6499,7 +6499,7 @@
6499
6499
  },
6500
6500
  "locationInModule": {
6501
6501
  "filename": "src/providers/ec2.ts",
6502
- "line": 454
6502
+ "line": 493
6503
6503
  },
6504
6504
  "name": "grantStateMachine",
6505
6505
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -6518,7 +6518,7 @@
6518
6518
  },
6519
6519
  "locationInModule": {
6520
6520
  "filename": "src/providers/common.ts",
6521
- "line": 473
6521
+ "line": 479
6522
6522
  },
6523
6523
  "name": "labelsFromProperties",
6524
6524
  "parameters": [
@@ -6568,7 +6568,7 @@
6568
6568
  },
6569
6569
  "locationInModule": {
6570
6570
  "filename": "src/providers/ec2.ts",
6571
- "line": 484
6571
+ "line": 523
6572
6572
  },
6573
6573
  "name": "status",
6574
6574
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -6597,7 +6597,7 @@
6597
6597
  "immutable": true,
6598
6598
  "locationInModule": {
6599
6599
  "filename": "src/providers/ec2.ts",
6600
- "line": 506
6600
+ "line": 545
6601
6601
  },
6602
6602
  "name": "connections",
6603
6603
  "overrides": "aws-cdk-lib.aws_ec2.IConnectable",
@@ -6613,7 +6613,7 @@
6613
6613
  "immutable": true,
6614
6614
  "locationInModule": {
6615
6615
  "filename": "src/providers/ec2.ts",
6616
- "line": 275
6616
+ "line": 315
6617
6617
  },
6618
6618
  "name": "grantPrincipal",
6619
6619
  "overrides": "aws-cdk-lib.aws_iam.IGrantable",
@@ -6629,7 +6629,7 @@
6629
6629
  "immutable": true,
6630
6630
  "locationInModule": {
6631
6631
  "filename": "src/providers/ec2.ts",
6632
- "line": 270
6632
+ "line": 310
6633
6633
  },
6634
6634
  "name": "labels",
6635
6635
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -6651,7 +6651,7 @@
6651
6651
  "immutable": true,
6652
6652
  "locationInModule": {
6653
6653
  "filename": "src/providers/ec2.ts",
6654
- "line": 282
6654
+ "line": 322
6655
6655
  },
6656
6656
  "name": "logGroup",
6657
6657
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -6667,7 +6667,7 @@
6667
6667
  "immutable": true,
6668
6668
  "locationInModule": {
6669
6669
  "filename": "src/providers/ec2.ts",
6670
- "line": 284
6670
+ "line": 324
6671
6671
  },
6672
6672
  "name": "retryableErrors",
6673
6673
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -6697,7 +6697,7 @@
6697
6697
  "kind": "interface",
6698
6698
  "locationInModule": {
6699
6699
  "filename": "src/providers/ec2.ts",
6700
- "line": 137
6700
+ "line": 177
6701
6701
  },
6702
6702
  "name": "Ec2RunnerProviderProps",
6703
6703
  "properties": [
@@ -6710,7 +6710,7 @@
6710
6710
  "immutable": true,
6711
6711
  "locationInModule": {
6712
6712
  "filename": "src/providers/ec2.ts",
6713
- "line": 150
6713
+ "line": 190
6714
6714
  },
6715
6715
  "name": "amiBuilder",
6716
6716
  "optional": true,
@@ -6729,7 +6729,7 @@
6729
6729
  "immutable": true,
6730
6730
  "locationInModule": {
6731
6731
  "filename": "src/providers/ec2.ts",
6732
- "line": 145
6732
+ "line": 185
6733
6733
  },
6734
6734
  "name": "imageBuilder",
6735
6735
  "optional": true,
@@ -6747,7 +6747,7 @@
6747
6747
  "immutable": true,
6748
6748
  "locationInModule": {
6749
6749
  "filename": "src/providers/ec2.ts",
6750
- "line": 168
6750
+ "line": 208
6751
6751
  },
6752
6752
  "name": "instanceType",
6753
6753
  "optional": true,
@@ -6766,7 +6766,7 @@
6766
6766
  "immutable": true,
6767
6767
  "locationInModule": {
6768
6768
  "filename": "src/providers/ec2.ts",
6769
- "line": 161
6769
+ "line": 201
6770
6770
  },
6771
6771
  "name": "labels",
6772
6772
  "optional": true,
@@ -6790,7 +6790,7 @@
6790
6790
  "immutable": true,
6791
6791
  "locationInModule": {
6792
6792
  "filename": "src/providers/ec2.ts",
6793
- "line": 184
6793
+ "line": 224
6794
6794
  },
6795
6795
  "name": "securityGroup",
6796
6796
  "optional": true,
@@ -6808,7 +6808,7 @@
6808
6808
  "immutable": true,
6809
6809
  "locationInModule": {
6810
6810
  "filename": "src/providers/ec2.ts",
6811
- "line": 191
6811
+ "line": 231
6812
6812
  },
6813
6813
  "name": "securityGroups",
6814
6814
  "optional": true,
@@ -6832,7 +6832,7 @@
6832
6832
  "immutable": true,
6833
6833
  "locationInModule": {
6834
6834
  "filename": "src/providers/ec2.ts",
6835
- "line": 221
6835
+ "line": 261
6836
6836
  },
6837
6837
  "name": "spot",
6838
6838
  "optional": true,
@@ -6850,7 +6850,7 @@
6850
6850
  "immutable": true,
6851
6851
  "locationInModule": {
6852
6852
  "filename": "src/providers/ec2.ts",
6853
- "line": 228
6853
+ "line": 268
6854
6854
  },
6855
6855
  "name": "spotMaxPrice",
6856
6856
  "optional": true,
@@ -6869,7 +6869,7 @@
6869
6869
  "immutable": true,
6870
6870
  "locationInModule": {
6871
6871
  "filename": "src/providers/ec2.ts",
6872
- "line": 175
6872
+ "line": 215
6873
6873
  },
6874
6874
  "name": "storageSize",
6875
6875
  "optional": true,
@@ -6888,7 +6888,7 @@
6888
6888
  "immutable": true,
6889
6889
  "locationInModule": {
6890
6890
  "filename": "src/providers/ec2.ts",
6891
- "line": 200
6891
+ "line": 240
6892
6892
  },
6893
6893
  "name": "subnet",
6894
6894
  "optional": true,
@@ -6907,7 +6907,7 @@
6907
6907
  "immutable": true,
6908
6908
  "locationInModule": {
6909
6909
  "filename": "src/providers/ec2.ts",
6910
- "line": 214
6910
+ "line": 254
6911
6911
  },
6912
6912
  "name": "subnetSelection",
6913
6913
  "optional": true,
@@ -6925,7 +6925,7 @@
6925
6925
  "immutable": true,
6926
6926
  "locationInModule": {
6927
6927
  "filename": "src/providers/ec2.ts",
6928
- "line": 207
6928
+ "line": 247
6929
6929
  },
6930
6930
  "name": "vpc",
6931
6931
  "optional": true,
@@ -6951,7 +6951,7 @@
6951
6951
  },
6952
6952
  "locationInModule": {
6953
6953
  "filename": "src/providers/ecs.ts",
6954
- "line": 314
6954
+ "line": 321
6955
6955
  },
6956
6956
  "parameters": [
6957
6957
  {
@@ -6981,7 +6981,7 @@
6981
6981
  "kind": "class",
6982
6982
  "locationInModule": {
6983
6983
  "filename": "src/providers/ecs.ts",
6984
- "line": 205
6984
+ "line": 212
6985
6985
  },
6986
6986
  "methods": [
6987
6987
  {
@@ -6992,7 +6992,7 @@
6992
6992
  },
6993
6993
  "locationInModule": {
6994
6994
  "filename": "src/providers/ecs.ts",
6995
- "line": 218
6995
+ "line": 225
6996
6996
  },
6997
6997
  "name": "imageBuilder",
6998
6998
  "parameters": [
@@ -7031,7 +7031,7 @@
7031
7031
  },
7032
7032
  "locationInModule": {
7033
7033
  "filename": "src/providers/ecs.ts",
7034
- "line": 526
7034
+ "line": 534
7035
7035
  },
7036
7036
  "name": "getStepFunctionTask",
7037
7037
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -7060,7 +7060,7 @@
7060
7060
  },
7061
7061
  "locationInModule": {
7062
7062
  "filename": "src/providers/ecs.ts",
7063
- "line": 574
7063
+ "line": 586
7064
7064
  },
7065
7065
  "name": "grantStateMachine",
7066
7066
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -7079,7 +7079,7 @@
7079
7079
  },
7080
7080
  "locationInModule": {
7081
7081
  "filename": "src/providers/common.ts",
7082
- "line": 473
7082
+ "line": 479
7083
7083
  },
7084
7084
  "name": "labelsFromProperties",
7085
7085
  "parameters": [
@@ -7129,7 +7129,7 @@
7129
7129
  },
7130
7130
  "locationInModule": {
7131
7131
  "filename": "src/providers/ecs.ts",
7132
- "line": 577
7132
+ "line": 589
7133
7133
  },
7134
7134
  "name": "status",
7135
7135
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -7158,7 +7158,7 @@
7158
7158
  "immutable": true,
7159
7159
  "locationInModule": {
7160
7160
  "filename": "src/providers/ecs.ts",
7161
- "line": 283
7161
+ "line": 290
7162
7162
  },
7163
7163
  "name": "connections",
7164
7164
  "overrides": "aws-cdk-lib.aws_ec2.IConnectable",
@@ -7174,7 +7174,7 @@
7174
7174
  "immutable": true,
7175
7175
  "locationInModule": {
7176
7176
  "filename": "src/providers/ecs.ts",
7177
- "line": 278
7177
+ "line": 285
7178
7178
  },
7179
7179
  "name": "grantPrincipal",
7180
7180
  "overrides": "aws-cdk-lib.aws_iam.IGrantable",
@@ -7190,7 +7190,7 @@
7190
7190
  "immutable": true,
7191
7191
  "locationInModule": {
7192
7192
  "filename": "src/providers/ecs.ts",
7193
- "line": 258
7193
+ "line": 265
7194
7194
  },
7195
7195
  "name": "labels",
7196
7196
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -7212,7 +7212,7 @@
7212
7212
  "immutable": true,
7213
7213
  "locationInModule": {
7214
7214
  "filename": "src/providers/ecs.ts",
7215
- "line": 295
7215
+ "line": 302
7216
7216
  },
7217
7217
  "name": "logGroup",
7218
7218
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -7228,7 +7228,7 @@
7228
7228
  "immutable": true,
7229
7229
  "locationInModule": {
7230
7230
  "filename": "src/providers/ecs.ts",
7231
- "line": 307
7231
+ "line": 314
7232
7232
  },
7233
7233
  "name": "retryableErrors",
7234
7234
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -7348,7 +7348,7 @@
7348
7348
  "immutable": true,
7349
7349
  "locationInModule": {
7350
7350
  "filename": "src/providers/ecs.ts",
7351
- "line": 153
7351
+ "line": 160
7352
7352
  },
7353
7353
  "name": "dockerInDocker",
7354
7354
  "optional": true,
@@ -7386,7 +7386,7 @@
7386
7386
  "immutable": true,
7387
7387
  "locationInModule": {
7388
7388
  "filename": "src/providers/ecs.ts",
7389
- "line": 122
7389
+ "line": 129
7390
7390
  },
7391
7391
  "name": "instanceType",
7392
7392
  "optional": true,
@@ -7429,7 +7429,7 @@
7429
7429
  "immutable": true,
7430
7430
  "locationInModule": {
7431
7431
  "filename": "src/providers/ecs.ts",
7432
- "line": 136
7432
+ "line": 143
7433
7433
  },
7434
7434
  "name": "maxInstances",
7435
7435
  "optional": true,
@@ -7440,7 +7440,7 @@
7440
7440
  {
7441
7441
  "abstract": true,
7442
7442
  "docs": {
7443
- "default": "3500",
7443
+ "default": "3500, unless `memoryReservationMiB` is used and then it's undefined",
7444
7444
  "stability": "experimental",
7445
7445
  "summary": "The amount (in MiB) of memory used by the task."
7446
7446
  },
@@ -7455,6 +7455,24 @@
7455
7455
  "primitive": "number"
7456
7456
  }
7457
7457
  },
7458
+ {
7459
+ "abstract": true,
7460
+ "docs": {
7461
+ "default": "undefined",
7462
+ "stability": "experimental",
7463
+ "summary": "The soft limit (in MiB) of memory to reserve for the container."
7464
+ },
7465
+ "immutable": true,
7466
+ "locationInModule": {
7467
+ "filename": "src/providers/ecs.ts",
7468
+ "line": 122
7469
+ },
7470
+ "name": "memoryReservationMiB",
7471
+ "optional": true,
7472
+ "type": {
7473
+ "primitive": "number"
7474
+ }
7475
+ },
7458
7476
  {
7459
7477
  "abstract": true,
7460
7478
  "docs": {
@@ -7466,7 +7484,7 @@
7466
7484
  "immutable": true,
7467
7485
  "locationInModule": {
7468
7486
  "filename": "src/providers/ecs.ts",
7469
- "line": 129
7487
+ "line": 136
7470
7488
  },
7471
7489
  "name": "minInstances",
7472
7490
  "optional": true,
@@ -7507,7 +7525,7 @@
7507
7525
  "immutable": true,
7508
7526
  "locationInModule": {
7509
7527
  "filename": "src/providers/ecs.ts",
7510
- "line": 160
7528
+ "line": 167
7511
7529
  },
7512
7530
  "name": "spot",
7513
7531
  "optional": true,
@@ -7524,7 +7542,7 @@
7524
7542
  "immutable": true,
7525
7543
  "locationInModule": {
7526
7544
  "filename": "src/providers/ecs.ts",
7527
- "line": 165
7545
+ "line": 172
7528
7546
  },
7529
7547
  "name": "spotMaxPrice",
7530
7548
  "optional": true,
@@ -7543,7 +7561,7 @@
7543
7561
  "immutable": true,
7544
7562
  "locationInModule": {
7545
7563
  "filename": "src/providers/ecs.ts",
7546
- "line": 145
7564
+ "line": 152
7547
7565
  },
7548
7566
  "name": "storageSize",
7549
7567
  "optional": true,
@@ -7631,7 +7649,7 @@
7631
7649
  "kind": "class",
7632
7650
  "locationInModule": {
7633
7651
  "filename": "src/providers/fargate.ts",
7634
- "line": 528
7652
+ "line": 532
7635
7653
  },
7636
7654
  "name": "FargateRunner",
7637
7655
  "symbolId": "src/providers/fargate:FargateRunner"
@@ -7760,7 +7778,7 @@
7760
7778
  },
7761
7779
  "locationInModule": {
7762
7780
  "filename": "src/providers/fargate.ts",
7763
- "line": 503
7781
+ "line": 507
7764
7782
  },
7765
7783
  "name": "grantStateMachine",
7766
7784
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -7779,7 +7797,7 @@
7779
7797
  },
7780
7798
  "locationInModule": {
7781
7799
  "filename": "src/providers/common.ts",
7782
- "line": 473
7800
+ "line": 479
7783
7801
  },
7784
7802
  "name": "labelsFromProperties",
7785
7803
  "parameters": [
@@ -7829,7 +7847,7 @@
7829
7847
  },
7830
7848
  "locationInModule": {
7831
7849
  "filename": "src/providers/fargate.ts",
7832
- "line": 506
7850
+ "line": 510
7833
7851
  },
7834
7852
  "name": "status",
7835
7853
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -8394,7 +8412,7 @@
8394
8412
  },
8395
8413
  "locationInModule": {
8396
8414
  "filename": "src/runner.ts",
8397
- "line": 260
8415
+ "line": 269
8398
8416
  },
8399
8417
  "parameters": [
8400
8418
  {
@@ -8424,7 +8442,7 @@
8424
8442
  "kind": "class",
8425
8443
  "locationInModule": {
8426
8444
  "filename": "src/runner.ts",
8427
- "line": 234
8445
+ "line": 243
8428
8446
  },
8429
8447
  "methods": [
8430
8448
  {
@@ -8435,7 +8453,7 @@
8435
8453
  },
8436
8454
  "locationInModule": {
8437
8455
  "filename": "src/runner.ts",
8438
- "line": 770
8456
+ "line": 781
8439
8457
  },
8440
8458
  "name": "createLogsInsightsQueries"
8441
8459
  },
@@ -8447,7 +8465,7 @@
8447
8465
  },
8448
8466
  "locationInModule": {
8449
8467
  "filename": "src/runner.ts",
8450
- "line": 750
8468
+ "line": 761
8451
8469
  },
8452
8470
  "name": "failedImageBuildsTopic",
8453
8471
  "returns": {
@@ -8464,7 +8482,7 @@
8464
8482
  },
8465
8483
  "locationInModule": {
8466
8484
  "filename": "src/runner.ts",
8467
- "line": 732
8485
+ "line": 743
8468
8486
  },
8469
8487
  "name": "metricFailed",
8470
8488
  "parameters": [
@@ -8490,7 +8508,7 @@
8490
8508
  },
8491
8509
  "locationInModule": {
8492
8510
  "filename": "src/runner.ts",
8493
- "line": 677
8511
+ "line": 688
8494
8512
  },
8495
8513
  "name": "metricJobCompleted",
8496
8514
  "parameters": [
@@ -8516,7 +8534,7 @@
8516
8534
  },
8517
8535
  "locationInModule": {
8518
8536
  "filename": "src/runner.ts",
8519
- "line": 723
8537
+ "line": 734
8520
8538
  },
8521
8539
  "name": "metricSucceeded",
8522
8540
  "parameters": [
@@ -8542,7 +8560,7 @@
8542
8560
  },
8543
8561
  "locationInModule": {
8544
8562
  "filename": "src/runner.ts",
8545
- "line": 739
8563
+ "line": 750
8546
8564
  },
8547
8565
  "name": "metricTime",
8548
8566
  "parameters": [
@@ -8572,7 +8590,7 @@
8572
8590
  "immutable": true,
8573
8591
  "locationInModule": {
8574
8592
  "filename": "src/runner.ts",
8575
- "line": 250
8593
+ "line": 259
8576
8594
  },
8577
8595
  "name": "connections",
8578
8596
  "overrides": "aws-cdk-lib.aws_ec2.IConnectable",
@@ -8588,7 +8606,7 @@
8588
8606
  "immutable": true,
8589
8607
  "locationInModule": {
8590
8608
  "filename": "src/runner.ts",
8591
- "line": 238
8609
+ "line": 247
8592
8610
  },
8593
8611
  "name": "providers",
8594
8612
  "type": {
@@ -8608,7 +8626,7 @@
8608
8626
  "immutable": true,
8609
8627
  "locationInModule": {
8610
8628
  "filename": "src/runner.ts",
8611
- "line": 243
8629
+ "line": 252
8612
8630
  },
8613
8631
  "name": "secrets",
8614
8632
  "type": {
@@ -8622,7 +8640,7 @@
8622
8640
  "immutable": true,
8623
8641
  "locationInModule": {
8624
8642
  "filename": "src/runner.ts",
8625
- "line": 260
8643
+ "line": 269
8626
8644
  },
8627
8645
  "name": "props",
8628
8646
  "optional": true,
@@ -8659,7 +8677,7 @@
8659
8677
  "immutable": true,
8660
8678
  "locationInModule": {
8661
8679
  "filename": "src/runner.ts",
8662
- "line": 70
8680
+ "line": 79
8663
8681
  },
8664
8682
  "name": "allowPublicSubnet",
8665
8683
  "optional": true,
@@ -8677,7 +8695,7 @@
8677
8695
  "immutable": true,
8678
8696
  "locationInModule": {
8679
8697
  "filename": "src/runner.ts",
8680
- "line": 107
8698
+ "line": 116
8681
8699
  },
8682
8700
  "name": "extraCertificates",
8683
8701
  "optional": true,
@@ -8696,7 +8714,7 @@
8696
8714
  "immutable": true,
8697
8715
  "locationInModule": {
8698
8716
  "filename": "src/runner.ts",
8699
- "line": 114
8717
+ "line": 123
8700
8718
  },
8701
8719
  "name": "idleTimeout",
8702
8720
  "optional": true,
@@ -8714,7 +8732,7 @@
8714
8732
  "immutable": true,
8715
8733
  "locationInModule": {
8716
8734
  "filename": "src/runner.ts",
8717
- "line": 121
8735
+ "line": 130
8718
8736
  },
8719
8737
  "name": "logOptions",
8720
8738
  "optional": true,
@@ -8746,6 +8764,25 @@
8746
8764
  }
8747
8765
  }
8748
8766
  },
8767
+ {
8768
+ "abstract": true,
8769
+ "docs": {
8770
+ "default": "true",
8771
+ "remarks": "If `true`, the runner will only start if the workflow job explicitly requests the `self-hosted` label.\n\nBe careful when setting this to `false`. Avoid setting up providers with generic label requirements like `linux` as they may match workflows that are not meant to run on self-hosted runners.",
8772
+ "stability": "experimental",
8773
+ "summary": "Whether to require the `self-hosted` label."
8774
+ },
8775
+ "immutable": true,
8776
+ "locationInModule": {
8777
+ "filename": "src/runner.ts",
8778
+ "line": 53
8779
+ },
8780
+ "name": "requireSelfHostedLabel",
8781
+ "optional": true,
8782
+ "type": {
8783
+ "primitive": "boolean"
8784
+ }
8785
+ },
8749
8786
  {
8750
8787
  "abstract": true,
8751
8788
  "docs": {
@@ -8757,7 +8794,7 @@
8757
8794
  "immutable": true,
8758
8795
  "locationInModule": {
8759
8796
  "filename": "src/runner.ts",
8760
- "line": 158
8797
+ "line": 167
8761
8798
  },
8762
8799
  "name": "retryOptions",
8763
8800
  "optional": true,
@@ -8776,7 +8813,7 @@
8776
8813
  "immutable": true,
8777
8814
  "locationInModule": {
8778
8815
  "filename": "src/runner.ts",
8779
- "line": 77
8816
+ "line": 86
8780
8817
  },
8781
8818
  "name": "securityGroup",
8782
8819
  "optional": true,
@@ -8794,7 +8831,7 @@
8794
8831
  "immutable": true,
8795
8832
  "locationInModule": {
8796
8833
  "filename": "src/runner.ts",
8797
- "line": 82
8834
+ "line": 91
8798
8835
  },
8799
8836
  "name": "securityGroups",
8800
8837
  "optional": true,
@@ -8818,7 +8855,7 @@
8818
8855
  "immutable": true,
8819
8856
  "locationInModule": {
8820
8857
  "filename": "src/runner.ts",
8821
- "line": 128
8858
+ "line": 137
8822
8859
  },
8823
8860
  "name": "setupAccess",
8824
8861
  "optional": true,
@@ -8837,7 +8874,7 @@
8837
8874
  "immutable": true,
8838
8875
  "locationInModule": {
8839
8876
  "filename": "src/runner.ts",
8840
- "line": 147
8877
+ "line": 156
8841
8878
  },
8842
8879
  "name": "statusAccess",
8843
8880
  "optional": true,
@@ -8855,7 +8892,7 @@
8855
8892
  "immutable": true,
8856
8893
  "locationInModule": {
8857
8894
  "filename": "src/runner.ts",
8858
- "line": 58
8895
+ "line": 67
8859
8896
  },
8860
8897
  "name": "vpc",
8861
8898
  "optional": true,
@@ -8873,7 +8910,7 @@
8873
8910
  "immutable": true,
8874
8911
  "locationInModule": {
8875
8912
  "filename": "src/runner.ts",
8876
- "line": 63
8913
+ "line": 72
8877
8914
  },
8878
8915
  "name": "vpcSubnets",
8879
8916
  "optional": true,
@@ -8892,7 +8929,7 @@
8892
8929
  "immutable": true,
8893
8930
  "locationInModule": {
8894
8931
  "filename": "src/runner.ts",
8895
- "line": 140
8932
+ "line": 149
8896
8933
  },
8897
8934
  "name": "webhookAccess",
8898
8935
  "optional": true,
@@ -8913,7 +8950,7 @@
8913
8950
  "kind": "interface",
8914
8951
  "locationInModule": {
8915
8952
  "filename": "src/providers/common.ts",
8916
- "line": 354
8953
+ "line": 360
8917
8954
  },
8918
8955
  "name": "IRunnerAmiStatus",
8919
8956
  "properties": [
@@ -8926,7 +8963,7 @@
8926
8963
  "immutable": true,
8927
8964
  "locationInModule": {
8928
8965
  "filename": "src/providers/common.ts",
8929
- "line": 358
8966
+ "line": 364
8930
8967
  },
8931
8968
  "name": "launchTemplate",
8932
8969
  "type": {
@@ -8942,7 +8979,7 @@
8942
8979
  "immutable": true,
8943
8980
  "locationInModule": {
8944
8981
  "filename": "src/providers/common.ts",
8945
- "line": 363
8982
+ "line": 369
8946
8983
  },
8947
8984
  "name": "amiBuilderLogGroup",
8948
8985
  "optional": true,
@@ -9017,7 +9054,7 @@
9017
9054
  "kind": "interface",
9018
9055
  "locationInModule": {
9019
9056
  "filename": "src/providers/common.ts",
9020
- "line": 334
9057
+ "line": 340
9021
9058
  },
9022
9059
  "name": "IRunnerImageStatus",
9023
9060
  "properties": [
@@ -9030,7 +9067,7 @@
9030
9067
  "immutable": true,
9031
9068
  "locationInModule": {
9032
9069
  "filename": "src/providers/common.ts",
9033
- "line": 338
9070
+ "line": 344
9034
9071
  },
9035
9072
  "name": "imageRepository",
9036
9073
  "type": {
@@ -9046,7 +9083,7 @@
9046
9083
  "immutable": true,
9047
9084
  "locationInModule": {
9048
9085
  "filename": "src/providers/common.ts",
9049
- "line": 343
9086
+ "line": 349
9050
9087
  },
9051
9088
  "name": "imageTag",
9052
9089
  "type": {
@@ -9062,7 +9099,7 @@
9062
9099
  "immutable": true,
9063
9100
  "locationInModule": {
9064
9101
  "filename": "src/providers/common.ts",
9065
- "line": 348
9102
+ "line": 354
9066
9103
  },
9067
9104
  "name": "imageBuilderLogGroup",
9068
9105
  "optional": true,
@@ -9089,7 +9126,7 @@
9089
9126
  "kind": "interface",
9090
9127
  "locationInModule": {
9091
9128
  "filename": "src/providers/common.ts",
9092
- "line": 414
9129
+ "line": 420
9093
9130
  },
9094
9131
  "methods": [
9095
9132
  {
@@ -9101,7 +9138,7 @@
9101
9138
  },
9102
9139
  "locationInModule": {
9103
9140
  "filename": "src/providers/common.ts",
9104
- "line": 445
9141
+ "line": 451
9105
9142
  },
9106
9143
  "name": "getStepFunctionTask",
9107
9144
  "parameters": [
@@ -9130,7 +9167,7 @@
9130
9167
  },
9131
9168
  "locationInModule": {
9132
9169
  "filename": "src/providers/common.ts",
9133
- "line": 453
9170
+ "line": 459
9134
9171
  },
9135
9172
  "name": "grantStateMachine",
9136
9173
  "parameters": [
@@ -9154,7 +9191,7 @@
9154
9191
  },
9155
9192
  "locationInModule": {
9156
9193
  "filename": "src/providers/common.ts",
9157
- "line": 460
9194
+ "line": 466
9158
9195
  },
9159
9196
  "name": "status",
9160
9197
  "parameters": [
@@ -9187,7 +9224,7 @@
9187
9224
  "immutable": true,
9188
9225
  "locationInModule": {
9189
9226
  "filename": "src/providers/common.ts",
9190
- "line": 422
9227
+ "line": 428
9191
9228
  },
9192
9229
  "name": "labels",
9193
9230
  "type": {
@@ -9209,7 +9246,7 @@
9209
9246
  "immutable": true,
9210
9247
  "locationInModule": {
9211
9248
  "filename": "src/providers/common.ts",
9212
- "line": 429
9249
+ "line": 435
9213
9250
  },
9214
9251
  "name": "logGroup",
9215
9252
  "type": {
@@ -9226,7 +9263,7 @@
9226
9263
  "immutable": true,
9227
9264
  "locationInModule": {
9228
9265
  "filename": "src/providers/common.ts",
9229
- "line": 436
9266
+ "line": 442
9230
9267
  },
9231
9268
  "name": "retryableErrors",
9232
9269
  "type": {
@@ -9251,7 +9288,7 @@
9251
9288
  "kind": "interface",
9252
9289
  "locationInModule": {
9253
9290
  "filename": "src/providers/common.ts",
9254
- "line": 369
9291
+ "line": 375
9255
9292
  },
9256
9293
  "name": "IRunnerProviderStatus",
9257
9294
  "properties": [
@@ -9264,7 +9301,7 @@
9264
9301
  "immutable": true,
9265
9302
  "locationInModule": {
9266
9303
  "filename": "src/providers/common.ts",
9267
- "line": 378
9304
+ "line": 384
9268
9305
  },
9269
9306
  "name": "labels",
9270
9307
  "type": {
@@ -9285,7 +9322,7 @@
9285
9322
  "immutable": true,
9286
9323
  "locationInModule": {
9287
9324
  "filename": "src/providers/common.ts",
9288
- "line": 373
9325
+ "line": 379
9289
9326
  },
9290
9327
  "name": "type",
9291
9328
  "type": {
@@ -9301,7 +9338,7 @@
9301
9338
  "immutable": true,
9302
9339
  "locationInModule": {
9303
9340
  "filename": "src/providers/common.ts",
9304
- "line": 403
9341
+ "line": 409
9305
9342
  },
9306
9343
  "name": "ami",
9307
9344
  "optional": true,
@@ -9318,7 +9355,7 @@
9318
9355
  "immutable": true,
9319
9356
  "locationInModule": {
9320
9357
  "filename": "src/providers/common.ts",
9321
- "line": 398
9358
+ "line": 404
9322
9359
  },
9323
9360
  "name": "image",
9324
9361
  "optional": true,
@@ -9335,7 +9372,7 @@
9335
9372
  "immutable": true,
9336
9373
  "locationInModule": {
9337
9374
  "filename": "src/providers/common.ts",
9338
- "line": 408
9375
+ "line": 414
9339
9376
  },
9340
9377
  "name": "logGroup",
9341
9378
  "optional": true,
@@ -9352,7 +9389,7 @@
9352
9389
  "immutable": true,
9353
9390
  "locationInModule": {
9354
9391
  "filename": "src/providers/common.ts",
9355
- "line": 393
9392
+ "line": 399
9356
9393
  },
9357
9394
  "name": "roleArn",
9358
9395
  "optional": true,
@@ -9369,7 +9406,7 @@
9369
9406
  "immutable": true,
9370
9407
  "locationInModule": {
9371
9408
  "filename": "src/providers/common.ts",
9372
- "line": 388
9409
+ "line": 394
9373
9410
  },
9374
9411
  "name": "securityGroups",
9375
9412
  "optional": true,
@@ -9391,7 +9428,7 @@
9391
9428
  "immutable": true,
9392
9429
  "locationInModule": {
9393
9430
  "filename": "src/providers/common.ts",
9394
- "line": 383
9431
+ "line": 389
9395
9432
  },
9396
9433
  "name": "vpcArn",
9397
9434
  "optional": true,
@@ -9945,7 +9982,7 @@
9945
9982
  "kind": "class",
9946
9983
  "locationInModule": {
9947
9984
  "filename": "src/providers/lambda.ts",
9948
- "line": 461
9985
+ "line": 462
9949
9986
  },
9950
9987
  "name": "LambdaRunner",
9951
9988
  "symbolId": "src/providers/lambda:LambdaRunner"
@@ -10074,7 +10111,7 @@
10074
10111
  },
10075
10112
  "locationInModule": {
10076
10113
  "filename": "src/providers/lambda.ts",
10077
- "line": 378
10114
+ "line": 379
10078
10115
  },
10079
10116
  "name": "grantStateMachine",
10080
10117
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -10093,7 +10130,7 @@
10093
10130
  },
10094
10131
  "locationInModule": {
10095
10132
  "filename": "src/providers/common.ts",
10096
- "line": 473
10133
+ "line": 479
10097
10134
  },
10098
10135
  "name": "labelsFromProperties",
10099
10136
  "parameters": [
@@ -10143,7 +10180,7 @@
10143
10180
  },
10144
10181
  "locationInModule": {
10145
10182
  "filename": "src/providers/lambda.ts",
10146
- "line": 381
10183
+ "line": 382
10147
10184
  },
10148
10185
  "name": "status",
10149
10186
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -10872,7 +10909,7 @@
10872
10909
  "kind": "interface",
10873
10910
  "locationInModule": {
10874
10911
  "filename": "src/runner.ts",
10875
- "line": 164
10912
+ "line": 173
10876
10913
  },
10877
10914
  "name": "LogOptions",
10878
10915
  "properties": [
@@ -10886,7 +10923,7 @@
10886
10923
  "immutable": true,
10887
10924
  "locationInModule": {
10888
10925
  "filename": "src/runner.ts",
10889
- "line": 175
10926
+ "line": 184
10890
10927
  },
10891
10928
  "name": "includeExecutionData",
10892
10929
  "optional": true,
@@ -10904,7 +10941,7 @@
10904
10941
  "immutable": true,
10905
10942
  "locationInModule": {
10906
10943
  "filename": "src/runner.ts",
10907
- "line": 182
10944
+ "line": 191
10908
10945
  },
10909
10946
  "name": "level",
10910
10947
  "optional": true,
@@ -10921,7 +10958,7 @@
10921
10958
  "immutable": true,
10922
10959
  "locationInModule": {
10923
10960
  "filename": "src/runner.ts",
10924
- "line": 168
10961
+ "line": 177
10925
10962
  },
10926
10963
  "name": "logGroupName",
10927
10964
  "optional": true,
@@ -10940,7 +10977,7 @@
10940
10977
  "immutable": true,
10941
10978
  "locationInModule": {
10942
10979
  "filename": "src/runner.ts",
10943
- "line": 191
10980
+ "line": 200
10944
10981
  },
10945
10982
  "name": "logRetention",
10946
10983
  "optional": true,
@@ -12611,7 +12648,7 @@
12611
12648
  "assembly": "@cloudsnorkel/cdk-github-runners",
12612
12649
  "datatype": true,
12613
12650
  "docs": {
12614
- "remarks": "```sh\n./config.sh --unattended --url \"https://${GITHUB_DOMAIN}/${OWNER}/${REPO}\" --token \"${RUNNER_TOKEN}\" --ephemeral --work _work --labels \"${RUNNER_LABEL}\" --name \"${RUNNER_NAME}\" --disableupdate\n```\n\nAll parameters are specified as step function paths and therefore must be used only in step function task parameters.",
12651
+ "remarks": "```sh\n./config.sh --unattended --url \"{REGISTRATION_URL}\" --token \"${RUNNER_TOKEN}\" --ephemeral --work _work --labels \"${RUNNER_LABEL}\" --name \"${RUNNER_NAME}\" --disableupdate\n```\n\nAll parameters are specified as step function paths and therefore must be used only in step function task parameters.",
12615
12652
  "stability": "experimental",
12616
12653
  "summary": "Workflow job parameters as parsed from the webhook event. Pass these into your runner executor and run something like:."
12617
12654
  },
@@ -12656,6 +12693,22 @@
12656
12693
  "primitive": "string"
12657
12694
  }
12658
12695
  },
12696
+ {
12697
+ "abstract": true,
12698
+ "docs": {
12699
+ "stability": "experimental",
12700
+ "summary": "Repository or organization URL to register runner at."
12701
+ },
12702
+ "immutable": true,
12703
+ "locationInModule": {
12704
+ "filename": "src/providers/common.ts",
12705
+ "line": 333
12706
+ },
12707
+ "name": "registrationUrl",
12708
+ "type": {
12709
+ "primitive": "string"
12710
+ }
12711
+ },
12659
12712
  {
12660
12713
  "abstract": true,
12661
12714
  "docs": {
@@ -13325,6 +13378,6 @@
13325
13378
  "symbolId": "src/image-builders/aws-image-builder/deprecated/windows-components:WindowsComponents"
13326
13379
  }
13327
13380
  },
13328
- "version": "0.11.4",
13329
- "fingerprint": "KthUiQVwpzTb/QtJKrWJAhhvTFEFTIvTI7p6ho0YCs4="
13381
+ "version": "0.11.6",
13382
+ "fingerprint": "yiA0IekhG5D10PvsSpwCifz1Q4/KDpDWzYjTrw7sE9M="
13330
13383
  }