@datadog/datadog-ci-base 4.3.0 → 4.4.0
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/dist/commands/lambda/flare.js +24 -8
- package/dist/commands/lambda/flare.js.map +1 -1
- package/dist/commands/lambda/instrument.js +78 -26
- package/dist/commands/lambda/instrument.js.map +1 -1
- package/dist/commands/lambda/uninstrument.js +24 -8
- package/dist/commands/lambda/uninstrument.js.map +1 -1
- package/package.json +12 -12
|
@@ -16,14 +16,30 @@ const __1 = require("../..");
|
|
|
16
16
|
class LambdaFlareCommand extends __1.BaseCommand {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments);
|
|
19
|
-
this.isDryRun = clipanion_1.Option.Boolean('-d,--dry,--dry-run', false
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
this.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
this.
|
|
26
|
-
|
|
19
|
+
this.isDryRun = clipanion_1.Option.Boolean('-d,--dry,--dry-run', false, {
|
|
20
|
+
description: 'Preview collected data which would be sent to Datadog support',
|
|
21
|
+
});
|
|
22
|
+
this.withLogs = clipanion_1.Option.Boolean('--with-logs', false, {
|
|
23
|
+
description: 'Collect recent CloudWatch logs for the specified function',
|
|
24
|
+
});
|
|
25
|
+
this.functionName = clipanion_1.Option.String('-f,--function', {
|
|
26
|
+
description: 'The ARN of the Lambda function to gather data for, or the name of the Lambda function (--region must be defined)',
|
|
27
|
+
});
|
|
28
|
+
this.region = clipanion_1.Option.String('-r,--region', {
|
|
29
|
+
description: 'Default region to use, when --function is specified by the function name instead of the ARN',
|
|
30
|
+
});
|
|
31
|
+
this.caseId = clipanion_1.Option.String('-c,--case-id', {
|
|
32
|
+
description: 'The Datadog case ID to send the files to',
|
|
33
|
+
});
|
|
34
|
+
this.email = clipanion_1.Option.String('-e,--email', {
|
|
35
|
+
description: 'The email associated with the specified case ID',
|
|
36
|
+
});
|
|
37
|
+
this.start = clipanion_1.Option.String('--start', {
|
|
38
|
+
description: `Only gather logs within the time range (--with-logs must be included). This argument is a number in milliseconds since Unix Epoch. Must be used with --end`,
|
|
39
|
+
});
|
|
40
|
+
this.end = clipanion_1.Option.String('--end', {
|
|
41
|
+
description: `Only gather logs within the time range (--with-logs must be included). This argument is a number in milliseconds since Unix Epoch. Must be used with --start`,
|
|
42
|
+
});
|
|
27
43
|
this.fips = clipanion_1.Option.Boolean('--fips', false);
|
|
28
44
|
this.fipsIgnoreError = clipanion_1.Option.Boolean('--fips-ignore-error', false);
|
|
29
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flare.js","sourceRoot":"","sources":["../../../src/commands/lambda/flare.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAyC;AAEzC,iDAAyD;AAEzD,6BAAiC;AAEjC,MAAa,kBAAmB,SAAQ,eAAW;IAAnD;;QASY,aAAQ,GAAG,kBAAM,CAAC,OAAO,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"flare.js","sourceRoot":"","sources":["../../../src/commands/lambda/flare.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAyC;AAEzC,iDAAyD;AAEzD,6BAAiC;AAEjC,MAAa,kBAAmB,SAAQ,eAAW;IAAnD;;QASY,aAAQ,GAAG,kBAAM,CAAC,OAAO,CAAC,oBAAoB,EAAE,KAAK,EAAE;YAC/D,WAAW,EAAE,+DAA+D;SAC7E,CAAC,CAAA;QACQ,aAAQ,GAAG,kBAAM,CAAC,OAAO,CAAC,aAAa,EAAE,KAAK,EAAE;YACxD,WAAW,EAAE,2DAA2D;SACzE,CAAC,CAAA;QACQ,iBAAY,GAAG,kBAAM,CAAC,MAAM,CAAC,eAAe,EAAE;YACtD,WAAW,EACT,kHAAkH;SACrH,CAAC,CAAA;QACQ,WAAM,GAAG,kBAAM,CAAC,MAAM,CAAC,aAAa,EAAE;YAC9C,WAAW,EAAE,6FAA6F;SAC3G,CAAC,CAAA;QACQ,WAAM,GAAG,kBAAM,CAAC,MAAM,CAAC,cAAc,EAAE;YAC/C,WAAW,EAAE,0CAA0C;SACxD,CAAC,CAAA;QACQ,UAAK,GAAG,kBAAM,CAAC,MAAM,CAAC,YAAY,EAAE;YAC5C,WAAW,EAAE,iDAAiD;SAC/D,CAAC,CAAA;QACQ,UAAK,GAAG,kBAAM,CAAC,MAAM,CAAC,SAAS,EAAE;YACzC,WAAW,EAAE,4JAA4J;SAC1K,CAAC,CAAA;QACQ,QAAG,GAAG,kBAAM,CAAC,MAAM,CAAC,OAAO,EAAE;YACrC,WAAW,EAAE,8JAA8J;SAC5K,CAAC,CAAA;QACQ,SAAI,GAAG,kBAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;QACtC,oBAAe,GAAG,kBAAM,CAAC,OAAO,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAA;IAK1E,CAAC;IAHc,OAAO;;YAClB,OAAO,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAA;QACnC,CAAC;KAAA;;AAvCH,gDAwCC;AAvCe,wBAAK,GAAG,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,AAAxB,CAAwB;AAE7B,wBAAK,GAAG,mBAAO,CAAC,KAAK,CAAC;IAClC,QAAQ,EAAE,YAAY;IACtB,WAAW,EACT,8GAA8G;CACjH,CAAC,AAJiB,CAIjB"}
|
|
@@ -16,35 +16,87 @@ const __1 = require("../..");
|
|
|
16
16
|
class LambdaInstrumentCommand extends __1.BaseCommand {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments);
|
|
19
|
-
this.apmFlushDeadline = clipanion_1.Option.String('--apm-flush-deadline'
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
this.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
this.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
this.
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
this.apmFlushDeadline = clipanion_1.Option.String('--apm-flush-deadline', {
|
|
20
|
+
description: `Used to determine when to submit spans before a timeout occurs, in milliseconds. When the remaining time in an AWS Lambda invocation is less than the value set, the tracer attempts to submit the current active spans and all finished spans. Supported for NodeJS and Python. Defaults to '100'`,
|
|
21
|
+
});
|
|
22
|
+
this.appsecEnabled = clipanion_1.Option.Boolean('--appsec', false, {
|
|
23
|
+
description: `Enable Application Security Monitoring for the Lambda function. Defaults to 'false'`,
|
|
24
|
+
});
|
|
25
|
+
this.captureLambdaPayload = clipanion_1.Option.String('--capture-lambda-payload,--captureLambdaPayload', {
|
|
26
|
+
description: `Whether to capture and store the payload and response of a lambda invocation. Defaults to 'false'`,
|
|
27
|
+
});
|
|
28
|
+
this.configPath = clipanion_1.Option.String('--config', {
|
|
29
|
+
description: 'Path to the configuration file',
|
|
30
|
+
});
|
|
31
|
+
this.dryRun = clipanion_1.Option.Boolean('-d,--dry,--dry-run', false, {
|
|
32
|
+
description: 'Preview changes running command would apply',
|
|
33
|
+
});
|
|
34
|
+
this.environment = clipanion_1.Option.String('--env', {
|
|
35
|
+
description: `Use --env to separate out your staging, development, and production environments. Learn more about the env tag here: https://docs.datadoghq.com/serverless/troubleshooting/serverless_tagging/#the-env-tag`,
|
|
36
|
+
});
|
|
37
|
+
this.extensionVersion = clipanion_1.Option.String('-e,--extension-version,--extensionVersion', {
|
|
38
|
+
description: `Version of the Datadog Lambda Extension layer to apply. When extension-version is set, make sure to export DATADOG_API_KEY (or if encrypted, DATADOG_KMS_API_KEY or DATADOG_API_KEY_SECRET_ARN) in your environment as well. While using extension-version, leave out forwarder. Learn more about the Lambda Extension here: https://docs.datadoghq.com/serverless/libraries_integrations/extension`,
|
|
39
|
+
});
|
|
40
|
+
this.extraTags = clipanion_1.Option.String('--extra-tags,--extraTags', {
|
|
41
|
+
description: `Add custom tags to your Lambda function in Datadog. Must be a list of <key>:<value> separated by commas such as: layer:api,team:intake`,
|
|
42
|
+
});
|
|
43
|
+
this.flushMetricsToLogs = clipanion_1.Option.String('--flush-metrics-to-logs,--flushMetricsToLogs', {
|
|
44
|
+
description: `Whether to send metrics via the Datadog Forwarder asynchronously (https://docs.datadoghq.com/serverless/custom_metrics?tab=python#enabling-asynchronous-custom-metrics). If you disable this parameter, it's required to export DATADOG_API_KEY (or if encrypted, DATADOG_KMS_API_KEY or DATADOG_API_KEY_SECRET_ARN). Defaults to 'true'`,
|
|
45
|
+
});
|
|
46
|
+
this.forwarder = clipanion_1.Option.String('--forwarder', {
|
|
47
|
+
description: `The ARN of the datadog forwarder (https://docs.datadoghq.com/logs/guide/forwarder/) to attach this function's LogGroup to`,
|
|
48
|
+
});
|
|
49
|
+
this.functions = clipanion_1.Option.Array('-f,--function', [], {
|
|
50
|
+
description: `The ARN of the Lambda function to be instrumented, or the name of the Lambda function (--region must be defined)`,
|
|
51
|
+
});
|
|
52
|
+
this.interactive = clipanion_1.Option.Boolean('-i,--interactive', false, {
|
|
53
|
+
description: `Allows the user to interactively choose how their function gets instrumented. There is no need to provide any other flags if you choose to use interactive mode since you will be prompted for the information instead`,
|
|
54
|
+
});
|
|
31
55
|
this.layerAWSAccount = clipanion_1.Option.String('-a,--layer-account,--layerAccount', { hidden: true });
|
|
32
|
-
this.layerVersion = clipanion_1.Option.String('-v,--layer-version,--layerVersion'
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
this.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
this.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
this.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
this.
|
|
56
|
+
this.layerVersion = clipanion_1.Option.String('-v,--layer-version,--layerVersion', {
|
|
57
|
+
description: `Version of the Datadog Lambda Library layer to apply. This varies between runtimes.`,
|
|
58
|
+
});
|
|
59
|
+
this.logging = clipanion_1.Option.String('--logging', {
|
|
60
|
+
description: `Whether to collect logs using the Lambda Extension. Defaults to 'true'`,
|
|
61
|
+
});
|
|
62
|
+
this.logLevel = clipanion_1.Option.String('--log-level,--logLevel', {
|
|
63
|
+
description: `Set to debug to see additional output from the Datadog Lambda Library and/or Lambda Extension for troubleshooting purposes`,
|
|
64
|
+
});
|
|
65
|
+
this.mergeXrayTraces = clipanion_1.Option.String('--merge-xray-traces,--mergeXrayTraces', {
|
|
66
|
+
description: `Whether to join dd-trace traces to AWS X-Ray traces. Useful for tracing API Gateway spans. Defaults to 'false'`,
|
|
67
|
+
});
|
|
68
|
+
this.profile = clipanion_1.Option.String('--profile', {
|
|
69
|
+
description: `Specify the AWS named profile credentials to use to instrument. Learn more about AWS named profiles here: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html#using-profiles`,
|
|
70
|
+
});
|
|
71
|
+
this.regExPattern = clipanion_1.Option.String('--functions-regex,--functionsRegex', {
|
|
72
|
+
description: 'A regex pattern to match with the Lambda function name',
|
|
73
|
+
});
|
|
74
|
+
this.region = clipanion_1.Option.String('-r,--region', {
|
|
75
|
+
description: 'Default region to use, when --function is specified by the function name instead of the ARN',
|
|
76
|
+
});
|
|
77
|
+
this.service = clipanion_1.Option.String('--service', {
|
|
78
|
+
description: `Use --service to group related functions belonging to similar workloads. Learn more about the service tag here: https://docs.datadoghq.com/serverless/troubleshooting/serverless_tagging/#the-service-tag`,
|
|
79
|
+
});
|
|
80
|
+
this.sourceCodeIntegration = clipanion_1.Option.Boolean('-s,--source-code-integration,--sourceCodeIntegration', true, {
|
|
81
|
+
description: `Whether to enable Datadog Source Code Integration (https://docs.datadoghq.com/integrations/guide/source-code-integration). This will tag your lambda(s) with the Git repository URL and the latest commit hash of the current local directory. Note: Git repository must not be ahead of remote, and must not be dirty. Defaults to 'true'`,
|
|
82
|
+
});
|
|
83
|
+
this.uploadGitMetadata = clipanion_1.Option.Boolean('-u,--upload-git-metadata,--uploadGitMetadata', true, {
|
|
84
|
+
description: `Whether to enable Git metadata uploading, as a part of source code integration. Git metadata uploading is only required if you don't have the Datadog Github Integration installed. Defaults to 'true'`,
|
|
85
|
+
});
|
|
86
|
+
this.tracing = clipanion_1.Option.String('--tracing', {
|
|
87
|
+
description: `Whether to enable dd-trace tracing on your Lambda. Defaults to 'true'`,
|
|
88
|
+
});
|
|
89
|
+
this.version = clipanion_1.Option.String('--version', {
|
|
90
|
+
description: `Add the --version tag to correlate spikes in latency, load or errors to new versions. Learn more about the version tag here: https://docs.datadoghq.com/serverless/troubleshooting/serverless_tagging/#the-version-tag`,
|
|
91
|
+
});
|
|
92
|
+
this.llmobs = clipanion_1.Option.String('--llmobs', {
|
|
93
|
+
description: `If specified, enables LLM Observability for the instrumented function(s) with the provided ML application name. Defaults to 'false'`,
|
|
94
|
+
});
|
|
45
95
|
this.fips = clipanion_1.Option.Boolean('--fips', false);
|
|
46
96
|
this.fipsIgnoreError = clipanion_1.Option.Boolean('--fips-ignore-error', false);
|
|
47
|
-
this.lambdaFips = clipanion_1.Option.Boolean('--lambda-fips', false
|
|
97
|
+
this.lambdaFips = clipanion_1.Option.Boolean('--lambda-fips', false, {
|
|
98
|
+
description: `Enable FIPS support in the Lambda functions deployed using this tool. Note that for full FIPS compliance, a FIPS endpoint such as ddog-gov.com is required`,
|
|
99
|
+
});
|
|
48
100
|
}
|
|
49
101
|
execute() {
|
|
50
102
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instrument.js","sourceRoot":"","sources":["../../../src/commands/lambda/instrument.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAyC;AAEzC,iDAAyD;AAEzD,6BAAiC;AAEjC,MAAa,uBAAwB,SAAQ,eAAW;IAAxD;;QAQY,qBAAgB,GAAG,kBAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"instrument.js","sourceRoot":"","sources":["../../../src/commands/lambda/instrument.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAyC;AAEzC,iDAAyD;AAEzD,6BAAiC;AAEjC,MAAa,uBAAwB,SAAQ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AA;QACQ,YAAO,GAAG,kBAAM,CAAC,MAAM,CAAC,WAAW,EAAE;YAC7C,WAAW,EAAE,uEAAuE;SACrF,CAAC,CAAA;QACQ,YAAO,GAAG,kBAAM,CAAC,MAAM,CAAC,WAAW,EAAE;YAC7C,WAAW,EAAE,wNAAwN;SACtO,CAAC,CAAA;QACQ,WAAM,GAAG,kBAAM,CAAC,MAAM,CAAC,UAAU,EAAE;YAC3C,WAAW,EAAE,qIAAqI;SACnJ,CAAC,CAAA;QAEQ,SAAI,GAAG,kBAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;QACtC,oBAAe,GAAG,kBAAM,CAAC,OAAO,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAA;QAC9D,eAAU,GAAG,kBAAM,CAAC,OAAO,CAAC,eAAe,EAAE,KAAK,EAAE;YAC5D,WAAW,EAAE,4JAA4J;SAC1K,CAAC,CAAA;IAKJ,CAAC;IAHc,OAAO;;YAClB,OAAO,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAA;QACnC,CAAC;KAAA;;AA7FH,0DA8FC;AA7Fe,6BAAK,GAAG,CAAC,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC,AAA7B,CAA6B;AAElC,6BAAK,GAAG,mBAAO,CAAC,KAAK,CAAC;IAClC,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,4CAA4C;CAC1D,CAAC,AAHiB,CAGjB"}
|
|
@@ -16,14 +16,30 @@ const __1 = require("../..");
|
|
|
16
16
|
class LambdaUninstrumentCommand extends __1.BaseCommand {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments);
|
|
19
|
-
this.configPath = clipanion_1.Option.String('--config'
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
this.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
this.
|
|
26
|
-
|
|
19
|
+
this.configPath = clipanion_1.Option.String('--config', {
|
|
20
|
+
description: 'Path to the configuration file',
|
|
21
|
+
});
|
|
22
|
+
this.dryRun = clipanion_1.Option.Boolean('-d,--dry,--dry-run', false, {
|
|
23
|
+
description: 'Preview changes running command would apply',
|
|
24
|
+
});
|
|
25
|
+
this.forwarder = clipanion_1.Option.String('--forwarder', {
|
|
26
|
+
description: `The ARN of the datadog forwarder (https://docs.datadoghq.com/logs/guide/forwarder/) to remove from this function`,
|
|
27
|
+
});
|
|
28
|
+
this.functions = clipanion_1.Option.Array('-f,--function', [], {
|
|
29
|
+
description: `The ARN of the Lambda function to be uninstrumented, or the name of the Lambda function (--region must be defined)`,
|
|
30
|
+
});
|
|
31
|
+
this.interactive = clipanion_1.Option.Boolean('-i,--interactive', false, {
|
|
32
|
+
description: `Allows the user to interactively choose how their function gets uninstrumented. There is no need to provide any other flags if you choose to use interactive mode since you will be prompted for the information instead`,
|
|
33
|
+
});
|
|
34
|
+
this.profile = clipanion_1.Option.String('--profile', {
|
|
35
|
+
description: `Specify the AWS named profile credentials to use to uninstrument. Learn more about AWS named profiles here: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html#using-profiles`,
|
|
36
|
+
});
|
|
37
|
+
this.regExPattern = clipanion_1.Option.String('--functions-regex,--functionsRegex', {
|
|
38
|
+
description: 'A regex pattern to match with the Lambda function name to be uninstrumented',
|
|
39
|
+
});
|
|
40
|
+
this.region = clipanion_1.Option.String('-r,--region', {
|
|
41
|
+
description: 'Default region to use, when --function is specified by the function name instead of the ARN',
|
|
42
|
+
});
|
|
27
43
|
/**
|
|
28
44
|
* Arguments that are not really in use, but to
|
|
29
45
|
* make uninstrumentation easier for the user.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uninstrument.js","sourceRoot":"","sources":["../../../src/commands/lambda/uninstrument.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAyC;AAEzC,iDAAyD;AAEzD,6BAAiC;AAEjC,MAAa,yBAA0B,SAAQ,eAAW;IAA1D;;QAQY,eAAU,GAAG,kBAAM,CAAC,MAAM,C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QACtC,oBAAe,GAAG,kBAAM,CAAC,OAAO,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAA;IAK1E,CAAC;IAHc,OAAO;;YAClB,OAAO,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAA;QACnC,CAAC;KAAA;;AAxDH,8DAyDC;AAxDe,+BAAK,GAAG,CAAC,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,AAA/B,CAA+B;AAEpC,+BAAK,GAAG,mBAAO,CAAC,KAAK,CAAC;IAClC,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,6CAA6C;CAC3D,CAAC,AAHiB,CAGjB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datadog/datadog-ci-base",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "Base package for Datadog CI",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -58,17 +58,17 @@
|
|
|
58
58
|
"prepack": "yarn package:clean-dist"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@datadog/datadog-ci-plugin-aas": "4.
|
|
62
|
-
"@datadog/datadog-ci-plugin-cloud-run": "4.
|
|
63
|
-
"@datadog/datadog-ci-plugin-container-app": "4.
|
|
64
|
-
"@datadog/datadog-ci-plugin-deployment": "4.
|
|
65
|
-
"@datadog/datadog-ci-plugin-dora": "4.
|
|
66
|
-
"@datadog/datadog-ci-plugin-gate": "4.
|
|
67
|
-
"@datadog/datadog-ci-plugin-lambda": "4.
|
|
68
|
-
"@datadog/datadog-ci-plugin-sarif": "4.
|
|
69
|
-
"@datadog/datadog-ci-plugin-sbom": "4.
|
|
70
|
-
"@datadog/datadog-ci-plugin-stepfunctions": "4.
|
|
71
|
-
"@datadog/datadog-ci-plugin-synthetics": "4.
|
|
61
|
+
"@datadog/datadog-ci-plugin-aas": "4.4.0",
|
|
62
|
+
"@datadog/datadog-ci-plugin-cloud-run": "4.4.0",
|
|
63
|
+
"@datadog/datadog-ci-plugin-container-app": "4.4.0",
|
|
64
|
+
"@datadog/datadog-ci-plugin-deployment": "4.4.0",
|
|
65
|
+
"@datadog/datadog-ci-plugin-dora": "4.4.0",
|
|
66
|
+
"@datadog/datadog-ci-plugin-gate": "4.4.0",
|
|
67
|
+
"@datadog/datadog-ci-plugin-lambda": "4.4.0",
|
|
68
|
+
"@datadog/datadog-ci-plugin-sarif": "4.4.0",
|
|
69
|
+
"@datadog/datadog-ci-plugin-sbom": "4.4.0",
|
|
70
|
+
"@datadog/datadog-ci-plugin-stepfunctions": "4.4.0",
|
|
71
|
+
"@datadog/datadog-ci-plugin-synthetics": "4.4.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependenciesMeta": {
|
|
74
74
|
"@datadog/datadog-ci-plugin-aas": {
|