Repository navigation
Fix audit repository detection for numeric run IDs - #79100
Conversation
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
✅ Test Quality Sentinel completed test quality analysis. Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills... |
|
🚀 PR Specification Reviewer has started processing this pull request |
|
✅ Ponytail Reviewer completed successfully! Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error. Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🔎 PR Code Quality Reviewer is reviewing code quality for this pull request... |
There was a problem hiding this comment.
🟡 Changes recommended
Repository detection uses a background context, allowing a stalled gh repo view lookup to exceed --timeout for numeric-ID audits in single-run, diff, and grouped modes.
1 open issue
What changed in this PR
This PR lets gh aw audit resolve bare numeric run IDs using the current repository, reusing existing repository detection while preserving explicit flags and URL-derived repositories.
Changes:
- Enable repository detection for single-run, diff, and grouped audits, with actionable guidance when detection fails.
- Add regression coverage for selected repositories, local-origin fallback, and detection failures.
- Update CLI help and documentation to explain the new default.
| File | Description |
|---|---|
pkg/cli/audit_command.go |
Infer the repository for numeric IDs and update help text. |
pkg/cli/audit_command_test.go |
Cover repository detection, fallback, failures, and grouped resolution. |
docs/src/content/docs/setup/cli.md |
Explain repository defaults and explicit selection. |
docs/src/content/docs/reference/audit.md |
Update the flag default and stdin examples. |
Review effort: Balanced (adaptive)
|
Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error. 🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "17ca0201775ba3b2e551353547f0d6c3da9879de",
"kind": "requested",
"schema_version": "1",
"state": "30d762878a8bc165a0c52495ee06081cea835fda7fc6fa7f5fd5f2308052acd0",
"work": [
"34f38971738f6a752a646bd7797a6c8d47fb096e4eb6f91e946a91255433c8c4",
"51e2287c3d1ee41b7e13769862add61dcd292a623cf943abc5968c984e246bcf",
"5560fb1817aa287729aa19b56f96922ed5744ac9ed8ddef9aff75b2c4e51608b"
],
"workflow": "pr-sous-chef"
}
|
|
@gh-aw-bot Unfortunately I hit an unexpected error while processing your comment. I've automatically reported this to GitHub. You can ask me to try again later by mentioning me in a new comment. If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: Sorry for the inconvenience! |
|
@copilot run pr-finisher skill |
…sniff-repo Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Merged latest main with Validation: focused regression tests, impacted unit tests, Go lint, build, and all 366 workflow compilations passed. Custom-linter diagnostics were confined to unchanged files; the aggregate gate failed. CodeQL could not complete because its Git diff timed out twice. The three agent failures are SDK session-state directory |
Ran
Not yet merge-ready: maintainer action is needed to resolve the answered thread and investigate/re-run the failed shard. No CI was triggered and no merge was performed. |
|
Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error. 🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "7a19db4dd023aedfc75f282e6a0fcfd15e0e5358",
"kind": "requested",
"schema_version": "1",
"state": "0d4c97eb35fdb92cc2f841cd459dce5e0db619b060417973d91f8097536c88f6",
"work": [
"e9d7501fc834b70ac771af5e7694ba7f29ea683b65e0f01f096571f99da4b76f"
],
"workflow": "pr-sous-chef"
}
|
…sniff-repo Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
@copilot fix ci failures |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Ran
Latest
Merged |

gh aw audit <run-id>required--repoeven inside a repository. This change infers the current repository when no flag or run URL supplies one.--repo owner/repoor a run URL.