Skip to content

Convert agentic workflows from Discussions to Issues#226

Merged
abhimehro merged 3 commits intomainfrom
copilot/fix-csv-injection-vulnerability
Feb 14, 2026
Merged

Convert agentic workflows from Discussions to Issues#226
abhimehro merged 3 commits intomainfrom
copilot/fix-csv-injection-vulnerability

Conversation

Copy link

Copilot AI commented Feb 14, 2026

Four agentic workflows (daily-qa, daily-perf-improver, daily-backlog-burner, audit-workflows) were failing with "No discussion categories available" errors. Repository has Discussions disabled.

Changes

Converted workflows to use Issues for progress tracking:

  • safe-outputs configuration

    • create-discussioncreate-issue with labels
    • add-comment.discussion: trueadd-comment.issue: true
    • close-older-discussionsclose-older-issues
  • Workflow instructions

    • Phase selection logic: list_discussionslist_issues
    • Progress updates: reference tracking issues instead of discussions
    • Feedback collection: comment on issues instead of discussions

Example

# Before
safe-outputs:
  create-discussion:
    title-prefix: "${{ github.workflow }}"
    category: "ideas"

# After
safe-outputs:
  create-issue:
    title-prefix: "${{ github.workflow }}"
    labels: [automation, performance, planning]

Workflows retain identical functionality: multi-phase operation state persistence, human feedback loops, and automatic cleanup of older tracking items.

Original prompt

This section details on the original issue you should resolve

<issue_title>[repo-status] Daily Repository Status - February 14, 2026 ✨</issue_title>
<issue_description>## 📊 Repository Health Check

Control D Sync continues to evolve with strong momentum! The project is actively maintained with excellent automation coverage and a security-first mindset.


🎯 Recent Activity Highlights

🔧 Security Improvements in Progress

PR #222: 🛡️ Sentinel - Fix CSV Injection (Open)

  • Addresses log sanitization vulnerability
  • Prevents CSV/formula injection attacks when logs are viewed in spreadsheets
  • Created by automated security agent (Jules)
  • Shows proactive security monitoring! 🔒

📚 Recent Merges (February 13, 2026)

Yesterday was incredibly productive with 10 PRs merged! 🎉

Major Achievements:

  1. PR 🛡️ Sentinel: Fix TOCTOU vulnerability in file permission check #198: Fixed TOCTOU race conditions in permission checks
  2. PR ⚡ Bolt: Skip validation for known existing rules #199: Performance optimization - skip validation for existing rules
  3. PR Add badges, configuration examples, and release process to README #202: Enhanced documentation with badges and release process

Automation Expansion - 7 new agentic workflows added:


⚠️ Action Items

High Priority

Workflow Configuration Issues 🔧
Several agentic workflows are experiencing failures due to missing GitHub Discussions:

Root Cause: No discussion categories available in the repository

Recommendation:

  1. Enable GitHub Discussions in repository settings
  2. Create appropriate discussion categories
  3. Or update workflows to use Issues instead of Discussions

Medium Priority


💪 Project Strengths

Security Excellence 🛡️

  • ✅ Automated security scanning (Bandit, Codacy)
  • ✅ Proactive vulnerability detection (Jules sentinel agent)
  • ✅ Recent fixes for TOCTOU and CSV injection vulnerabilities
  • ✅ Security-focused development practices

Development Velocity 🚀

  • 10 PRs merged in a single day (Feb 13)
  • Fast iteration cycles
  • Automated PR creation and review
  • Clean commit history

Code Quality ✨

  • Modern Python 3.13+ codebase
  • Comprehensive test coverage (test_main.py, tests/ directory)
  • Clean architecture with helper functions
  • Type-safe credential handling

Automation Maturity 🤖

  • 9+ GitHub Actions workflows
  • Agentic workflows for maintenance tasks
  • CI/CD for dry-runs and live syncs
  • Daily status reporting (you're reading it! 📊)

📈 Recent Code Changes

Last 24 Hours

10 commits pushed to main branch, including:

  • Security patches for race conditions and CSV injection
  • Performance optimizations
  • Documentation improvements
  • Workflow additions

Lines of Code

  • Main: ~1,500+ lines (main.py)
  • Tests: ~800+ lines
  • Total: Clean, maintainable codebase

🎯 Recommendations

Immediate Actions

  1. Fix Discussion Dependencies: Enable Discussions or reconfigure workflows to use Issues
  2. Merge Security PR: Review and merge 🛡️ Sentinel: Fix CSV Injection in log sanitization #222 for CSV injection fix
  3. Close Workflow Failure Issues: Once fixed, close issues [agentics] Daily Backlog Burner failed #207-216

Short Term

  1. Documentation: Add troubleshooting guide for common API errors
  2. Testing: Consider integration tests for full sync flow
  3. Release: Cut first official release (currently no releases)

Long Term

  1. Feature: Support for multi-action folders (currently single action only)
  2. Config: Move folder URLs to configuration file
  3. Rollback: Add capability to revert failed syncs
  4. Community: Create contributing guidelines and issue templates

🎉 Wins of the Day

Yesterday's Momentum 🌟

  • 10 successful merges in one day
  • 7 new automation workflows operational
  • 2 security vulnerabilities addressed
  • Performance optimization shipped

Project Maturity

The repository shows excellent DevOps practices with comprehensive automation, security scanning, and proactive vulnerability management. The addition of agentic workflows demonstrates forward-thinking automation strategy!


📊 Quick Stats

  • Open Issues: 7 (all workflow-related, have resolution path)
  • Open PRs: 1 (security fix, ready for review)
  • Recent Commits: 10 (last 24 hours)
  • **W...

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@trunk-io
Copy link

trunk-io bot commented Feb 14, 2026

😎 Merged manually by @abhimehro - details.

Copilot AI and others added 2 commits February 14, 2026 21:42
Co-authored-by: abhimehro <84992105+abhimehro@users.noreply.github.com>
Co-authored-by: abhimehro <84992105+abhimehro@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CSV injection vulnerability in logs Convert agentic workflows from Discussions to Issues Feb 14, 2026
Copilot AI requested a review from abhimehro February 14, 2026 21:45
@abhimehro abhimehro marked this pull request as ready for review February 14, 2026 21:49
Copilot AI review requested due to automatic review settings February 14, 2026 21:49
@github-actions
Copy link

👋 Development Partner is reviewing this PR. Will provide feedback shortly.

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

This PR converts four agentic workflows from using GitHub Discussions to GitHub Issues for progress tracking, resolving failures caused by Discussions being disabled in the repository. The conversion maintains identical workflow functionality while adapting to the available repository features.

Changes:

  • Updated safe-outputs configuration: create-discussioncreate-issue with labels array, discussion: trueissue: true, close-older-discussionsclose-older-issues
  • Modified workflow instructions to reference issues instead of discussions in phase selection logic (list_discussionslist_issues) and progress tracking
  • Replaced discussion category parameters with semantically appropriate labels following repository conventions

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/daily-qa.md Converted QA workflow from discussions to issues with [automation, qa, report] labels
.github/workflows/daily-perf-improver.md Updated performance optimization workflow to use issues with [automation, performance, planning] labels and revised phase selection logic
.github/workflows/daily-backlog-burner.md Converted backlog management workflow to use issues with [automation, backlog, planning] labels for tracking progress
.github/workflows/audit-workflows.md Updated audit workflow to create issues with [automation, audit, report] labels and revised report formatting instructions

Comment on lines 1 to 7
---
description: |
This workflow performs adhoc quality assurance by validating project health daily.
Checks that code builds and runs, tests pass, documentation is clear, and code
is well-structured. Creates discussions for findings and can submit draft PRs
is well-structured. Creates tracking issues for findings and can submit draft PRs
with improvements. Provides continuous quality monitoring throughout development.

Copy link

Copilot AI Feb 14, 2026

Choose a reason for hiding this comment

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

The .md workflow source files have been correctly updated, but the corresponding .lock.yml files (which are the actual GitHub Actions workflow files) still contain Discussion-based configuration and will need to be regenerated by running gh aw compile after this PR is merged. The workflows will continue to fail until the .lock.yml files are updated. Consider either: 1) Including the regenerated .lock.yml files in this PR, or 2) Adding a clear note in the PR description that gh aw compile must be run immediately after merging to regenerate the workflow files.

Copilot uses AI. Check for mistakes.
@abhimehro abhimehro merged commit 24186b9 into main Feb 14, 2026
31 checks passed
@abhimehro abhimehro deleted the copilot/fix-csv-injection-vulnerability branch February 14, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[repo-status] Daily Repository Status - February 14, 2026 ✨

3 participants