From ac94ade380b322ce36dede9559cd337b6c8dd2cc Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Wed, 11 Nov 2026 14:10:37 -0500 Subject: [PATCH] build: add "[security]" to the PR title when appropriate --- build-automation.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build-automation.mjs b/build-automation.mjs index cdc4c75e7..a80a201ab 100644 --- a/build-automation.mjs +++ b/build-automation.mjs @@ -11,6 +11,8 @@ const nodeKeys = readFileSync(resolve(import.meta.dirname, 'keys', 'node.keys')) const updatedVersions = []; +let isSecurity = true; + try { console.log( `Found major versions in versions.json: ${Object.keys(supportedVersions).join(', ')}`, @@ -127,6 +129,7 @@ try { } else if (latestVersion.version !== localVersion) { console.log(`\t${variant}: updating to ${latestVersion.version}`); updatedVersions.push(latestVersion.version); + isSecurity &= latestVersion.security; writeFileSync(dockerfilePath, dockerfileOutput); } else { console.warn( @@ -139,7 +142,7 @@ try { // Let the GitHub Action library set the GITHUB_ENV file rather than manually handling it exportVariable( 'NODE_PR_TITLE', - `feat: Node.js ${[...new Set(updatedVersions)].join(', ')}`, + `${isSecurity ? '[security] ' : ''}Update Node.js ${[...new Set(updatedVersions)].join(', ')}`, ); } else { console.log('No Pull Request will be created.');