Repository navigation
Conversation
16 tasks
Add composite GitHub Action and CI TypeScript modules that enable running sequant workflows from GitHub Actions, triggered by issue labels, comments, or manual dispatch. - sequant-action/action.yml: composite action with inputs/outputs - src/lib/ci/: trigger detection, input validation, config loading, label lifecycle management, and output formatting - Example workflows: label trigger, manual dispatch, comment trigger - 69 new tests across 5 test files Closes #370 Entire-Checkpoint: 6da78a605666
…ency tests
Move all ${{ inputs.* }} and ${{ github.event.* }} references from
inline run: blocks to env: bindings, preventing shell injection via
untrusted input (e.g., issue comment bodies). Add input validation
to strip non-numeric characters from issue numbers.
Add action-consistency.test.ts to catch divergence between the
TypeScript CI module constants and the action.yml shell scripts.
Replace fragile regex-based run block extraction with a proper line-by-line YAML parser. Add sanity check that verifies run blocks are actually found (prevents silent pass on broken extraction). Add test for untrusted event data patterns (comment.body, issue.title, issue.body, PR title/body) — not just inputs.
- Add sequant-version input (default: "^1") instead of @latest for reproducible CI builds - Only export API key to the env var matching the selected agent (ANTHROPIC_API_KEY for claude-code, OPENAI_API_KEY for aider/codex) instead of leaking it to both - Replace GNU-specific grep -oP with POSIX-compatible sed in comment-trigger.yml example (portable across runner platforms) - Add consistency tests for version pinning and API key scoping
Operational documentation covering setup (3 trigger modes), configuration (.github/sequant.yml), action reference (inputs, outputs, label lifecycle), and troubleshooting.
admarble
force-pushed
the
feature/370-github-actions-integration-for-ci-cd-driven-workfl
branch
from
March 23, 2026 13:43
a3b87ec to
7e3d0e7
Compare
admarble
deleted the
feature/370-github-actions-integration-for-ci-cd-driven-workfl
branch
March 23, 2026 13:47
6 tasks
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.
Summary
sequant-action/action.yml) that runs sequant workflows as CI stepssrc/lib/ci/module with trigger detection, input validation, config loading, label lifecycle management, and structured output formattingsequant:solve), manual dispatch, and issue comment trigger (@sequant run)AC Coverage
Phase 1: Basic Action
sequant-action/action.ymlwith all required fieldstriggers.ts+solve-on-label.ymlexamplenpx sequant@latest runwith full flagsoutputs.ts+ action.yml outputs: issue, success, phases, pr-url, durationactions/upload-artifact@v4Phase 2: Event-Driven Automation
triggers.ts:detectTrigger()+solve-on-label.ymlTRIGGER_LABELSin types.ts: spec-only, exec, qalabels.tslifecycle + action.yml steps 5/7triggers.ts:detectCommentTrigger()+comment-trigger.ymlconcurrency: { group: sequant-issue-${{ ... }} }Phase 3: Configuration
config.tsloads.github/sequant.ymlor.sequant/ci.jsonagentfield + action input + merge precedence::add-mask::steptimeout-minutes+maxConcurrentRunsin config + concurrency groupsDerived ACs
gh auth status--no-mcp::add-mask::Test plan
npm run build— passes (0 errors)npm run lint— passes (0 warnings)npm test— 1651 tests pass (67 test files), including 69 new CI testsworkflow_dispatchtriggerCloses #370
🤖 Generated with Claude Code