Skip to content

Commit

Permalink
Merge pull request #4452 from node-red/4443-add-modules-install-audit…
Browse files Browse the repository at this point in the history
…-event

Add modules.install audit event when external module installed
  • Loading branch information
knolleary committed Nov 29, 2023
2 parents a32ee86 + bc6afa2 commit 6b088bd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ async function installModule(moduleDetails) {
const runtimeInstalledModules = settings.get("modules") || {};
runtimeInstalledModules[moduleDetails.module] = moduleDetails;
settings.set("modules",runtimeInstalledModules)
log.audit({event: "modules.install",module:moduleDetails.module, version:moduleDetails.version});
}).catch(result => {
var output = result.stderr || result.toString();
var e;
Expand Down

0 comments on commit 6b088bd

Please sign in to comment.