Skip to content

Conversation

@DimaBir
Copy link
Contributor

@DimaBir DimaBir commented Jan 23, 2026

No description provided.

Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
Refactor wiki integration and AI response handling in issue assistant workflow. Improved logging and error handling.

Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
@DimaBir DimaBir closed this Jan 23, 2026
@DimaBir DimaBir reopened this Jan 29, 2026
@DimaBir
Copy link
Contributor Author

DimaBir commented Feb 2, 2026

your compa
@microsoft-github-policy-service agree [company="Microsoft"]
@microsoft-github-policy-service agree
@microsoft-github-policy-service agree company="Microsoft"

@DimaBir
Copy link
Contributor Author

DimaBir commented Feb 2, 2026

@DimaBir the command you issued was incorrect. Please try again.

Examples are:

@microsoft-github-policy-service agree

and

@microsoft-github-policy-service agree company="your company"

@microsoft-github-policy-service agree
@microsoft-github-policy-service agree company=Microsoft

@DimaBir
Copy link
Contributor Author

DimaBir commented Feb 2, 2026

@chrisnielsen-MS, lets wait on this one, I need to add all the secrets that workflow in PR is relies on. Also, workflow will use cheapest model GPT-4.1 that is literally free for us 0x usage on tokens, it is enough for us.

This workflow refreshes the wiki cache daily and allows manual triggering. It clones the wiki repository, builds a context file from various markdown files, and commits changes if there are updates.

Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
Implement security validation module for MSDO Issue Assistant, including prompt injection detection, suspicious content detection, rate limiting, and input sanitization.

Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
Updated issue assistant workflow to include bot-loop protection and improved error handling for API calls.

Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an automated issue-triage assistant workflow that uses GitHub Models, with a companion workflow to cache wiki content into the repo for retrieval during triage.

Changes:

  • Add issue-assistant.yml workflow to validate issue/comment input and post an AI-assisted triage comment.
  • Add refresh-wiki-cache.yml workflow to build and commit a cached .github/wiki-context.md from the repo wiki.
  • Add .github/issue-assistant/src/security.js module implementing prompt-injection detection, sanitization, and rate limiting.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 10 comments.

File Description
.github/workflows/refresh-wiki-cache.yml Scheduled/manual workflow to clone the repo wiki, generate .github/wiki-context.md, and commit it back to the repo.
.github/workflows/issue-assistant.yml Issue/issue_comment workflow that loads the cached wiki context, calls GitHub Models, validates the response, and posts a comment.
.github/issue-assistant/src/security.js Shared security/validation logic used by the issue assistant workflow (sanitization, injection detection, rate limiting, issue type detection).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@chrisnielsen-MS chrisnielsen-MS left a comment

Choose a reason for hiding this comment

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

This looks exciting! The AI made some good suggestions for making some specific scripts more robust, those look worth following up on. I also left a comment about the inline comments becoming a little messy mixing together comments that explain logic with comments that are explaining fixes applied to the logic -- the metadata about what was fixed/changed should probably be removed.

Removed extensive comments and added safety measures for regex flags.

Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
Added security validation module documentation and design overview.

Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
@DimaBir DimaBir merged commit c5dd2a3 into main Feb 2, 2026
1 of 7 checks passed
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