Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from sonatype-nexus-community:main #3

Open
wants to merge 86 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
466c349
typo [skip ci]
bhamail Jul 13, 2021
1b6a7cb
fix: CWE-20: Improper Input Validation in y18n version 5.0.5
bhamail Jul 19, 2021
a42b9de
make exit code non-zero for args in wrong order (#235)
bhamail Jul 28, 2021
75bb3cd
Fix cache location configuration and expose option on CLI (#234)
mehibbs Jul 28, 2021
7cf35b3
add missing source file header
bhamail Jul 29, 2021
2e3571e
remove unused used params flagged by inspector [skip ci]
bhamail Jul 29, 2021
1e63108
fix: avoid ab-end in Application.spec.ts test by using process.exitCo…
bhamail Jul 29, 2021
9bb8efb
fix: the releases must flow. remove semantic-release dry-run flag
bhamail Jul 29, 2021
ec7d5a8
chore(release): 4.0.26 [skip ci]
Jul 29, 2021
a07ae78
fix: switch to force-resolutions to avoid error when running on a pro…
DarthHater Jul 30, 2021
d755118
chore(release): 4.0.27 [skip ci]
Jul 30, 2021
2056567
fix: workaround to fix issue #239. may convert to yarn later
bhamail Aug 3, 2021
91eab09
chore(release): 4.0.28 [skip ci]
Aug 3, 2021
88b063f
fix: Initial move to yarn (#241)
DarthHater Aug 5, 2021
6082260
chore(release): 4.0.29 [skip ci]
Aug 5, 2021
9c7f614
use non-deprecated image, consolidate docker images into executor
bhamail Aug 6, 2021
a6c8e32
fix: CVE-2021-32796, will change when xmldom@0.7.0 is published on np…
bhamail Aug 9, 2021
24cd807
chore(release): 4.0.30 [skip ci]
Aug 9, 2021
9f8b646
fix: use newly published @xmldom/xmldom package. fixes #243
bhamail Aug 25, 2021
8e3b3ad
fix: Make caching class return undefined if property does not exist (…
DarthHater Sep 7, 2021
2c354e4
ignore IDEA IDE config files
bhamail Sep 7, 2021
589e0ce
fix: use newer node version in CI release process, required to run se…
bhamail Sep 7, 2021
e98ef83
chore(release): 4.0.31 [skip ci]
Sep 7, 2021
74abe3c
fix: SONATYPE-2021-1169
bhamail Sep 16, 2021
a7428e2
fix: revert fix for SONATYPE-2021-1169, breaks eslint. needs more work
bhamail Sep 16, 2021
88616e5
chore(release): 4.0.32 [skip ci]
Sep 16, 2021
c8acb04
fix: Error message formatting (#248)
tomhooijenga Oct 25, 2021
3201e0f
chore(release): 4.0.33 [skip ci]
Oct 25, 2021
1ba5920
use iq.sonatype.dev
bhamail Nov 15, 2021
cde4677
fix: CVE-2022-0235 in node-fetch : 2.6.1
bhamail Jan 20, 2022
f3b9175
chore(release): 4.0.34 [skip ci]
Jan 20, 2022
b7f1548
fix: CVE-2022-21704 in log4js : 6.3.0
bhamail Jan 20, 2022
713f9b9
Merge branch 'main' of github.com:sonatype-nexus-community/auditjs
bhamail Jan 20, 2022
24d9791
chore(release): 4.0.35 [skip ci]
Jan 20, 2022
384a99f
fix: sonatype-2021-4879 in minimatch : 3.0.4
bhamail Feb 8, 2022
fefcd81
chore(release): 4.0.36 [skip ci]
Feb 8, 2022
36ae07f
fix: security(npm): lock colors library to 1.4.0 (#251)
DragonStuff Apr 20, 2022
2ffc035
chore(release): 4.0.37 [skip ci]
Apr 20, 2022
bc6e6ba
minor change to lock after local build.
bhamail May 31, 2022
7305465
add slack notification to CI,
bhamail Jul 11, 2022
f6b920f
test slack CI notification (will revert test)
bhamail Jul 11, 2022
a37b023
revert slack CI notification test
bhamail Jul 11, 2022
25952fa
add agentLabel: 'ubuntu-zion-legacy' to get build happy for now
bhamail Sep 28, 2022
fbb120a
revert add agentLabel
bhamail Sep 30, 2022
5269bef
fix: CVE-2022-37616 in @xmldom/xmldom : 0.7.2
bhamail Oct 13, 2022
142e3f4
chore(release): 4.0.38 [skip ci]
Oct 13, 2022
16b1f59
add slack context to nightly CI build
bhamail Oct 13, 2022
302b3ef
Merge branch 'main' of github.com:sonatype-nexus-community/auditjs
bhamail Oct 13, 2022
73b65bd
fix: CVE-2022-39353 in @xmldom/xmldom : 0.8.3
bhamail Oct 31, 2022
bbb2c37
chore(release): 4.0.39 [skip ci]
Oct 31, 2022
51d1dd0
fix: CVE-2022-25883 in semver : 5.7.1
bhamail Jun 22, 2023
a707e91
use node 16 to fix failure in publishing tools
bhamail Jun 22, 2023
b42ab01
node bump didn't work. try using 'latest' publishing tools instead of…
bhamail Jun 22, 2023
e95651d
hm, no joy. try using 'latest' publishing tools with node 16.
bhamail Jun 22, 2023
a01133f
whee. node 18. (current lts)
bhamail Jun 22, 2023
0c71a49
chore(release): 4.0.40 [skip ci]
Jun 22, 2023
d1b15ab
fix: sonatype-2022-3677 in node-fetch 2.6.7
bhamail Jul 12, 2023
c0ae398
chore(release): 4.0.41 [skip ci]
Jul 12, 2023
48e234e
Update README.md
DarthHater Aug 16, 2023
b329c1f
update yarn lock before investigating removal of inflight dependency
bhamail Dec 8, 2023
4b3cc90
bump cimg/node version to fix CI build issue
bhamail Dec 8, 2023
2d79b85
fix: error TS2688: Cannot find type definition file for 'node'. (#274)
bhamail Dec 13, 2023
94cd45a
chore(release): 4.0.42 [skip ci]
Dec 13, 2023
2b257a5
Fix: sonatype-2023-4801 (#272) in inflight - update packages to remov…
bhamail Dec 13, 2023
032b20a
fix: minor change to trigger release of fix for sonatype-2023-4801
bhamail Dec 13, 2023
ccaffdd
chore(release): 4.0.43 [skip ci]
Dec 13, 2023
430970b
bump cdi/node version to fix Jenkins CI build issue
bhamail Dec 13, 2023
5a96f03
change cdi/node version to fix Jenkins CI build issue
bhamail Dec 13, 2023
1bfd1cd
remove slack/notify from 'build' job because that orb requires access…
bhamail Jan 4, 2024
698b380
Bugfix/fix deprecated packages (#276)
lostunicorn Jan 10, 2024
f676f91
fix: minor change to trigger release of PR# 276
bhamail Jan 10, 2024
cccbaef
chore(release): 4.0.44 [skip ci]
Jan 10, 2024
b46dc0c
remove githubStatusUpdate() calls from Jenkinsfile
bhamail Jan 17, 2024
a122b0e
fix: use semantic-release version that works with node 18 (newer node…
bhamail Jan 17, 2024
8fb8764
chore(release): 4.0.45 [skip ci]
Jan 17, 2024
902704c
try to resolve Jenkins build error: "No matching version found for au…
bhamail Jan 30, 2024
3d08df0
revert fix for intermittent Jenkins build error. [skip ci]
bhamail Jan 30, 2024
83760f2
CI internal - use new IQ [skip ci]
bhamail Apr 18, 2024
cb7efa2
CI internal - use new IQ [skip ci]
bhamail Apr 18, 2024
d065149
fix: resolve CVE-2024-4068 in braces : 3.0.2
bhamail Jun 19, 2024
4ade2a7
fix: resolve CVE-2024-21538 in cross-spawn : 7.0.3
bhamail Nov 11, 2024
d3378f5
fix: resolve CVE-2024-21538 in cross-spawn : 7.0.3 (update CI node ve…
bhamail Nov 11, 2024
e2ac821
fix: update CI 'release' target to use latest semantic-release, now t…
bhamail Nov 12, 2024
7a66cbb
fix: latest mock-fs fixes failing unit tests after other updates, res…
bhamail Nov 13, 2024
20b4052
Merge branch 'main' of github.com:sonatype-nexus-community/auditjs
bhamail Nov 13, 2024
d18ff4c
chore(release): 4.0.46 [skip ci]
Nov 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .circleci/circleci-readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ The local build runs in a docker container.

* (Once) Install circleci client (`brew install circleci`)

* Convert the “real” config.yml into a self contained (non-workspace) config via:
* Convert the “real” config.yml into a self-contained (non-workspace) config via:

circleci config process .circleci/config.yml > .circleci/local-config.yml

* Run a local build with the following command:

circleci local execute -c .circleci/local-config.yml --job 'build'
circleci local execute -c .circleci/local-config.yml 'build'

Typically, both commands are run together:

circleci config process .circleci/config.yml > .circleci/local-config.yml && circleci local execute -c .circleci/local-config.yml --job 'build'
circleci config process .circleci/config.yml > .circleci/local-config.yml && circleci local execute -c .circleci/local-config.yml 'build'

With the above command, operations that cannot occur during a local build will show an error like this:

Expand Down
74 changes: 47 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,48 @@
version: 2.1

orbs:
slack: circleci/slack@4.12.5

executors:
node_executor:
docker:
- image: cimg/node:20.16

jobs:
build:
working_directory: ~/auditjs
docker:
- image: circleci/node:12.14.0
executor: node_executor
steps:
- checkout
- run:
name: update-npm
command: 'sudo npm install -g npm@latest'
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: install-npm-wee
command: npm ci install
name: Install Dependencies
command: yarn install
- save_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
- ~/.cache/yarn
- run:
name: Lint auditjs
command: npm run lint
command: yarn lint
- run:
name: build
command: npm run build
command: yarn build
- run:
name: make test reports directory
command: mkdir reports
- run:
name: test
command: npm run test-ci
- run:
name: code coverage
command: |
npm run coverage
npm run generate-coverage-report
command: yarn test-ci
# - run:
# name: code coverage
# command: |
# yarn coverage
# yarn generate-coverage-report
- store_test_results:
path: reports
- store_artifacts:
Expand All @@ -44,39 +52,50 @@ jobs:
prefix: tests
- run:
name: dogfood scan
command: npm run start -- ossi
command: yarn run start ossi --whitelist dev-auditjs.json
# - slack/notify:
# event: fail
# template: basic_fail_1
# branch_pattern: main

release:
working_directory: ~/auditjs
docker:
- image: circleci/node:12.14.0
executor: node_executor
steps:
- checkout
- run:
name: Allow global installs of npm packages
command: sudo chown -R circleci:circleci /usr/local/lib && sudo chown -R circleci:circleci /usr/local/bin
- run:
name: Install dependencies
command: npm install
command: yarn install
- run:
name: Build auditjs
command: npm run build
command: yarn build
- run:
name: Install publishing packages
command: npm install -g semantic-release@beta @semantic-release/changelog @semantic-release/git@beta @semantic-release/npm@beta
command: yarn global add semantic-release@latest @semantic-release/changelog @semantic-release/git@latest @semantic-release/npm@latest
- run:
name: Attempt publish
command: npx semantic-release -d
command: yarn exec semantic-release
- slack/notify:
event: fail
template: basic_fail_1

workflows:
version: 2.1
build_and_release:
jobs:
- build
# - build:
# context: slack_community_oss_fun
- release:
filters:
branches:
only: main
context: auditjs
context:
- auditjs
- slack_community_oss_fun
requires:
- build

Expand All @@ -88,4 +107,5 @@ workflows:
branches:
only: main
jobs:
- build
- build:
context: slack_community_oss_fun
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ auditjs.json
reports/
lcov.info
test-results.xml
# IDEA config files
*.iml
156 changes: 156 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,159 @@
## [4.0.46](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.45...v4.0.46) (2024-11-13)


### Bug Fixes

* latest mock-fs fixes failing unit tests after other updates, resolve CVE-2024-21538 in cross-spawn 7.0.3 ([7a66cbb](https://github.com/sonatype-nexus-community/auditjs/commit/7a66cbb5f7bd88e2ee6ccff70cb5ca2c88ee4846))
* resolve CVE-2024-21538 in cross-spawn : 7.0.3 ([4ade2a7](https://github.com/sonatype-nexus-community/auditjs/commit/4ade2a7fd575bb7adf33191e14ab9ee7ef2786a9))
* resolve CVE-2024-21538 in cross-spawn : 7.0.3 (update CI node version) ([d3378f5](https://github.com/sonatype-nexus-community/auditjs/commit/d3378f5b0c82f201558a74dc1496540f2306c90a))
* resolve CVE-2024-4068 in braces : 3.0.2 ([d065149](https://github.com/sonatype-nexus-community/auditjs/commit/d06514982d97f9f5258b98e1a6f5731e899b79c4))
* update CI 'release' target to use latest semantic-release, now that we use newer node version ([e2ac821](https://github.com/sonatype-nexus-community/auditjs/commit/e2ac821e5934a40a8d9f71666d7ca77f77a9984f))

## [4.0.45](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.44...v4.0.45) (2024-01-17)


### Bug Fixes

* use semantic-release version that works with node 18 (newer node causes build errors). ([a122b0e](https://github.com/sonatype-nexus-community/auditjs/commit/a122b0e828066d13c9f39e300ee5fe7df8023bc6))

## [4.0.44](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.43...v4.0.44) (2024-01-10)


### Bug Fixes

* minor change to trigger release of PR# 276 ([f676f91](https://github.com/sonatype-nexus-community/auditjs/commit/f676f91a4a96b44f95d2e050acbe0f7e0fdd6943))

## [4.0.43](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.42...v4.0.43) (2023-12-13)


### Bug Fixes

* minor change to trigger release of fix for sonatype-2023-4801 ([032b20a](https://github.com/sonatype-nexus-community/auditjs/commit/032b20a36882fc77ed65134b3b79e1c1d428d42e))

## [4.0.42](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.41...v4.0.42) (2023-12-13)


### Bug Fixes

* error TS2688: Cannot find type definition file for 'node'. ([#274](https://github.com/sonatype-nexus-community/auditjs/issues/274)) ([2d79b85](https://github.com/sonatype-nexus-community/auditjs/commit/2d79b850bbee6f231518f562b3d506794d206672))

## [4.0.41](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.40...v4.0.41) (2023-07-12)


### Bug Fixes

* sonatype-2022-3677 in node-fetch 2.6.7 ([d1b15ab](https://github.com/sonatype-nexus-community/auditjs/commit/d1b15abaec2a4626bec5a6b73207cc2e47837a6e))

## [4.0.40](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.39...v4.0.40) (2023-06-22)


### Bug Fixes

* CVE-2022-25883 in semver : 5.7.1 ([51d1dd0](https://github.com/sonatype-nexus-community/auditjs/commit/51d1dd00b04702f5de258ba6031001cbc4639cc4))

## [4.0.39](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.38...v4.0.39) (2022-10-31)


### Bug Fixes

* CVE-2022-39353 in @xmldom/xmldom : 0.8.3 ([73b65bd](https://github.com/sonatype-nexus-community/auditjs/commit/73b65bd186e08091840114124694f1f456c27714))

## [4.0.38](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.37...v4.0.38) (2022-10-13)


### Bug Fixes

* CVE-2022-37616 in @xmldom/xmldom : 0.7.2 ([5269bef](https://github.com/sonatype-nexus-community/auditjs/commit/5269bef10e5bebb7b0e8d342c7156bc47674a4ab))

## [4.0.37](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.36...v4.0.37) (2022-04-20)


### Bug Fixes

* security(npm): lock colors library to 1.4.0 ([#251](https://github.com/sonatype-nexus-community/auditjs/issues/251)) ([36ae07f](https://github.com/sonatype-nexus-community/auditjs/commit/36ae07fa0588bb77436c06f6d3fa9cc627062628)), closes [#250](https://github.com/sonatype-nexus-community/auditjs/issues/250)

## [4.0.36](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.35...v4.0.36) (2022-02-08)


### Bug Fixes

* sonatype-2021-4879 in minimatch : 3.0.4 ([384a99f](https://github.com/sonatype-nexus-community/auditjs/commit/384a99f4ec56dd1f4ad811d1342f06ea57149911))

## [4.0.35](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.34...v4.0.35) (2022-01-20)


### Bug Fixes

* CVE-2022-21704 in log4js : 6.3.0 ([b7f1548](https://github.com/sonatype-nexus-community/auditjs/commit/b7f1548527d4866a5dad7cdb252230f4975bd37b))

## [4.0.34](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.33...v4.0.34) (2022-01-20)


### Bug Fixes

* CVE-2022-0235 in node-fetch : 2.6.1 ([cde4677](https://github.com/sonatype-nexus-community/auditjs/commit/cde4677621066f1087b1111f8bdc233c3ecdfb7d))

## [4.0.33](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.32...v4.0.33) (2021-10-25)


### Bug Fixes

* Error message formatting ([#248](https://github.com/sonatype-nexus-community/auditjs/issues/248)) ([c8acb04](https://github.com/sonatype-nexus-community/auditjs/commit/c8acb04de235a79686e66d97231c72fb7a961563)), closes [#206](https://github.com/sonatype-nexus-community/auditjs/issues/206)

## [4.0.32](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.31...v4.0.32) (2021-09-16)


### Bug Fixes

* revert fix for SONATYPE-2021-1169, breaks eslint. needs more work ([a7428e2](https://github.com/sonatype-nexus-community/auditjs/commit/a7428e22d29a62dfdb50dd812fd472f16b598260))
* SONATYPE-2021-1169 ([74abe3c](https://github.com/sonatype-nexus-community/auditjs/commit/74abe3cba69ab75deb756e595ccb6394e2d6a405))

## [4.0.31](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.30...v4.0.31) (2021-09-07)


### Bug Fixes

* Make caching class return undefined if property does not exist ([#247](https://github.com/sonatype-nexus-community/auditjs/issues/247)) ([8e3b3ad](https://github.com/sonatype-nexus-community/auditjs/commit/8e3b3ad2daaf6eee5a5caf7bcd63cd9fe555d07e))
* use newer node version in CI release process, required to run semantic-release. ([589e0ce](https://github.com/sonatype-nexus-community/auditjs/commit/589e0cee02a260bde777edef3acd504221896f4f))
* use newly published @xmldom/xmldom package. fixes [#243](https://github.com/sonatype-nexus-community/auditjs/issues/243) ([9f8b646](https://github.com/sonatype-nexus-community/auditjs/commit/9f8b64689d5cc16591a37065c79c6a82b764040b))

## [4.0.30](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.29...v4.0.30) (2021-08-09)


### Bug Fixes

* CVE-2021-32796, will change when xmldom@0.7.0 is published on npm ([#242](https://github.com/sonatype-nexus-community/auditjs/issues/242)) ([a6c8e32](https://github.com/sonatype-nexus-community/auditjs/commit/a6c8e327015025b65f681f25b3d31c7d695733a1))

## [4.0.29](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.28...v4.0.29) (2021-08-05)


### Bug Fixes

* Initial move to yarn ([#241](https://github.com/sonatype-nexus-community/auditjs/issues/241)) ([88b063f](https://github.com/sonatype-nexus-community/auditjs/commit/88b063f66a3998d175e144ef162b550fb892ce6c))

## [4.0.28](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.27...v4.0.28) (2021-08-03)


### Bug Fixes

* workaround to fix issue [#239](https://github.com/sonatype-nexus-community/auditjs/issues/239). may convert to yarn later ([2056567](https://github.com/sonatype-nexus-community/auditjs/commit/2056567345da061b6823e4b715dfbdc8e4f03eca))

## [4.0.27](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.26...v4.0.27) (2021-07-30)


### Bug Fixes

* switch to force-resolutions to avoid error when running on a project without a package-lock.json ([a07ae78](https://github.com/sonatype-nexus-community/auditjs/commit/a07ae78f1c0bdcbe606754aa2288dd06150c855d))

## [4.0.26](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.25...v4.0.26) (2021-07-29)


### Bug Fixes

* avoid ab-end in Application.spec.ts test by using process.exitCode instead of process.exit(). @TNeer rules! ([1e63108](https://github.com/sonatype-nexus-community/auditjs/commit/1e631088da66d45e72aa4c4c90c3ace1560439f1))
* CWE-20: Improper Input Validation in y18n version 5.0.5 ([1b6a7cb](https://github.com/sonatype-nexus-community/auditjs/commit/1b6a7cbd191433df4bfb6dd992bb6773b16f5604))
* the releases must flow. remove semantic-release dry-run flag ([9bb8efb](https://github.com/sonatype-nexus-community/auditjs/commit/9bb8efb8308dbae863a63066af61bbd767cec829))

## [4.0.25](https://github.com/sonatype-nexus-community/auditjs/compare/v4.0.24...v4.0.25) (2021-03-12)


Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ Sonatype internal people:
External contributors:

- [@francois-roget](https://github.com/francois-roget) (François Roget) for [Ingenico Group](https://github.com/ingenico-group)
- [@tomhooijenga](https://github.com/tomhooijenga) (Tom Hooijenga)
- [@lostunicorn](https://github.com/lostunicorn) (Jeroen De Wachter)

Possibly You!
21 changes: 7 additions & 14 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,28 @@
@Library(['private-pipeline-library', 'jenkins-shared']) _

dockerizedBuildPipeline(
buildImageId: "${sonatypeDockerRegistryId()}/cdi/node-12:1",
buildImageId: "${sonatypeDockerRegistryId()}/cdi/node-16",
deployBranch: 'main',
prepare: {
githubStatusUpdate('pending')
},
buildAndTest: {
sh '''
npm i
npm run build
npm run test-ci
yarn
yarn build
yarn test-ci
# prep for scan of only production dependencies
rm -rf node_modules
npm install --production
yarn install --production --frozen-lockfile
'''
},
vulnerabilityScan: {
withDockerImage(env.DOCKER_IMAGE_ID, {
withCredentials([usernamePassword(credentialsId: 'policy.s integration account',
withCredentials([usernamePassword(credentialsId: 'jenkins-saas-service-acct',
usernameVariable: 'IQ_USERNAME', passwordVariable: 'IQ_PASSWORD')]) {
sh 'npx auditjs@latest iq -x -a auditjs -s stage-release -u $IQ_USERNAME -p $IQ_PASSWORD -h https://policy.ci.sonatype.dev'
sh 'npx auditjs@latest iq -x -a auditjs -s release -u $IQ_USERNAME -p $IQ_PASSWORD -h https://sonatype.sonatype.app/platform'
}
})
},
testResults: [ 'reports/test-results.xml' ],
onSuccess: {
githubStatusUpdate('success')
},
onFailure: {
githubStatusUpdate('failure')
notifyChat(currentBuild: currentBuild, env: env, room: 'community-oss-fun')
sendEmailNotification(currentBuild, env, [], 'community-group@sonatype.com')
}
Expand Down
Loading