diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index d2c79665..bad8885b 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -11,10 +11,10 @@ jobs: - uses: actions/checkout@v3 - - name: Use Node.js 18.x + - name: Use Node.js 20.x uses: actions/setup-node@v3 with: - node-version: 18.x + node-version: 20.x - name: make test-all run: | diff --git a/cfn/paws-collector-shared.template b/cfn/paws-collector-shared.template index 1c5cbde5..6322911b 100644 --- a/cfn/paws-collector-shared.template +++ b/cfn/paws-collector-shared.template @@ -296,7 +296,7 @@ }, "Architectures": ["arm64"], "Handler":"index.handler", - "Runtime":"nodejs18.x", + "Runtime":"nodejs20.x", "MemorySize": { "Ref" : "CollectorFunctionMemorySize" }, "Timeout": { "Ref" : "CollectorFunctionTimeout" }, "Environment":{ diff --git a/cfn/paws-collector.template b/cfn/paws-collector.template index e612015d..b8774b1a 100644 --- a/cfn/paws-collector.template +++ b/cfn/paws-collector.template @@ -500,7 +500,7 @@ } }, "Handler":"index.handler", - "Runtime":"nodejs18.x", + "Runtime":"nodejs20.x", "MemorySize":128, "Timeout": 5, "Tags": [ @@ -609,7 +609,7 @@ } }, "Handler":"index.handler", - "Runtime":"nodejs18.x", + "Runtime":"nodejs20.x", "MemorySize":128, "Timeout": 5, "Tags": [ @@ -748,7 +748,7 @@ }, "Architectures": ["arm64"], "Handler":"index.handler", - "Runtime":"nodejs18.x", + "Runtime":"nodejs20.x", "MemorySize": { "Ref" : "CollectorFunctionMemorySize" }, "Timeout": { "Ref" : "CollectorFunctionTimeout" }, "Environment":{ diff --git a/package.json b/package.json index 5598efcc..7464bcdb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@alertlogic/paws-collector", - "version": "2.2.1", + "version": "2.2.2", "license": "MIT", "description": "Alert Logic AWS based API Poll Log Collector Library", "repository": { @@ -21,28 +21,28 @@ "rel": "npm publish --access=public" }, "devDependencies": { - "@aws-sdk/client-cloudformation": "^3.423.0", - "@aws-sdk/client-cloudwatch": "^3.423.0", - "@aws-sdk/client-dynamodb": "^3.423.0", - "@aws-sdk/client-kms": "^3.423.0", - "@aws-sdk/client-lambda": "^3.423.0", - "@aws-sdk/client-s3": "^3.423.0", - "@aws-sdk/client-sqs": "^3.423.0", - "@aws-sdk/client-ssm": "^3.423.0", + "@aws-sdk/client-cloudformation": "^3.600.0", + "@aws-sdk/client-cloudwatch": "^3.600.0", + "@aws-sdk/client-dynamodb": "^3.600.0", + "@aws-sdk/client-kms": "^3.600.0", + "@aws-sdk/client-lambda": "^3.600.0", + "@aws-sdk/client-s3": "^3.600.0", + "@aws-sdk/client-sqs": "^3.600.0", + "@aws-sdk/client-ssm": "^3.600.0", "clone": "*", "jshint": "^2.13.6", - "mocha": "^10.2.0", - "nyc": "^15.1.0", - "rewire": "^6.0.0", - "sinon": "^15.2.0", - "yargs": "^17.6.2" + "mocha": "^10.4.0", + "nyc": "^17.0.0", + "rewire": "^7.0.0", + "sinon": "^18.0.0", + "yargs": "^17.7.2" }, "dependencies": { - "@alertlogic/al-aws-collector-js": "4.1.25", - "async": "^3.2.4", - "datadog-lambda-js": "^6.85.0", - "debug": "^4.3.4", - "moment": "^2.29.4" + "@alertlogic/al-aws-collector-js": "4.1.26", + "async": "^3.2.5", + "datadog-lambda-js": "^9.112.0", + "debug": "^4.3.5", + "moment": "^2.30.1" }, "author": "Alert Logic Inc." } diff --git a/ps_spec.yml b/ps_spec.yml index c24e0138..3d12e4b1 100644 --- a/ps_spec.yml +++ b/ps_spec.yml @@ -7,7 +7,7 @@ stages: - pull_request - pull_request: trigger_phrase: test it - image: node:18 + image: node:20 compute_size: small commands: - make test @@ -15,7 +15,7 @@ stages: - name: Master Push - Publish when: - push: ["master"] - image: node:18 + image: node:20 compute_size: small commands: - set -ex @@ -36,7 +36,7 @@ stages: ALPS_SERVICE_NAME: "paws-auth0-collector" ALPS_SERVICE_VERSION: "1.1.55" #set the value from collector package json commands: - - source $NVM_DIR/nvm.sh && nvm use 18 + - source $NVM_DIR/nvm.sh && nvm use 20 - ./build_collector.sh auth0 outputs: file: ./auth0-collector* @@ -52,7 +52,7 @@ stages: - pull_request: trigger_phrase: build-collectors commands: - - source $NVM_DIR/nvm.sh && nvm use 18 + - source $NVM_DIR/nvm.sh && nvm use 20 - ./build_collector.sh carbonblack env: ALPS_SERVICE_NAME: "paws-carbonblack-collector" @@ -74,7 +74,7 @@ stages: ALPS_SERVICE_NAME: "paws-ciscoamp-collector" ALPS_SERVICE_VERSION: "1.0.52" #set the value from collector package json commands: - - source $NVM_DIR/nvm.sh && nvm use 18 + - source $NVM_DIR/nvm.sh && nvm use 20 - ./build_collector.sh ciscoamp outputs: file: ./ciscoamp-collector* @@ -90,7 +90,7 @@ stages: - pull_request: trigger_phrase: build-collectors commands: - - source $NVM_DIR/nvm.sh && nvm use 18 + - source $NVM_DIR/nvm.sh && nvm use 20 - ./build_collector.sh ciscoduo env: ALPS_SERVICE_NAME: "paws-ciscoduo-collector" @@ -112,7 +112,7 @@ stages: ALPS_SERVICE_NAME: "paws-crowdstrike-collector" ALPS_SERVICE_VERSION: "1.0.33" #set the value from collector package json commands: - - source $NVM_DIR/nvm.sh && nvm use 18 + - source $NVM_DIR/nvm.sh && nvm use 20 - ./build_collector.sh crowdstrike outputs: file: ./crowdstrike-collector* @@ -128,7 +128,7 @@ stages: - pull_request: trigger_phrase: build-collectors commands: - - source $NVM_DIR/nvm.sh && nvm use 18 + - source $NVM_DIR/nvm.sh && nvm use 20 - ./build_collector.sh googlestackdriver env: ALPS_SERVICE_NAME: "paws-googlestackdriver-collector" @@ -150,7 +150,7 @@ stages: ALPS_SERVICE_NAME: "paws-gsuite-collector" ALPS_SERVICE_VERSION: "1.2.53" #set the value from collector package json commands: - - source $NVM_DIR/nvm.sh && nvm use 18 + - source $NVM_DIR/nvm.sh && nvm use 20 - ./build_collector.sh gsuite outputs: file: ./gsuite-collector* @@ -166,7 +166,7 @@ stages: - pull_request: trigger_phrase: build-collectors commands: - - source $NVM_DIR/nvm.sh && nvm use 18 + - source $NVM_DIR/nvm.sh && nvm use 20 - ./build_collector.sh mimecast env: ALPS_SERVICE_NAME: "paws-mimecast-collector" @@ -188,7 +188,7 @@ stages: ALPS_SERVICE_NAME: "paws-o365-collector" ALPS_SERVICE_VERSION: "1.2.65" #set the value from collector package json commands: - - source $NVM_DIR/nvm.sh && nvm use 18 + - source $NVM_DIR/nvm.sh && nvm use 20 - ./build_collector.sh o365 outputs: file: ./o365-collector* @@ -204,7 +204,7 @@ stages: - pull_request: trigger_phrase: build-collectors commands: - - source $NVM_DIR/nvm.sh && nvm use 18 + - source $NVM_DIR/nvm.sh && nvm use 20 - ./build_collector.sh okta env: ALPS_SERVICE_NAME: "paws-okta-collector" @@ -226,7 +226,7 @@ stages: ALPS_SERVICE_NAME: "paws-salesforce-collector" ALPS_SERVICE_VERSION: "1.1.54" #set the value from collector package json commands: - - source $NVM_DIR/nvm.sh && nvm use 18 + - source $NVM_DIR/nvm.sh && nvm use 20 - ./build_collector.sh salesforce outputs: file: ./salesforce-collector* @@ -242,7 +242,7 @@ stages: - pull_request: trigger_phrase: build-collectors commands: - - source $NVM_DIR/nvm.sh && nvm use 18 + - source $NVM_DIR/nvm.sh && nvm use 20 - ./build_collector.sh sentinelone env: ALPS_SERVICE_NAME: "paws-sentinelone-collector" @@ -264,7 +264,7 @@ stages: ALPS_SERVICE_NAME: "paws-sophos-collector" ALPS_SERVICE_VERSION: "1.0.51" #set the value from collector package json commands: - - source $NVM_DIR/nvm.sh && nvm use 18 + - source $NVM_DIR/nvm.sh && nvm use 20 - ./build_collector.sh sophos outputs: file: ./sophos-collector* @@ -280,7 +280,7 @@ stages: - pull_request: trigger_phrase: build-collectors commands: - - source $NVM_DIR/nvm.sh && nvm use 18 + - source $NVM_DIR/nvm.sh && nvm use 20 - ./build_collector.sh sophossiem env: ALPS_SERVICE_NAME: "paws-sophossiem-collector" @@ -296,7 +296,7 @@ stages: when: - tag: ['\d+.\d+.\d+'] commands: - - source $NVM_DIR/nvm.sh && nvm use 18 + - source $NVM_DIR/nvm.sh && nvm use 20 - make package-all - zip -r artifact_folder.zip artifact_folder outputs: