summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/run-frontend-unittests.sh
diff options
context:
space:
mode:
authorAlfonso Martínez <almartin@redhat.com>2021-12-02 15:05:23 +0100
committerAlfonso Martínez <almartin@redhat.com>2021-12-02 15:05:23 +0100
commitf08c0db689dc6bd29323ac03a91c69e2fe7365a2 (patch)
tree9f8b5b93660e0c278819ca1eeafcd532744582df /src/pybind/mgr/dashboard/run-frontend-unittests.sh
parentMerge pull request #44114 from orozery/librbd-memory-leaks (diff)
downloadceph-f08c0db689dc6bd29323ac03a91c69e2fe7365a2.tar.xz
ceph-f08c0db689dc6bd29323ac03a91c69e2fe7365a2.zip
mgr/dashboard: fix frontend deps' vulnerabilities
- Remove npm-force-resolutions: no resolution needed anymore and this is modifying package-lock.json every time it is run (striping last empty line). - Add .npmrc: save exact version by default; do not launch audit report when installing. Fixes: https://tracker.ceph.com/issues/48005 Signed-off-by: Alfonso Martínez <almartin@redhat.com>
Diffstat (limited to 'src/pybind/mgr/dashboard/run-frontend-unittests.sh')
-rwxr-xr-xsrc/pybind/mgr/dashboard/run-frontend-unittests.sh8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/pybind/mgr/dashboard/run-frontend-unittests.sh b/src/pybind/mgr/dashboard/run-frontend-unittests.sh
index 8432c6f9546..1a6667d03fc 100755
--- a/src/pybind/mgr/dashboard/run-frontend-unittests.sh
+++ b/src/pybind/mgr/dashboard/run-frontend-unittests.sh
@@ -39,14 +39,6 @@ else
fi
fi
-# npm resolutions
-npm run fix:audit
-resolutions=`git status | grep package-lock.json`
-if [ "$resolutions" ]; then
- echo "Please run 'npm run fix:audit' before committing."
- failed=true
-fi
-
if [ `uname` != "FreeBSD" ]; then
deactivate
fi