fix workflows

This commit is contained in:
Hare Sudhan 2024-02-25 16:42:08 -05:00
parent ab0bc52d3c
commit eadc74e4f4
3 changed files with 11 additions and 9 deletions

View file

@ -21,8 +21,8 @@ jobs:
npm install npm install
npm run setheapsize npm run setheapsize
- name: Lint - name: Format & Lint
run: npm run style && npx grunt lint && git diff --exit-code run: (npm run style || npm run lint) && git diff --exit-code
- name: Unit Tests - name: Unit Tests
run: | run: |

View file

@ -191,7 +191,6 @@
"testuidev": "npx nightwatch --env=dev", "testuidev": "npx nightwatch --env=dev",
"lint": "npx grunt lint", "lint": "npx grunt lint",
"style": "prettier --write .", "style": "prettier --write .",
"check-style": "prettier --check .",
"postinstall": "npx grunt exec:fixCryptoApiImports && npx grunt exec:fixSnackbarMarkup", "postinstall": "npx grunt exec:fixCryptoApiImports && npx grunt exec:fixSnackbarMarkup",
"newop": "node --experimental-modules --experimental-json-modules src/core/config/scripts/newOperation.mjs", "newop": "node --experimental-modules --experimental-json-modules src/core/config/scripts/newOperation.mjs",
"minor": "node --experimental-modules --experimental-json-modules src/core/config/scripts/newMinorVersion.mjs", "minor": "node --experimental-modules --experimental-json-modules src/core/config/scripts/newMinorVersion.mjs",

View file

@ -67,12 +67,15 @@ class DeriveEVPKey extends Operation {
iterations = args[2], iterations = args[2],
hasher = args[3], hasher = args[3],
salt = Utils.convertToByteString(args[4].string, args[4].option), salt = Utils.convertToByteString(args[4].string, args[4].option),
key = CryptoJS.EvpKDF(passphrase, salt, { key = CryptoJS.EvpKDF(
// lgtm [js/insufficient-password-hash] passphrase, // lgtm [js/insufficient-password-hash]
keySize: keySize, salt,
hasher: CryptoJS.algo[hasher], {
iterations: iterations keySize: keySize,
}); hasher: CryptoJS.algo[hasher],
iterations: iterations
}
);
return key.toString(CryptoJS.enc.Hex); return key.toString(CryptoJS.enc.Hex);
} }