githubnext / githubnext/gh-aw-cao

[dependabot:release-train-updater] npm security fix ready but create_pull_request failed again (undici override, repeated failure)

Closed
#8,316 0 comments 0 reactions 0 assignees View on GitHub
dependabot dependabot:release-train-updater
Dominant language
JavaScript
Stars
3
Forks
1
Avg merge
49m
Merged PRs (30d)
837

Description

npm audit still reports 5 vulnerabilities (1 high, 4 moderate) in `undici` (pulled in
transitively via `@actions/github@^7.0.0` and the nested `@actions/artifact -> @actions/github@6.0.1`
copy), affecting: GHSA-g9mf-h72j-4rw9 (high), GHSA-2mjp-6q6p-2qxm, GHSA-vrm6-8vpv-qv8q,
GHSA-v9p9-hfj2-hcw8, GHSA-4992-7rv2-5pvq.

**A validated fix is ready but `create_pull_request` failed twice this run** with the same
error seen in a prior run (2026-09-10 07:55 UTC): `"No changes to commit - no commits found"`,
despite the commit clearly existing (`git log origin/main..HEAD` showed exactly 1 commit;
`git diff origin/main HEAD --stat` showed 2 files changed). This is now a **repeated failure
across at least two separate runs** for this repository/workflow, suggesting a bug in the
`create_pull_request` safe-output tool/pipeline independent of diff size (prior diff: 41+/34-;
this run's diff: 41+/34-, essentially identical).

### Prepared fix (validated, ready to apply manually or via a future successful run)

Add to root `package.json` (after `devDependencies`):

```json
"overrides": {
"undici": "6.28.1"
}
```

Then run:
```
npm install --registry=https://registry.npmjs.org/ --package-lock-only --ignore-scripts
```

This aligns all `undici@^5.x` copies (pulled in by `@actions/github`/`@actions/artifact`) to
`6.28.1`, matching the version already used elsewhere in the tree by `@actions/http-client`
(`^6.23.0`), without bumping `@actions/github` to the semver-major `9.1.1` that
`npm audit fix --force` would otherwise apply.

### Validation performed this run
- `npm audit --package-lock-only --json` before: 5 vulnerabilities (1 high, 4 moderate).
- After applying the override + regenerating `package-lock.json`: **0 vulnerabilities**.
- Both `package.json`/`package-lock.json` confirmed valid JSON.
- All `undici` entries in the lockfile resolve to `6.28.1`.
- `@actions/github`, `@actions/artifact`, `@github/local-action` are devDependencies used
only by `activity/local-runner.mjs` (local Actions tooling), not production runtime —
low risk.
- Full `npm ci`/install with `node_modules` population, and `typecheck:cao`, could not be
fully re-run in this sandbox (no `node_modules`, no local `tsc` module available) —
please confirm via CI once a PR lands.

### Attempted PR branch (commit exists locally, not durably published)
- Branch: `dependabot-agent/undici-security-fix-20260910093315`
- Commit: `88e8ebee3e93356706cd186c05b09982457f1af9`
- Both `create_pull_request` attempts (default base, and explicit `base: "main"`) returned:
`{"result":"error","error":"No changes to commit - no commits found"}`

### Recommendation
1. A maintainer or future run should apply the override above directly and open a PR
manually, or investigate why `create_pull_request` cannot find commits that are
demonstrably present in the local git history for this repository (this is now a
repeated pattern, not a one-off).
2. Re-check `npm audit` before reapplying — if this has already been fixed by another path,
this issue can be closed.

> Generated by [:dependabot: Dependabot / Release Trains](https://github.com/githubnext/gh-aw-cao/actions/runs/34460841778) · copilot · auto · 70 AIC · ⌖ 9.4 AIC · ⊞ 18K · [◷](https://github.com/search?q=repo%3Agithubnext%2Fgh-aw-cao+is%3Aissue+%22gh-aw-workflow-call-id%3A+githubnext%2Fgh-aw-cao%2Fdependabot-release-train-updater%22&type=issues)
>

Add this agentic workflow to your repo

To install this agentic workflow, run

```
gh aw add githubnext/gh-aw-cao/.github/workflows/dependabot-release-train-updater.md@main
```

> - [x] expires on Sep 24, 2026, 9:36 AM UTC

Contributor guide

Open the contributing guide

Research direction

Start with root package.json and package-lock.json, then inspect the create_pull_request safe-output pipeline and the activity/local-runner.mjs tooling mentioned in the issue. Run npm audit --package-lock-only --json and review the existing commit history; done means the vulnerabilities are gone, validation passes, and the fix can be published through a successful pull request or the pipeline failure is explained.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, javascript, node.js
Domain
devops, security, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.