From 0c857961f3428a644f940452668ba967900e9803 Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Mon, 12 May 2025 15:27:59 -0300 Subject: [PATCH] fix: auto-push git node --security This changes make git node --security to auto push the changes to remote. This make this feature aligned with other git node security features that also pushes to remote automatically --- lib/update_security_release.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/update_security_release.js b/lib/update_security_release.js index 7011f11b..91ec0715 100644 --- a/lib/update_security_release.js +++ b/lib/update_security_release.js @@ -46,6 +46,10 @@ export default class UpdateSecurityRelease extends SecurityRelease { } const vulnerabilitiesJSONPath = this.getVulnerabilitiesJSONPath(); fs.writeFileSync(vulnerabilitiesJSONPath, JSON.stringify(content, null, 2)); + + const commitMessage = 'chore: git node security --sync'; + commitAndPushVulnerabilitiesJSON([vulnerabilitiesJSONPath], + commitMessage, { cli: this.cli, repository: this.repository }); this.cli.ok('Synced vulnerabilities.json with HackerOne'); }