Skip to content

Commit

Permalink
Update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Laugslander committed Jan 8, 2024
1 parent c39ca3b commit 5f42733
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ function getConfig() {
RUN_DELETE: ["1", "true"].includes(core.getInput("DELETE", { required: false }).toLowerCase()),
ENVIRONMENT: core.getInput("ENVIRONMENT", { required: false }),
TARGET: core.getInput("TARGET", { required: false }),
AUDIT_LOG_HASHING_SALT: core.getInput("AUDIT_LOG_HASHING_SALT", {
required: false,
}),
AUDIT_LOG_HASHING_SALT: core.getInput("AUDIT_LOG_HASHING_SALT") ||
process.env.GITHUB_REPOSITORY_ID ||
"",
};
if (config.DRY_RUN) {
core.info("[DRY_RUN='true'] No changes will be written to secrets");
Expand Down Expand Up @@ -631,7 +631,7 @@ function encrypt(value, key) {
exports.encrypt = encrypt;
// https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#pbkdf2
const hashing_iterations = 210000;
const hashing_key_length = 10;
const hashing_key_length = 5;
function hash(value, salt) {
return crypto_1.default
.pbkdf2Sync(value, salt, hashing_iterations, hashing_key_length, "sha512")
Expand Down

0 comments on commit 5f42733

Please sign in to comment.