Skip to content

dependabot-burner: make remediator validation runnable inside the sandbox - #78461

Merged
pelikhan merged 4 commits into
mainfrom
copilot/fix-github-actions-job-again
Nov 17, 2026
Merged

pelikhan merged 4 commits into
mainfrom
copilot/fix-github-actions-job-again

Conversation

@pelikhan

@pelikhan pelikhan commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Run 43932974300 failed at conclusion → "Handle agent failure" because the agent emitted report_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.

Remediator blocker Root cause
npm --prefix docs run build → astro: not found Only install --package-lock-only was allowed, so node_modules never existed. The docs build also needs the WASM bundle and GitHub API access, which the sandbox lacks.
npm --prefix actions/setup/js test → permission denied The prompt said "focused action tests" without naming the allowlisted form (run test:js -- …). vitest also had no node_modules.
go test ./... → TestLintPerformanceBudget Whole-repo tests ran a wall-clock budget test that is unrelated to dependency bumps and unreliable under sandbox load.

Changes (dependabot-burner.md + recompiled lock)

  • Bash allowlist
    • Added npm --prefix docs ci --ignore-scripts --legacy-peer-deps (same flags as docs.yml).
    • Added npm --prefix actions/setup/js ci --ignore-scripts.
    • Added go build ./....
    • Removed npm --prefix docs run build.
  • Remediator "Required validation"
    • Docs: refresh the lockfile, then npm ci to prove the manifest and lock install cleanly. The site build is left to docs.yml CI on the replacement PR.
    • Action JS: refresh the lockfile, run npm ci, then exactly npm --prefix actions/setup/js run test:js -- <test files>. The prompt explicitly says never to use npm test.
    • Root Go: go mod tidy, go mod verify, go build ./..., then go test -short only for packages that import the updated module. The prompt explicitly forbids go test ./....

Notes for review

  • --ignore-scripts on npm ci keeps installs from running package lifecycle scripts; the node network allowlist already covers the npm registry.
  • TestLintPerformanceBudget is intentionally left unchanged. CI unit tests run with -short, so skipping it under -short would drop the test from CI.
  • PR 77319 (a grouped pip patch with no concrete dependency versions) will still be blocked on its own, which is correct and unaffected by this change.

pelikhan and others added 2 commits November 16, 2026 21:37
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@pelikhan pelikhan changed the title [WIP] Fix failing GitHub Actions job dependabot-burner: make remediator validation runnable inside the sandbox Nov 16, 2026
@pelikhan

Copy link
Copy Markdown
Collaborator Author

@copilot run all npm/precompute commands in separate job and transfer as an artifact

Copilot AI commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

@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?

@pelikhan
pelikhan marked this pull request as ready for review November 17, 2026 01:14
Copilot AI adaptive review requested due to automatic review settings November 17, 2026 01:14
@pelikhan

Copy link
Copy Markdown
Collaborator Author

@copilot resolve the merge conflicts on this branch.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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
Comment on lines +545 to +548
- 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]>

Copilot AI commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts on this branch.

Merged main and resolved the lockfile conflict in merge commit 6c47fa7b2a.

@copilot run all npm/precompute commands in separate job and transfer as an artifact

I merged main and resolved the lockfile conflict. For the npm job, should the separate job run before the agent and provide precomputed dependencies, or run after the agent against the remediator’s modified checkout and gate PR publication? A pre-agent install only reflects the old manifests, so it cannot validate the generated dependency updates.

@pelikhan
pelikhan merged commit 5762628 into main Nov 17, 2026
16 checks passed
@pelikhan
pelikhan deleted the copilot/fix-github-actions-job-again branch November 17, 2026 01:35
@pelikhan
pelikhan restored the copilot/fix-github-actions-job-again branch November 17, 2026 01:35
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.1

@github-actions
github-actions Bot deleted the copilot/fix-github-actions-job-again branch November 24, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants