Skip to content

Remove CONTRIBUTOR from author_association guard in auto-answer-issues workflow#5845

Merged
trwalke merged 2 commits intotrwalke/addGhActionForIssuesfrom
copilot/sub-pr-5836-please-work
Mar 11, 2026
Merged

Remove CONTRIBUTOR from author_association guard in auto-answer-issues workflow#5845
trwalke merged 2 commits intotrwalke/addGhActionForIssuesfrom
copilot/sub-pr-5836-please-work

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 11, 2026

The auto-answer-issues workflow's if: guard included CONTRIBUTOR, 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

  • Removed github.event.issue.author_association == 'CONTRIBUTOR' from the workflow trigger guard in .github/workflows/auto-answer-issues.yml
  • The workflow now only runs for MEMBER and OWNER and COLLABORATOR associations

Testing
No automated tests applicable for workflow YAML changes.

Performance impact
None.

Documentation

  • All relevant documentation is updated.

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…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 trwalke marked this pull request as ready for review March 11, 2026 22:27
@trwalke trwalke requested a review from a team as a code owner March 11, 2026 22:27
@trwalke trwalke merged commit 05212dd into trwalke/addGhActionForIssues Mar 11, 2026
2 checks passed
@trwalke trwalke deleted the copilot/sub-pr-5836-please-work branch March 11, 2026 22:27
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>
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.

2 participants