Issue triage automation applies model output to issues without validating it

Open
#30,205 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

  • #30139 by @r-bedekar — closed without merging

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
25/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
github-actions, typescript
Domain
tooling

Research direction

Read gemini-automated-issue-triage.yml, .github/scripts/apply-issue-labels.cjs, and gemini-automated-issue-dedup.yml to trace where model output reaches GitHub. Compare each value with the constraints stated in the issue and its prompts; done means invalid values are dropped or fail with a clear message while valid output behaves as before. A fix is already open in #30139.

Written by the indexing model from the issue text.

Description

area/platform status/need-triage

The issue triage automation writes the model's answer to the issue without checking it first. Three places pass the output through as is:

  1. gemini-automated-issue-triage.yml, Apply Labels step: the returned label is applied even if it is not one of the area/ labels the model was given.
  2. .github/scripts/apply-issue-labels.cjs (scheduled triage): label names are sent to addLabels without checking them against the repository's labels, and issue_number is not checked to be a positive integer.
  3. gemini-automated-issue-dedup.yml: items in the duplicate list are used without checking that they are issue numbers.

Expected: only values the prompts already describe reach the GitHub API; anything else is dropped or fails the step with a clear message. No change for valid output.

A fix is open in #30139.

Dominant language
TypeScript
Stars
109k
Forks
15k
Avg merge
1d 1h
Merged PRs (30d)
106

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from google-gemini/gemini-cli

All issues in google-gemini/gemini-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.