Skip to content

Conversation

@vitorvasc
Copy link
Member

@vitorvasc vitorvasc commented Dec 12, 2025

Signed-off-by: Vitor Vasconcellos <[email protected]>
@chalin chalin force-pushed the ci_genai-content-detection-workflow-updates branch from c7f4269 to be09f72 Compare January 27, 2026 14:35
Copy link
Contributor

@chalin chalin left a comment

Choose a reason for hiding this comment

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

Are we reading to take this for a spin?

Copy link
Contributor

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

This PR improves the AI content detection workflow by introducing a separate COPILOT_TOKEN for GitHub Copilot CLI operations, along with several workflow enhancements including input validation, improved error handling, and result reporting.

Changes:

  • Separates token concerns: GH_TOKEN for GitHub API operations and COPILOT_TOKEN for Copilot CLI
  • Adds a validate-inputs job to the workflow with comprehensive input validation
  • Implements graceful handling when COPILOT_TOKEN is not configured (skips analysis and exits successfully)
  • Adds workflow improvements including concurrency control, npm caching, and a report-results job

Reviewed changes

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

File Description
.github/workflows/ai-content-detection.yml Adds validate-inputs job, updates analyze job with token separation and caching, adds report-results job, and implements concurrency control
scripts/ai-content-detection/analyze.js Introduces COPILOT_TOKEN configuration, updates Copilot CLI to use separate token, adds graceful handling when token is missing
scripts/ai-content-detection/README.md Documents the two-token architecture, adds Token Requirements section explaining the rationale and permissions needed

vitorvasc and others added 4 commits January 27, 2026 16:13
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Patrice Chalin <[email protected]>
Signed-off-by: Vitor Vasconcellos <[email protected]>
Signed-off-by: Vitor Vasconcellos <[email protected]>
Copy link
Contributor

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

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

Copy link
Contributor

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/infra Repo CI & infrastructure

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants