Skip to content

Commit 8fc91d3

Browse files
committed
ci: Fix comment formatting for list of vulnerable packages
When formatting the comment containing the list of vulnerable packages for the PR, we accidentally overwrite the content of the "body" variable, which results in the HTML tags being lost, and the full table being always displayed (instead of hidden in a "<details>" block). Let's fix it. Fixes: da0cf47 ("Clean up SBOM") Signed-off-by: Quentin Monnet <qmo@qmon.net>
1 parent 945eb5f commit 8fc91d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ jobs:
178178
let fs = require('fs');
179179
let body = "<details>\n";
180180
body += "<summary>\n\n";
181-
body = "## Vulnerable packages (gnu64):\n";
181+
body += "## Vulnerable packages (gnu64):\n";
182182
body += "</summary>\n\n";
183183
body += fs.readFileSync('/tmp/dpdk-sys/builds/env.sysroot.gnu64.vulns.triage.md');
184184
body += "\n</details>\n";

0 commit comments

Comments
 (0)