Conversation
- Removes the old bot detection YAML workflow (regular action). - Adds new agentic workflow with a precompute job for gathering data on recent activity, scoring accounts based on risk factors, and maintaining a single triage issue for findings. - Enhances reporting format with structured output for easier triage and action recommendations.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates the legacy bot-detection GitHub Actions workflow from an inline actions/github-script implementation to an agentic workflow (.md source compiled into a .lock.yml) with a deterministic precompute phase and safe-outputs driven issue creation/updating.
Changes:
- Remove the legacy
.github/workflows/bot-detection.ymlworkflow implementation. - Add
.github/workflows/bot-detection.mddefining the agentic workflow prompt + deterministicprecomputejob and safe-outputs policy. - Add the compiled
.github/workflows/bot-detection.lock.ymlproduced bygh aw compile.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .github/workflows/bot-detection.yml | Deletes the legacy hourly bot detection workflow. |
| .github/workflows/bot-detection.md | Adds the agentic workflow source: deterministic precompute (risk scoring + body rendering) and safe-outputs constraints. |
| .github/workflows/bot-detection.lock.yml | Adds the compiled workflow that executes the precompute + agent + safe-outputs pipeline. |
Comments suppressed due to low confidence (1)
.github/workflows/bot-detection.md:327
pulls.listFilesis paginated; requesting onlyper_page: 100without pagination can miss sensitive-path touches when a PR changes >100 files. For the detector’s purpose, it’s important to either paginate (again with a deterministic cap) or otherwise ensure you don’t silently miss files beyond the first page.
const filesResp = await github.rest.pulls.listFiles({
owner,
repo,
pull_number: it.number,
per_page: 100,
});
const filenames = (filesResp.data || []).map(f => f.filename);
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
Contributor
Author
|
@copilot Recompile workflow |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.