Skip to content

Commit

Permalink
MEND scan (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
carrolp authored Nov 8, 2023
1 parent c12759a commit c13f8e7
Show file tree
Hide file tree
Showing 5 changed files with 519 additions and 5,301 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,6 @@ debug/
test.js
dev/
.npmrc

# MEND unified agent
wss-unified-agent.jar
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@ language: node_js
node_js:
- "16"

before_install:
- export WS_APIKEY=${WS_APIKEY}
- export WS_USERKEY=${WS_USERKEY}
- export WS_PRODUCTNAME=${WS_PRODUCTNAME}
- export WS_PROJECTNAME=razeedeploy-core
- export WS_WSS_URL=https://ibmets.whitesourcesoftware.com/agent

script:
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then npx audit-ci --config audit-ci.json --only=prod; else npx audit-ci --config audit-ci.json || true; fi
- npm run lint
- npm test
- if [ -n "${TRAVIS_TAG}" ]; then npm version --no-git-tag-version "${TRAVIS_TAG}"; fi
# Perform UA scan on non-PR builds
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then curl -LJO https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar; java -jar wss-unified-agent.jar -d . || echo "UA Scan Error occurred"; fi

deploy:
- provider: npm
Expand Down
4 changes: 2 additions & 2 deletions audit-ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
"GHSA-p8p7-x288-28g6": {
"active": true,
"notes": "The Request package through 2.88.2 for Node.js allows a bypass of SSRF mitigations via an attacker-controller server that does a cross-protocol redirect (HTTP to HTTPS, or HTTPS to HTTP)",
"expiry": "2023-10-01"
"expiry": "2023-12-31"
}
},
{
"GHSA-72xf-g2v4-qvf3": {
"active": true,
"notes": "The Request package (see above) requires tough-cookie at a vulnerable version.",
"expiry": "2023-10-01"
"expiry": "2023-12-31"
}
} ],
"skip-dev": true
Expand Down
Loading

0 comments on commit c13f8e7

Please sign in to comment.