Remove CONTRIBUTOR from author_association guard in auto-answer-issues workflow#5845
Merged
trwalke merged 2 commits intotrwalke/addGhActionForIssuesfrom Mar 11, 2026
Merged
Conversation
…s workflow Co-authored-by: trwalke <30090357+trwalke@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [WIP] Address feedback by removing contributor label in GitHub Actions workflow
Remove CONTRIBUTOR from author_association guard in auto-answer-issues workflow
Mar 11, 2026
trwalke
approved these changes
Mar 11, 2026
bgavrilMS
pushed a commit
that referenced
this pull request
Mar 19, 2026
…s workflow (#5845) * Initial plan * Remove CONTRIBUTOR from author_association check in auto-answer-issues workflow Co-authored-by: trwalke <30090357+trwalke@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: trwalke <30090357+trwalke@users.noreply.github.com>
trwalke
added a commit
that referenced
this pull request
May 2, 2026
* Add GitHub Actions workflow for auto-answering issues This action will attempt to answer questions customers have when posted on the repo. * Guard issue auto-answer workflow against untrusted triggering via author_association (#5841) * Initial plan * Guard workflow against untrusted triggering using author_association Co-authored-by: trwalke <30090357+trwalke@users.noreply.github.com> * Add COLLABORATOR and CONTRIBUTOR to author_association guard Co-authored-by: trwalke <30090357+trwalke@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: trwalke <30090357+trwalke@users.noreply.github.com> * Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Rename auto-answer-issues workflow file from main.yml to auto-answer-issues.yml (#5842) * Initial plan * Rename main.yml to auto-answer-issues.yml Co-authored-by: trwalke <30090357+trwalke@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: trwalke <30090357+trwalke@users.noreply.github.com> * Switch auto-answer-issues workflow from OpenAI.com to Azure OpenAI (#5843) * Initial plan * Switch auto-answer-issues workflow from OpenAI.com to Azure OpenAI Co-authored-by: trwalke <30090357+trwalke@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: trwalke <30090357+trwalke@users.noreply.github.com> * [WIP] [WIP] Address feedback on auto-answering issues GitHub Actions workflow (#5846) * Initial plan * Fix ESM/CJS issue: use dynamic import() for openai and @octokit/rest in workflow Co-authored-by: trwalke <30090357+trwalke@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: trwalke <30090357+trwalke@users.noreply.github.com> * Remove CONTRIBUTOR from author_association guard in auto-answer-issues workflow (#5845) * Initial plan * Remove CONTRIBUTOR from author_association check in auto-answer-issues workflow Co-authored-by: trwalke <30090357+trwalke@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: trwalke <30090357+trwalke@users.noreply.github.com> * Prevent duplicate bot comments in auto-answer-issues workflow (#5844) * Initial plan * Add duplicate comment detection to auto-answer-issues workflow Co-authored-by: trwalke <30090357+trwalke@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: trwalke <30090357+trwalke@users.noreply.github.com> --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: trwalke <30090357+trwalke@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
The
auto-answer-issuesworkflow'sif:guard includedCONTRIBUTOR, which allows external users who have previously made merged contributions — defeating the intent of restricting the Azure OpenAI-backed responder to internal users only.Changes proposed in this request
github.event.issue.author_association == 'CONTRIBUTOR'from the workflow trigger guard in.github/workflows/auto-answer-issues.ymlMEMBERandOWNERandCOLLABORATORassociationsTesting
No automated tests applicable for workflow YAML changes.
Performance impact
None.
Documentation
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.