Repository navigation
dependabot-burner: make remediator validation runnable inside the sandbox - #78461
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
|
@copilot run all npm/precompute commands in separate job and transfer as an artifact |
The remediator creates the dependency edits in the agent job, so moving every npm command into a pre-agent job would validate the old manifests. Do you want a post-agent validation job that consumes an artifact containing the remediator's patch and gates PR publication, or a pre-agent job that uploads npm dependencies for the agent to use? |
|
@copilot resolve the merge conflicts on this branch. |
There was a problem hiding this comment.
🟡 Changes recommended
The required npm install remains blocked by a disallowed package feed, and the focused Go test command still runs the wall-clock performance checks it is intended to avoid.
2 open issues
What changed in this PR
This PR updates the Dependabot remediator’s validation commands to better fit the gh-aw sandbox’s tool and runtime constraints.
Changes:
- Allows script-disabled npm installs and replaces the local docs build with installation validation.
- Specifies the exact action JavaScript test command and narrows Go validation to builds and dependency-related package tests.
- Regenerates the compiled workflow’s tool policy and metadata hashes.
| File | Description |
|---|---|
.github/workflows/dependabot-burner.md |
Updates allowed commands and ecosystem-specific validation instructions. |
.github/workflows/dependabot-burner.lock.yml |
Synchronizes compiled tool permissions and workflow hashes. |
Review effort: Balanced (adaptive)
| and lock install cleanly. Do not run the docs site build here; it needs the WASM | ||
| bundle and GitHub API access, and repository CI builds docs on the replacement PR. | ||
| - Action npm: `npm --prefix actions/setup/js install --package-lock-only --ignore-scripts`, | ||
| `npm --prefix actions/setup/js ci --ignore-scripts`, then focused tests with exactly |
| - Root Go: `go mod tidy`, `go mod verify`, `go build ./...`, then `go test -short` | ||
| only for packages that import the updated module. Do not run `go test ./...`: | ||
| wall-clock budget tests such as `TestLintPerformanceBudget` are not dependency | ||
| validation and are unreliable under sandbox load. |
…tions-job-again # Conflicts: # .github/workflows/dependabot-burner.lock.yml Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Merged
I merged |
|
🎉 This pull request is included in a new release. Release: |

Run 43932974300 failed at
conclusion→ "Handle agent failure" because the agent emittedreport_incomplete. The cause was not the 15 selected Dependabot updates: every validation path the workflow prescribed was blocked by its own allowlist or by sandbox limits.npm --prefix docs run build→astro: not foundinstall --package-lock-onlywas allowed, sonode_modulesnever existed. The docs build also needs the WASM bundle and GitHub API access, which the sandbox lacks.npm --prefix actions/setup/js test→ permission deniedrun test:js -- …).vitestalso had nonode_modules.go test ./...→TestLintPerformanceBudgetChanges (
dependabot-burner.md+ recompiled lock)npm --prefix docs ci --ignore-scripts --legacy-peer-deps(same flags asdocs.yml).npm --prefix actions/setup/js ci --ignore-scripts.go build ./....npm --prefix docs run build.npm cito prove the manifest and lock install cleanly. The site build is left todocs.ymlCI on the replacement PR.npm ci, then exactlynpm --prefix actions/setup/js run test:js -- <test files>. The prompt explicitly says never to usenpm test.go mod tidy,go mod verify,go build ./..., thengo test -shortonly for packages that import the updated module. The prompt explicitly forbidsgo test ./....Notes for review
--ignore-scriptsonnpm cikeeps installs from running package lifecycle scripts; thenodenetwork allowlist already covers the npm registry.TestLintPerformanceBudgetis intentionally left unchanged. CI unit tests run with-short, so skipping it under-shortwould drop the test from CI.