We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8f8df2 commit 5c0cda6Copy full SHA for 5c0cda6
.github/workflows/npm-audit-fix-selective.yml
@@ -9,6 +9,7 @@
9
name: Selective npm audit fix
10
11
on:
12
+ push: # todo
13
workflow_dispatch:
14
inputs:
15
branch:
@@ -56,7 +57,7 @@ jobs:
56
57
run: |
58
npm ci
59
npm audit --json --audit-level=none > "audit.json"
- 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")
61
echo $vulns
62
echo "vulns<<EOF" >> "$GITHUB_OUTPUT"
63
echo "$vulns" >> "$GITHUB_OUTPUT"
0 commit comments