Skip to content

Commit 5c0cda6

Browse files
fixup! ci: selectively send PRs for audit fixes
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent c8f8df2 commit 5c0cda6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/npm-audit-fix-selective.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
name: Selective npm audit fix
1010

1111
on:
12+
push: # todo
1213
workflow_dispatch:
1314
inputs:
1415
branch:
@@ -56,7 +57,7 @@ jobs:
5657
run: |
5758
npm ci
5859
npm audit --json --audit-level=none > "audit.json"
59-
vulns=$(jq -r '.vulnerabilities | to_entries[] | select(.value.fixAvailable != false) | .key' "audit.json")
60+
vulns=$(jq -c '.vulnerabilities | to_entries[] | select(.value.fixAvailable != false) | .key' "audit.json")
6061
echo $vulns
6162
echo "vulns<<EOF" >> "$GITHUB_OUTPUT"
6263
echo "$vulns" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)