Skip to content

Commit

Permalink
MEND scan (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
carrolp authored Nov 8, 2023
1 parent 9b069b2 commit 0a20555
Show file tree
Hide file tree
Showing 4 changed files with 478 additions and 4,151 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,7 @@ typings/
dev/
.npmrc

.idea
.idea

# MEND unified agent
wss-unified-agent.jar
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@ node_js:

before_install:
- echo "no before_install steps needed"
- export WS_APIKEY=${WS_APIKEY}
- export WS_USERKEY=${WS_USERKEY}
- export WS_PRODUCTNAME=${WS_PRODUCTNAME}
- export WS_PROJECTNAME=Request-util
- export WS_WSS_URL=https://ibmets.whitesourcesoftware.com/agent

script:
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then npx audit-ci --config audit-ci.json; else npx audit-ci --config audit-ci.json || true; fi
- npm run lint
- npm test
- if [[ "${TRAVIS_TAG}" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-rc\.[0-9]+)?$ ]]; 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:
# Publish npm package when tagged as x.y.z release
Expand Down
1 change: 0 additions & 1 deletion audit-ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
}
],
"allowlist": [
"GHSA-p8p7-x288-28g6"
],
"skip-dev": true
}
Expand Down
Loading

0 comments on commit 0a20555

Please sign in to comment.