Skip to content

Commit c37b038

Browse files
committed
upgrade deps, fix alert filter
1 parent 316b987 commit c37b038

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

.github/workflows/security-resolutions.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
fix-vulnerabilities:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v6
1919

2020
- name: Setup Node.js
21-
uses: actions/setup-node@v4
21+
uses: actions/setup-node@v6
2222
with:
23-
node-version: "22"
23+
node-version: "24"
2424

2525
- name: Install dependencies
2626
run: yarn install --frozen-lockfile
@@ -46,7 +46,8 @@ jobs:
4646
python3 << 'PYEOF'
4747
import json, os
4848
49-
MIN_SEVERITIES = {"medium", "high", "critical"}
49+
# "medium" = Dependabot terminology, "moderate" = yarn audit terminology
50+
MIN_SEVERITIES = {"moderate", "medium", "high", "critical"}
5051
advisories = {}
5152
5253
# --- Source 1: Dependabot alerts ---
@@ -92,7 +93,7 @@ jobs:
9293
except Exception as e:
9394
print(f" Warning: Could not parse yarn audit: {e}")
9495
95-
print(f"\nFound {len(advisories)} vulnerable packages (medium/high/critical)")
96+
print(f"\nFound {len(advisories)} vulnerable packages (moderate/high/critical)")
9697
9798
output_file = os.environ.get("GITHUB_OUTPUT", "/dev/null")
9899
@@ -183,12 +184,6 @@ jobs:
183184
### Changes
184185
${{ steps.audit.outputs.summary }}
185186
186-
### How this works
187-
- Dependabot alerts were fetched via GitHub API (medium, high, critical only)
188-
- `yarn audit` was also run as a secondary source
189-
- `resolutions` entries were added/updated in `package.json` to force safe versions
190-
- `yarn install` was re-run to update `yarn.lock`
191-
192187
> **Note:** This only updates transitive dependencies via resolutions. Direct dependency upgrades should be done manually to avoid breaking changes.
193188
194189
### Verify

0 commit comments

Comments
 (0)