Skip to content

Commit

Permalink
Upgraded the nodejs version from 18 to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakhi Mundhada authored and Rakhi Mundhada committed Jun 19, 2024
1 parent bfcf5d4 commit 4316ecd
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 42 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion cfn/paws-collector-shared.template
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
},
"Architectures": ["arm64"],
"Handler":"index.handler",
"Runtime":"nodejs18.x",
"Runtime":"nodejs20.x",
"MemorySize": { "Ref" : "CollectorFunctionMemorySize" },
"Timeout": { "Ref" : "CollectorFunctionTimeout" },
"Environment":{
Expand Down
6 changes: 3 additions & 3 deletions cfn/paws-collector.template
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@
}
},
"Handler":"index.handler",
"Runtime":"nodejs18.x",
"Runtime":"nodejs20.x",
"MemorySize":128,
"Timeout": 5,
"Tags": [
Expand Down Expand Up @@ -609,7 +609,7 @@
}
},
"Handler":"index.handler",
"Runtime":"nodejs18.x",
"Runtime":"nodejs20.x",
"MemorySize":128,
"Timeout": 5,
"Tags": [
Expand Down Expand Up @@ -748,7 +748,7 @@
},
"Architectures": ["arm64"],
"Handler":"index.handler",
"Runtime":"nodejs18.x",
"Runtime":"nodejs20.x",
"MemorySize": { "Ref" : "CollectorFunctionMemorySize" },
"Timeout": { "Ref" : "CollectorFunctionTimeout" },
"Environment":{
Expand Down
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -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."
}
34 changes: 17 additions & 17 deletions ps_spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ stages:
- pull_request
- pull_request:
trigger_phrase: test it
image: node:18
image: node:20
compute_size: small
commands:
- make test

- name: Master Push - Publish
when:
- push: ["master"]
image: node:18
image: node:20
compute_size: small
commands:
- set -ex
Expand All @@ -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*
Expand All @@ -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"
Expand All @@ -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*
Expand All @@ -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"
Expand All @@ -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*
Expand All @@ -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"
Expand All @@ -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*
Expand All @@ -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"
Expand All @@ -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*
Expand All @@ -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"
Expand All @@ -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*
Expand All @@ -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"
Expand All @@ -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*
Expand All @@ -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"
Expand All @@ -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:
Expand Down

0 comments on commit 4316ecd

Please sign in to comment.