Skip to content

Commit 8274551

Browse files
committed
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
1 parent 404c0ac commit 8274551

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/update_security_release.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ export default class UpdateSecurityRelease extends SecurityRelease {
4646
}
4747
const vulnerabilitiesJSONPath = this.getVulnerabilitiesJSONPath();
4848
fs.writeFileSync(vulnerabilitiesJSONPath, JSON.stringify(content, null, 2));
49+
50+
const commitMessage = 'chore: git node security --sync';
51+
commitAndPushVulnerabilitiesJSON([updatedVulnerabilitiesFiles],
52+
commitMessage, { cli, repository: this.repository });
4953
this.cli.ok('Synced vulnerabilities.json with HackerOne');
5054
}
5155

0 commit comments

Comments
 (0)