Skip to content

ci(jira): add context verification workflow - #2158

Draft
Aliciapet11 wants to merge 2 commits into
mainfrom
test/aisdlc-624-jira-context
Draft

Aliciapet11 wants to merge 2 commits into
mainfrom
test/aisdlc-624-jira-context

Conversation

@Aliciapet11

Copy link
Copy Markdown

Summary

  • Add a manual workflow for AISDLC-624 Jira context verification
  • Run the existing code agent against fixed Story, Task, Bug, and Epic tickets
  • Check out each ticket’s explicit target repository
  • Keep Jira and GitHub access read-only and skip post-script publication

Test plan

  • Dispatch the workflow after merge
  • Inspect the four run artifacts for issue, comment, parent, and attachment fetch behavior

Signed-off-by: apetruni <apetruni@redhat.com>
@Aliciapet11
Aliciapet11 requested a review from a team as a code owner November 23, 2026 14:11
@qodo-code-review

qodo-code-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Add manual Jira context verification workflow

🧪 Tests ⚙️ Configuration changes 🕐 20-40 Minutes

Grey Divider

AI Description

• Add a manually dispatched workflow covering fixed Jira Story, Task, Bug, and Epic tickets.
• Run the code agent against each ticket’s designated repository without post-script publication or
 Jira transitions.
• Retain per-ticket artifacts for inspecting context fetch behavior after the run.
Merge Risk 🟡 Medium

Blast radius 🟢 Low 💥 1 capability

  • 1 affected end-to-end capability after fault-specific containment; implementation boundaries do not widen its functional scope.
  • The workflow's trigger, checkout, environment setup, agent execution, and artifact upload form one bounded integration whose end-to-end outcome is a Jira-linked verification run.
  • The target repositories and external fullsend checkout are propagation hops in that integration, not independent functional scopes.
Sources

.github/workflows/jira-context-verification.yml[6-14]

on:
  workflow_dispatch:
  push:
    branches:
      - test/aisdlc-624-jira-context

concurrency:
  group: jira-context-verification-${{ github.ref }}
  cancel-in-progress: false

.github/workflows/jira-context-verification.yml[24-39]

    strategy:
      fail-fast: false
      matrix:
        include:
          - issue-type: story
            issue-key: RHOA*********74
            target-repo: opendatahub-io/data-connect-hub
          - issue-type: task
            issue-key: RHOA*********62
            target-repo: opendatahub-io/eval-hub-contrib
          - issue-type: bug
            issue-key: RHOA*********39
            target-repo: opendatahub-io/feast
          - issue-type: epic
            issue-key: RHOA********76
            target-repo: opendatahub-io/rhoai-mcp

.github/workflows/jira-context-verification.yml[47-60]

      - name: Check out target repository
        uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
        with:
          repository: ${{ matrix.target-repo }}
          path: target-repo
          persist-credentials: false

      - name: Check out fullsend source
        uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
        with:
          repository: fullsend-ai/fullsend
          ref: main
          path: .fullsend-source
          persist-credentials: false

.github/workflows/jira-context-verification.yml[126-157]

      - name: Authenticate to GCP
        uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0
        with:
          workload_identity_provider: ${{ secrets.E2E_GCP_WIF_PROVIDER }}
          service_account: ${{ secrets.E2E_GCP_SERVICE_ACCOUNT }}

      - name: Run code agent without post-script
        env:
          FULLSEND_WORK_ITEM_URL: ${{ vars.JIRA_BASE_URL }}/browse/${{ matrix.issue-key }}
          JIRA_BASE_URL: ${{ vars.JIRA_BASE_URL }}
          FULLSEND_FORGE: github
          FULLSEND_TRACKER: jira
          FULLSEND_JIRA_TOKEN: ${{ secrets.FULLSEND_JIRA_TOKEN }}
          FULLSEND_JIRA_EMAIL: ${{ secrets.FULLSEND_JIRA_EMAIL }}
          CODE_FORCE: true
          CODE_JIRA_STARTED_TRANSITION: off
          CODE_JIRA_PR_READY_TRANSITION: off
          GH_TOKEN: ${{ github.token }}
          REPO_FULL_NAME: ${{ matrix.target-repo }}
          TARGET_REPO_DIR: ${{ github.workspace }}/target-repo
          ANTHROPIC_VERTEX_PROJECT_ID: ${{ vars.EVALS_VERTEX_PROJECT_ID }}
          GOOGLE_CLOUD_PROJECT: ${{ secrets.E2E_GCP_PROJECT_ID }}
          CLOUD_ML_REGION: ${{ vars.EVALS_GCP_REGION }}
        run: |
          set -euo pipefail
          output_dir="${RUNNER_TEMP}/fullsend-output-${{ matrix.issue-type }}"
          mkdir -p "$output_dir"
          fullsend run code \
            --fullsend-dir "$GITHUB_WORKSPACE" \
            --target-repo "$GITHUB_WORKSPACE/target-repo" \
            --output-dir "$output_dir" \
            --no-post-script
Behavioral complexity 🟡 Medium 🧩 Interacting branches, Coordinated invariants

  • Before: the repository had no workflow for this Jira-context verification operation.
  • After: the PR provides a manually dispatched and test-branch-push-triggered workflow that creates four independent matrix executions, each requiring a specific issue-key/target-repository pairing and an ordered chain of checkout, Go setup, build, Podman socket readiness, OpenShell configuration, CLI installation, GCP authentication, agent execution, and artifact upload.
  • The follow-up adds an activation branch, so correctness now also requires that automatic push activation be limited to the intended branch while preserving the same matrix and per-entry isolation invariants.
  • New correctness conditions remain that matrix values stay paired with intended repositories, runtime is ready before fullsend starts, credentials and paths refer to the same matrix entry, and failures remain isolated while diagnostics are preserved.
  • These are coordinated workflow states and cross-system ordering invariants, not complexity inherited merely from existing actions or shell utilities.
Sources

.github/workflows/jira-context-verification.yml[6-14]

on:
  workflow_dispatch:
  push:
    branches:
      - test/aisdlc-624-jira-context

concurrency:
  group: jira-context-verification-${{ github.ref }}
  cancel-in-progress: false

.github/workflows/jira-context-verification.yml[24-39]

    strategy:
      fail-fast: false
      matrix:
        include:
          - issue-type: story
            issue-key: RHOA*********74
            target-repo: opendatahub-io/data-connect-hub
          - issue-type: task
            issue-key: RHOA*********62
            target-repo: opendatahub-io/eval-hub-contrib
          - issue-type: bug
            issue-key: RHOA*********39
            target-repo: opendatahub-io/feast
          - issue-type: epic
            issue-key: RHOA********76
            target-repo: opendatahub-io/rhoai-mcp

.github/workflows/jira-context-verification.yml[47-60]

      - name: Check out target repository
        uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
        with:
          repository: ${{ matrix.target-repo }}
          path: target-repo
          persist-credentials: false

      - name: Check out fullsend source
        uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
        with:
          repository: fullsend-ai/fullsend
          ref: main
          path: .fullsend-source
          persist-credentials: false

.github/workflows/jira-context-verification.yml[126-157]

      - name: Authenticate to GCP
        uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0
        with:
          workload_identity_provider: ${{ secrets.E2E_GCP_WIF_PROVIDER }}
          service_account: ${{ secrets.E2E_GCP_SERVICE_ACCOUNT }}

      - name: Run code agent without post-script
        env:
          FULLSEND_WORK_ITEM_URL: ${{ vars.JIRA_BASE_URL }}/browse/${{ matrix.issue-key }}
          JIRA_BASE_URL: ${{ vars.JIRA_BASE_URL }}
          FULLSEND_FORGE: github
          FULLSEND_TRACKER: jira
          FULLSEND_JIRA_TOKEN: ${{ secrets.FULLSEND_JIRA_TOKEN }}
          FULLSEND_JIRA_EMAIL: ${{ secrets.FULLSEND_JIRA_EMAIL }}
          CODE_FORCE: true
          CODE_JIRA_STARTED_TRANSITION: off
          CODE_JIRA_PR_READY_TRANSITION: off
          GH_TOKEN: ${{ github.token }}
          REPO_FULL_NAME: ${{ matrix.target-repo }}
          TARGET_REPO_DIR: ${{ github.workspace }}/target-repo
          ANTHROPIC_VERTEX_PROJECT_ID: ${{ vars.EVALS_VERTEX_PROJECT_ID }}
          GOOGLE_CLOUD_PROJECT: ${{ secrets.E2E_GCP_PROJECT_ID }}
          CLOUD_ML_REGION: ${{ vars.EVALS_GCP_REGION }}
        run: |
          set -euo pipefail
          output_dir="${RUNNER_TEMP}/fullsend-output-${{ matrix.issue-type }}"
          mkdir -p "$output_dir"
          fullsend run code \
            --fullsend-dir "$GITHUB_WORKSPACE" \
            --target-repo "$GITHUB_WORKSPACE/target-repo" \
            --output-dir "$output_dir" \
            --no-post-script
Potential damage 🟡 Medium 🩹 Temporary loss

  • A failed setup or invocation prevents the affected verification run from completing.
  • The consequence is a temporary loss of this evaluation capability rather than demonstrated persistent data loss or an irreversible external effect.
  • A wrong static mapping, if present, could instead produce an incorrect result for the affected entry; the source does not establish that any configured mapping is wrong.
  • Rerunning or re-dispatching after correcting the failing dependency, credential, repository, or configuration can restore the run.
  • Reverting the workflow restores prior repository behavior, but does not repair an already-produced incorrect artifact or compensate for any unverified external action by the fullsend implementation.
Sources

.github/workflows/jira-context-verification.yml[6-14]

on:
  workflow_dispatch:
  push:
    branches:
      - test/aisdlc-624-jira-context

concurrency:
  group: jira-context-verification-${{ github.ref }}
  cancel-in-progress: false

.github/workflows/jira-context-verification.yml[24-39]

    strategy:
      fail-fast: false
      matrix:
        include:
          - issue-type: story
            issue-key: RHOA*********74
            target-repo: opendatahub-io/data-connect-hub
          - issue-type: task
            issue-key: RHOA*********62
            target-repo: opendatahub-io/eval-hub-contrib
          - issue-type: bug
            issue-key: RHOA*********39
            target-repo: opendatahub-io/feast
          - issue-type: epic
            issue-key: RHOA********76
            target-repo: opendatahub-io/rhoai-mcp

.github/workflows/jira-context-verification.yml[126-157]

      - name: Authenticate to GCP
        uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0
        with:
          workload_identity_provider: ${{ secrets.E2E_GCP_WIF_PROVIDER }}
          service_account: ${{ secrets.E2E_GCP_SERVICE_ACCOUNT }}

      - name: Run code agent without post-script
        env:
          FULLSEND_WORK_ITEM_URL: ${{ vars.JIRA_BASE_URL }}/browse/${{ matrix.issue-key }}
          JIRA_BASE_URL: ${{ vars.JIRA_BASE_URL }}
          FULLSEND_FORGE: github
          FULLSEND_TRACKER: jira
          FULLSEND_JIRA_TOKEN: ${{ secrets.FULLSEND_JIRA_TOKEN }}
          FULLSEND_JIRA_EMAIL: ${{ secrets.FULLSEND_JIRA_EMAIL }}
          CODE_FORCE: true
          CODE_JIRA_STARTED_TRANSITION: off
          CODE_JIRA_PR_READY_TRANSITION: off
          GH_TOKEN: ${{ github.token }}
          REPO_FULL_NAME: ${{ matrix.target-repo }}
          TARGET_REPO_DIR: ${{ github.workspace }}/target-repo
          ANTHROPIC_VERTEX_PROJECT_ID: ${{ vars.EVALS_VERTEX_PROJECT_ID }}
          GOOGLE_CLOUD_PROJECT: ${{ secrets.E2E_GCP_PROJECT_ID }}
          CLOUD_ML_REGION: ${{ vars.EVALS_GCP_REGION }}
        run: |
          set -euo pipefail
          output_dir="${RUNNER_TEMP}/fullsend-output-${{ matrix.issue-type }}"
          mkdir -p "$output_dir"
          fullsend run code \
            --fullsend-dir "$GITHUB_WORKSPACE" \
            --target-repo "$GITHUB_WORKSPACE/target-repo" \
            --output-dir "$output_dir" \
            --no-post-script
Assessed commit 3e7dca7
Diagram

graph TD
  A["Manual dispatch"] --> B["Issue matrix"] --> C["Target checkouts"] --> D["Agent runtime"] --> E["Code agent"] --> F["Run artifacts"]
  E -->|fetch context| G["Jira tickets"]
  H["GCP authentication"] --> E
Loading
High-Level Assessment

A standalone matrix workflow fits targeted, manually initiated verification better than extending the broader functional-test suite. The fixed tickets and separate artifacts make the four cases easy to inspect; dispatching it after merge remains necessary to validate the setup.

Files changed (1) +163 / -0

Other (1) +163 / -0
jira-context-verification.ymlAdd four-case Jira context verification workflow +163/-0

Add four-case Jira context verification workflow

• Introduces a manual matrix workflow pairing Story, Task, Bug, and Epic tickets with explicit target repositories. It builds fullsend, prepares Podman and OpenShell, authenticates to GCP, and runs the code agent with Jira transitions disabled and no post-script. Each job uploads its output as a 30-day artifact, including when the run fails.

.github/workflows/jira-context-verification.yml

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 2:14 PM UTC · Completed 2:24 PM UTC

Commit: 6416291 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.70

@qodo-code-review

qodo-code-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (3) 📘 Rule violations (0) 🔗 Cross-repo conflicts (3) 📜 Skill insights (2)

Grey Divider


Action required

1. Jira tickets never reach the agent 🔗 Cross-repo conflict ≡ Correctness
Description
The workflow sets FULLSEND_TRACKER=jira but invokes fullsend run code without a normalized Jira
event, which is what Fullsend uses to select the Jira harness overlay. For all four tickets,
Fullsend instead selects the GitHub path, so the Jira pre-script and provider-backed Jira context
fetches are not used.
Code

.github/workflows/jira-context-verification.yml[R150-154]

+          fullsend run code \
+            --fullsend-dir "$GITHUB_WORKSPACE" \
+            --target-repo "$GITHUB_WORKSPACE/target-repo" \
+            --output-dir "$output_dir" \
+            --no-post-script
Relevance

●● Moderate

Related dismissed Jira harness findings (1916), but the missing event-file mechanism has no direct
precedent.

PR-#1916

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The workflow supplies a Jira URL and tracker variable but no event file; Fullsend derives tracker
provenance from an event file or dispatch payload and uses that provenance for Jira-specific
execution.

agents -> fullsend
.github/workflows/jira-context-verification.yml[129-154]
harness/code.yaml[161-178]
External repo: fullsend-ai/fullsend, internal/cli/run.go [648-708]
External repo: fullsend-ai/fullsend, internal/cli/run_workitem.go [35-75]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Fullsend selects Jira behavior from a normalized event, not `FULLSEND_TRACKER`.
## Fix Focus Areas
- .github/workflows/jira-context-verification.yml[129-154]
## Recommended Fix
Create a valid normalized Jira event for each matrix ticket and pass it to `fullsend run code` with `--event-file`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


2. Target hooks can copy runner credentials 🐞 Bug ⛨ Security
Description
fullsend run code receives GH_TOKEN in its environment after GCP authentication, while the code
harness's host-side validation runs hooks configured by the checked-out target repository. If an
agent run produces changed files, a target-controlled pre-commit hook can execute with runner
credentials and write their contents into the directory that this workflow uploads unconditionally.
Code

.github/workflows/jira-context-verification.yml[R140-142]

+          GH_TOKEN: ${{ github.token }}
+          REPO_FULL_NAME: ${{ matrix.target-repo }}
+          TARGET_REPO_DIR: ${{ github.workspace }}/target-repo
Relevance

●● Moderate

Mixed: a redactor-hook concern was rejected (1770), while a pre-push hook credential concern was
accepted (1843).

PR-#1770
PR-#1843

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The workflow checks out a target repository, authenticates to GCP, supplies GH_TOKEN to the agent
process, and always uploads its output directory. The validation script changes into that repository
and invokes pre-commit run against its .pre-commit-config.yaml when there are changed files.

.github/workflows/jira-context-verification.yml[44-49]
.github/workflows/jira-context-verification.yml[123-163]
scripts/validate-code-output.sh[1144-1163]
scripts/validate-code-output.sh[1395-1450]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Target-repository pre-commit hooks can run during host-side agent validation with access to the workflow's credential-bearing environment and output directory.

## Fix Focus Areas
- .github/workflows/jira-context-verification.yml[123-163]
- scripts/validate-code-output.sh[1395-1450]

## Recommended Fix
For this verification run, prevent target-controlled hooks from executing on the credential-bearing runner. Run validation in an isolated environment without runner credentials, or disable that gate for this read-only context check; keep uploaded artifacts outside the reach of untrusted processes and scrub them before publication.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


3. Jira events lack tracker configuration 🔗 Cross-repo conflict ≡ Correctness
Description
The workflow points --fullsend-dir at the repository root, whose config.yaml has no
tracker.jira.base_url. Once a Jira event is supplied, Fullsend rejects the run during Jira
environment setup before it can fetch any ticket context.
Code

.github/workflows/jira-context-verification.yml[151]

+            --fullsend-dir "$GITHUB_WORKSPACE" \
Relevance

●● Moderate

Conflicting precedent on Jira base URL config: a dismissed claim was rejected (1916), while docs
confirm config reads it (1914).

PR-#1916
PR-#1914

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Fullsend loads workspace configuration from the specified directory and explicitly fails
Jira-sourced runs without its Jira base URL; the selected root config does not define one.

agents -> fullsend
.github/workflows/jira-context-verification.yml[150-154]
config.yaml[1-36]
External repo: fullsend-ai/fullsend, internal/cli/run.go [562-578]
External repo: fullsend-ai/fullsend, internal/cli/run.go [1070-1083]
External repo: fullsend-ai/fullsend, internal/cli/run_workitem.go [103-125]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
A Jira-sourced run requires `tracker.jira.base_url` in the config loaded from `--fullsend-dir`; the root workspace config lacks it.
## Fix Focus Areas
- .github/workflows/jira-context-verification.yml[150-154]
- config.yaml[1-36]
## Recommended Fix
Supply valid Jira tracker connection settings in the root workspace config used by this workflow, or create a workflow-specific Fullsend workspace with those settings.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


View high (2)
4. Missing variables stop agent startup 🔗 Cross-repo conflict ≡ Correctness
Description
The run step omits GIT_BOT_EMAIL and PUSH_TOKEN, although the code harness references both and
Fullsend rejects unresolved harness environment variables. Even after supplying a Jira event and
tracker configuration, this workflow reaches environment validation without those values and stops
before the agent runs.
Code

.github/workflows/jira-context-verification.yml[R140-145]

+          GH_TOKEN: ${{ github.token }}
+          REPO_FULL_NAME: ${{ matrix.target-repo }}
+          TARGET_REPO_DIR: ${{ github.workspace }}/target-repo
+          ANTHROPIC_VERTEX_PROJECT_ID: ${{ vars.EVALS_VERTEX_PROJECT_ID }}
+          GOOGLE_CLOUD_PROJECT: ${{ secrets.E2E_GCP_PROJECT_ID }}
+          CLOUD_ML_REGION: ${{ vars.EVALS_GCP_REGION }}
Relevance

●● Moderate

Missing harness env var was rejected for JIRA_BASE_URL (1916), but a missing TARGET_REPO_DIR mapping
was accepted (1050); mixed.

PR-#1916
PR-#1050

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The workflow environment omits both variables, the selected harness references them, and Fullsend's
environment validation fails on unset references before execution.

agents -> fullsend
.github/workflows/jira-context-verification.yml[129-154]
harness/code.yaml[86-107]
External repo: fullsend-ai/fullsend, internal/cli/run.go [1369-1382]
External repo: fullsend-ai/fullsend, internal/harness/harness.go [941-1002]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The selected code harness references variables absent from the workflow environment, and Fullsend fails validation when they are unset.
## Fix Focus Areas
- .github/workflows/jira-context-verification.yml[129-154]
- harness/code.yaml[86-107]
## Recommended Fix
Supply the required bot-email and push-token environment entries for this no-publication run, using appropriate non-publishing values where supported. Validate the composed harness against the complete workflow environment.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


5. Agent runs fail to authenticate to Vertex 🐞 Bug ≡ Correctness
Description
Authenticate to GCP creates a Workload Identity Federation credential configuration, but the
workflow invokes fullsend run code without preparing that configuration for the sandbox. When the
agent makes a Vertex request, the sandbox cannot reach the GitHub OIDC endpoint referenced by the
unmodified credential file, affecting all four matrix jobs.
Code

.github/workflows/jira-context-verification.yml[R123-127]

+      - name: Authenticate to GCP
+        uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0
+        with:
+          workload_identity_provider: ${{ secrets.E2E_GCP_WIF_PROVIDER }}
+          service_account: ${{ secrets.E2E_GCP_SERVICE_ACCOUNT }}
Relevance

●● Moderate

No direct precedent for missing WIF credential preparation; the gap looks real but team acceptance
of this bug type is unclear.

PR-#1916

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The existing preparation script documents the inaccessible OIDC endpoint and rewrites the credential
source to a mounted token file. The functional-test workflow runs it after the same authentication
action; the code harness mounts the credential file into the sandbox, but the new workflow skips
preparation.

scripts/prepare-sandbox-credentials.sh[5-13]
scripts/prepare-sandbox-credentials.sh[18-46]
.github/workflows/functional-tests.yml[403-420]
harness/code.yaml[51-72]
.github/workflows/jira-context-verification.yml[123-154]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The WIF credential file produced by GCP authentication cannot be used from the agent sandbox without the repository's credential-preparation step.

## Fix Focus Areas
- .github/workflows/jira-context-verification.yml[123-150]

## Recommended Fix
After authentication, run `scripts/prepare-sandbox-credentials.sh` as the functional-tests workflow does, preserving the original host credential path if host-side operations need it. Ensure the prepared credential and token file are available to the code harness before invoking `fullsend run code`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗



Remediation recommended

6. Upstream changes can expose Jira tokens 🐞 Bug ⛨ Security
Description
ref: main builds the agent CLI from a mutable external checkout and the workflow later runs that
binary with FULLSEND_JIRA_TOKEN in its environment. A change to upstream main between dispatches
can therefore change the credential-bearing executable without a change to this repository or review
of the new code.
Code

.github/workflows/jira-context-verification.yml[R54-56]

+          repository: fullsend-ai/fullsend
+          ref: main
+          path: .fullsend-source
Relevance

●● Moderate

Mixed: a PR-controlled checkout hardening request was rejected (1770), while a revision-pin concern
was accepted (1906).

PR-#1770
PR-#1906
PR-#776

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The workflow checks out fullsend-ai/fullsend at main, builds and executes its binary, and later
invokes that binary with the Jira token and GitHub token set. Credential withholding inside the Jira
pre-script occurs only after the CLI has started.

.github/workflows/jira-context-verification.yml[51-69]
.github/workflows/jira-context-verification.yml[129-154]
scripts/pre-code-jira.sh[40-82]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The workflow builds and runs a mutable upstream revision with access to the Jira token, allowing its behavior to change between dispatches without a workflow change.

## Fix Focus Areas
- .github/workflows/jira-context-verification.yml[51-69]

## Recommended Fix
Replace `ref: main` with a reviewed full commit SHA. Update that pin through an explicit review process when a newer CLI is required.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


7. Cloud login rights go undocumented 📜 Skill insight ⛨ Security
Description
The job-level permissions block grants id-token: write without a justification in the PR
description or a linked issue. When Authenticate to GCP uses that grant for Workload Identity
Federation and the run step receives GCP project and region settings, reviewers have only a
description of read-only Jira and GitHub access to assess the expanded permission.
Code

.github/workflows/jira-context-verification.yml[R18-20]

+    permissions:
+      contents: read
+      id-token: write
Relevance

●● Moderate

Team has rejected several justification-note requests for protected .github changes, but no close
precedent on id-token permissions.

PR-#754
PR-#476
PR-#631

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Lines 18-20 grant id-token: write, and the GCP authentication step at lines 123-127 uses Workload
Identity Federation. The PR description mentions only read-only Jira and GitHub access, with no
explanation of GCP or the OIDC grant; no linked issue or ADR supplies that justification either.

.github/workflows/jira-context-verification.yml[18-20]
.github/workflows/jira-context-verification.yml[123-127]
Skill: pr-review
Skill: code-review

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The job in `.github/workflows/jira-context-verification.yml` grants `id-token: write` for a GCP Workload Identity Federation step, but the PR description covers only read-only Jira and GitHub access. Reviewers therefore cannot confirm why the expanded permission is needed for the code agent run.

## Fix Focus Areas
- .github/workflows/jira-context-verification.yml[18-20]
- .github/workflows/jira-context-verification.yml[123-127]

## Recommended Fix
Confirm whether the `google-github-actions/auth` step requires OIDC and whether a narrower alternative exists. If it does require OIDC, explain in the PR description that `id-token: write` enables GCP Workload Identity Federation for the code agent run, state that it is the only write-scoped permission, and link an authorizing issue if one exists. Keep the grant at job level so it does not apply to other jobs. If the step can run without OIDC, remove the grant.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗



Informational

8. Podman error log text is not sanitized 📜 Skill insight ⛨ Security
Description
The ::error:: workflow command on line 91 interpolates ${SOCKET_PATH} directly into the message
without sanitizing it for ::, %0A/%0D, or control characters. The value is built from
XDG_RUNTIME_DIR or the UID, so it is runner-derived rather than user-supplied, which keeps the
practical risk low, but the same pattern would be copied if this step later takes values from Jira
or other external input.
Code

.github/workflows/jira-context-verification.yml[91]

+            echo "::error::Podman socket not ready at ${SOCKET_PATH}"
Relevance

● Weak

Same podman socket '::error::' interpolation finding was rejected recently in PR 1557;
near-identical snippet.

PR-#1557

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The added echo "::error::Podman socket not ready at ${SOCKET_PATH}" interpolates a variable into a
workflow command with no sanitization, which the rule requires for every interpolated value. The
value is runner-derived, so this is a low-risk deviation rather than an exploitable injection; the
severity was lowered from the rule's declared error level on that basis.

.github/workflows/jira-context-verification.yml[91-91]
Skill: pr-review

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The `::error::` workflow command interpolates `${SOCKET_PATH}` without sanitizing it for `::`, `%0A`/`%0D`, or control characters.

## Fix Focus Areas
- .github/workflows/jira-context-verification.yml[90-92]

## Recommended Fix
Define a small sanitize helper (escape `%`, newlines, carriage returns, and `::`) and wrap `${SOCKET_PATH}` in it before the `echo "::error::..."` line. Alternatively, print the path with a plain `echo` that does not use a workflow command prefix.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


Grey Divider

Context sources
❌ Tickets: failed to load — Ticket collection could not establish complete evidence
✅ Compliance rules (platform): 55 rules
✅ Skills: 4 invoked
  code-review
  code-implementation
  pr-review
  docs-review
✅ Cross-repo context — repo relationships
  Explored: repo: fullsend-ai/fullsend (branch: main, sha: d5fa9c5f) — View relationship
Review mode: Auto: ⚖️ Balanced: CI workflow uses secrets, cloud authentication, permissions, and external repositories.

Grey Divider

Tip of the day
💡 Did you know, you can keep summaries lean with Findings visible per group, which tucks the rest behind a View link

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment on lines +18 to +20
permissions:
contents: read
id-token: write

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remediation recommended

6. Cloud login rights go undocumented 📜 Skill insight ⛨ Security

The job-level permissions block grants id-token: write without a justification in the PR
description or a linked issue. When Authenticate to GCP uses that grant for Workload Identity
Federation and the run step receives GCP project and region settings, reviewers have only a
description of read-only Jira and GitHub access to assess the expanded permission.
Agent Prompt
## Issue description
The job in `.github/workflows/jira-context-verification.yml` grants `id-token: write` for a GCP Workload Identity Federation step, but the PR description covers only read-only Jira and GitHub access. Reviewers therefore cannot confirm why the expanded permission is needed for the code agent run.

## Fix Focus Areas
- .github/workflows/jira-context-verification.yml[18-20]
- .github/workflows/jira-context-verification.yml[123-127]

## Recommended Fix
Confirm whether the `google-github-actions/auth` step requires OIDC and whether a narrower alternative exists. If it does require OIDC, explain in the PR description that `id-token: write` enables GCP Workload Identity Federation for the code agent run, state that it is the only write-scoped permission, and link an authorizing issue if one exists. Keep the grant at job level so it does not apply to other jobs. If the step can run without OIDC, remove the grant.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗

Comment on lines +123 to +127
- name: Authenticate to GCP
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0
with:
workload_identity_provider: ${{ secrets.E2E_GCP_WIF_PROVIDER }}
service_account: ${{ secrets.E2E_GCP_SERVICE_ACCOUNT }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

1. Agent runs fail to authenticate to vertex 🐞 Bug ≡ Correctness

Authenticate to GCP creates a Workload Identity Federation credential configuration, but the
workflow invokes fullsend run code without preparing that configuration for the sandbox. When the
agent makes a Vertex request, the sandbox cannot reach the GitHub OIDC endpoint referenced by the
unmodified credential file, affecting all four matrix jobs.
Agent Prompt
## Issue description
The WIF credential file produced by GCP authentication cannot be used from the agent sandbox without the repository's credential-preparation step.

## Fix Focus Areas
- .github/workflows/jira-context-verification.yml[123-150]

## Recommended Fix
After authentication, run `scripts/prepare-sandbox-credentials.sh` as the functional-tests workflow does, preserving the original host credential path if host-side operations need it. Ensure the prepared credential and token file are available to the code harness before invoking `fullsend run code`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗

Comment on lines +140 to +142
GH_TOKEN: ${{ github.token }}
REPO_FULL_NAME: ${{ matrix.target-repo }}
TARGET_REPO_DIR: ${{ github.workspace }}/target-repo

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

2. Target hooks can copy runner credentials 🐞 Bug ⛨ Security

fullsend run code receives GH_TOKEN in its environment after GCP authentication, while the code
harness's host-side validation runs hooks configured by the checked-out target repository. If an
agent run produces changed files, a target-controlled pre-commit hook can execute with runner
credentials and write their contents into the directory that this workflow uploads unconditionally.
Agent Prompt
## Issue description
Target-repository pre-commit hooks can run during host-side agent validation with access to the workflow's credential-bearing environment and output directory.

## Fix Focus Areas
- .github/workflows/jira-context-verification.yml[123-163]
- scripts/validate-code-output.sh[1395-1450]

## Recommended Fix
For this verification run, prevent target-controlled hooks from executing on the credential-bearing runner. Run validation in an isolated environment without runner credentials, or disable that gate for this read-only context check; keep uploaded artifacts outside the reach of untrusted processes and scrub them before publication.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗

Comment on lines +54 to +56
repository: fullsend-ai/fullsend
ref: main
path: .fullsend-source

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remediation recommended

7. Upstream changes can expose jira tokens 🐞 Bug ⛨ Security

ref: main builds the agent CLI from a mutable external checkout and the workflow later runs that
binary with FULLSEND_JIRA_TOKEN in its environment. A change to upstream main between dispatches
can therefore change the credential-bearing executable without a change to this repository or review
of the new code.
Agent Prompt
## Issue description
The workflow builds and runs a mutable upstream revision with access to the Jira token, allowing its behavior to change between dispatches without a workflow change.

## Fix Focus Areas
- .github/workflows/jira-context-verification.yml[51-69]

## Recommended Fix
Replace `ref: main` with a reviewed full commit SHA. Update that pin through an explicit review process when a newer CLI is required.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗

Comment on lines +150 to +154
fullsend run code \
--fullsend-dir "$GITHUB_WORKSPACE" \
--target-repo "$GITHUB_WORKSPACE/target-repo" \
--output-dir "$output_dir" \
--no-post-script

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

3. Jira tickets never reach the agent 🔗 Cross-repo conflict ≡ Correctness

The workflow sets FULLSEND_TRACKER=jira but invokes fullsend run code without a normalized Jira
event, which is what Fullsend uses to select the Jira harness overlay. For all four tickets,
Fullsend instead selects the GitHub path, so the Jira pre-script and provider-backed Jira context
fetches are not used.
Agent Prompt
## Issue description
Fullsend selects Jira behavior from a normalized event, not `FULLSEND_TRACKER`.
## Fix Focus Areas
- .github/workflows/jira-context-verification.yml[129-154]
## Recommended Fix
Create a valid normalized Jira event for each matrix ticket and pass it to `fullsend run code` with `--event-file`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗

output_dir="${RUNNER_TEMP}/fullsend-output-${{ matrix.issue-type }}"
mkdir -p "$output_dir"
fullsend run code \
--fullsend-dir "$GITHUB_WORKSPACE" \

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

4. Jira events lack tracker configuration 🔗 Cross-repo conflict ≡ Correctness

The workflow points --fullsend-dir at the repository root, whose config.yaml has no
tracker.jira.base_url. Once a Jira event is supplied, Fullsend rejects the run during Jira
environment setup before it can fetch any ticket context.
Agent Prompt
## Issue description
A Jira-sourced run requires `tracker.jira.base_url` in the config loaded from `--fullsend-dir`; the root workspace config lacks it.
## Fix Focus Areas
- .github/workflows/jira-context-verification.yml[150-154]
- config.yaml[1-36]
## Recommended Fix
Supply valid Jira tracker connection settings in the root workspace config used by this workflow, or create a workflow-specific Fullsend workspace with those settings.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗

Comment on lines +140 to +145
GH_TOKEN: ${{ github.token }}
REPO_FULL_NAME: ${{ matrix.target-repo }}
TARGET_REPO_DIR: ${{ github.workspace }}/target-repo
ANTHROPIC_VERTEX_PROJECT_ID: ${{ vars.EVALS_VERTEX_PROJECT_ID }}
GOOGLE_CLOUD_PROJECT: ${{ secrets.E2E_GCP_PROJECT_ID }}
CLOUD_ML_REGION: ${{ vars.EVALS_GCP_REGION }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

5. Missing variables stop agent startup 🔗 Cross-repo conflict ≡ Correctness

The run step omits GIT_BOT_EMAIL and PUSH_TOKEN, although the code harness references both and
Fullsend rejects unresolved harness environment variables. Even after supplying a Jira event and
tracker configuration, this workflow reaches environment validation without those values and stops
before the agent runs.
Agent Prompt
## Issue description
The selected code harness references variables absent from the workflow environment, and Fullsend fails validation when they are unset.
## Fix Focus Areas
- .github/workflows/jira-context-verification.yml[129-154]
- harness/code.yaml[86-107]
## Recommended Fix
Supply the required bot-email and push-token environment entries for this no-publication run, using appropriate non-publishing values where supported. Validate the composed harness against the complete workflow environment.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Nov 23, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Single new CI workflow file touching a protected path with no security-sensitive or dependency changes by an established contributor.

Previous run

Risk Assessment: moderate (2/5)

Details

Single new CI workflow file touching a protected path with no security-sensitive or dependency changes by an established contributor.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Review

Findings

Medium

  • [api-contract] .github/workflows/jira-context-verification.yml:137 — FULLSEND_TRACKER=jira does not activate the Jira overlay: no --event-file/normalized Jira event is supplied, and harness/code.yaml selects Jira on event.source.system == "jira", so the GitHub pre-script is retained.
    Remediation: Generate a valid normalized Jira event per matrix ticket and pass it via --event-file.
  • [api-contract] .github/workflows/jira-context-verification.yml:154 — --fullsend-dir points at the repo root, whose config.yaml has no tracker.jira.base_url; JIRA_BASE_URL in the env does not supply it and the run fails before the sandbox starts.
    Remediation: Prepare a run configuration with tracker.jira.base_url and point --fullsend-dir at it.
  • [api-contract] .github/workflows/jira-context-verification.yml:126 — The WIF credentials from google-github-actions/auth are not converted for sandbox use; functional-tests.yml runs scripts/prepare-sandbox-credentials.sh after the same auth step, this workflow does not, so inference cannot start.
    Remediation: Run scripts/prepare-sandbox-credentials.sh after authentication (as functional-tests.yml does) or use fullsend's native WIF inputs.
  • [protected-path] .github/workflows/jira-context-verification.yml — Adds a file under protected path .github/. The description explains the purpose and cites Jira item AISDLC-624, but no GitHub issue is linked. Human approval is always required for protected-path changes.

Low

  • [permission-expansion] .github/workflows/jira-context-verification.yml:8 — The new push trigger runs the credential-bearing job (Jira token, id-token: write) automatically with no protected environment or approval gate. Hygiene rather than a new privilege boundary, since pushing requires write access.
    Remediation: Remove the push trigger, or gate the job behind a protected environment.
  • [scope-creep] .github/workflows/jira-context-verification.yml:8 — The push trigger on test/aisdlc-624-jira-context does not remediate a prior finding and contradicts the manual-dispatch intent in the PR body.
    Remediation: Remove the push: trigger (lines 8-10).
  • [missing-authorization] .github/workflows/jira-context-verification.yml:1 — No linked GitHub issue authorizes this new 166-line workflow (AISDLC-624 is a Jira key only).
    Remediation: Link an authorized tracking issue.
  • [design-direction] .github/workflows/jira-context-verification.yml:23 — The matrix hardcodes Jira keys and third-party repositories instead of using dispatch inputs or an external fixture.
    Remediation: Parameterize via workflow_dispatch inputs or externalize the matrix.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImFwaS1jb250cmFjdCIsImZpbGUiOiIuZ2l0aHViL3dvcmtmbG93cy9qaXJhLWNvbnRleHQtdmVyaWZpY2F0aW9uLnltbCIsImlkIjoiZl8yOGU1M2M4NGEzMDJiYzlmIiwibGluZSI6MTM0LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImFwaS1jb250cmFjdCIsImZpbGUiOiIuZ2l0aHViL3dvcmtmbG93cy9qaXJhLWNvbnRleHQtdmVyaWZpY2F0aW9uLnltbCIsImlkIjoiZl8xY2ZhYjFmYzliYmM4ODhkIiwibGluZSI6MTUxLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6Im1pc3NpbmctYXV0aG9yaXphdGlvbiIsImZpbGUiOiIuZ2l0aHViL3dvcmtmbG93cy9qaXJhLWNvbnRleHQtdmVyaWZpY2F0aW9uLnltbCIsImlkIjoiZl80ZjE2ZDFkZTQ1N2U3ZTdiIiwibGluZSI6MSwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoiaW50ZW50LWNvaGVyZW5jZSJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImRlc2lnbi1kaXJlY3Rpb24iLCJmaWxlIjoiLmdpdGh1Yi93b3JrZmxvd3MvamlyYS1jb250ZXh0LXZlcmlmaWNhdGlvbi55bWwiLCJpZCI6ImZfOTYxNzFhNWI5NjczMGY2MyIsImxpbmUiOjIzLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJpbnRlbnQtY29oZXJlbmNlIn1dfQ== -->

Review

Findings

Medium

  • [api-contract] .github/workflows/jira-context-verification.yml:134 — FULLSEND_TRACKER=jira does not select Jira routing. harness/code.yaml gates the Jira overlay (Jira provider, scripts/pre-code-jira.sh, ISSUE_URL from FULLSEND_WORK_ITEM_URL) on has(event.source) && event.source.system == "jira", i.e. a normalized event. This manual workflow supplies no --event-file, so only the GitHub overlay matches and the default scripts/pre-code.sh runs, which requires a positive-integer ISSUE_NUMBER and a GitHub issue URL. The run fails before any Jira context verification happens.
    Remediation: Generate a valid normalized Jira event for each matrix ticket and pass it through --event-file, including source.system=jira and the ticket's entity key and browse URL.
  • [api-contract] .github/workflows/jira-context-verification.yml:151 — --fullsend-dir "$GITHUB_WORKSPACE" selects the repository-root config.yaml, which has no tracker.jira configuration; the CLI reads tracker.jira from that directory's config. Exporting JIRA_BASE_URL alone likely does not configure the CLI's Jira connection, so Jira-sourced runs may stop even after a normalized Jira event is supplied. (The CLI's exact behavior in fullsend main could not be confirmed from this repo.)
    Remediation: Prepare a workflow-local fullsend configuration that preserves the existing agent registration and sets tracker.jira.base_url from the intended Jira site, then use it for the run.
  • [protected-path] .github/workflows/jira-context-verification.yml — The PR adds a file under the protected path .github/. Human approval is always required for protected-path changes, regardless of context. The PR description explains the purpose and cites Jira ticket AISDLC-624, but no GitHub issue is linked.

Low

  • [missing-authorization] .github/workflows/jira-context-verification.yml:1 — The PR adds a new 163-line workflow with no linked GitHub issue in fullsend-ai/agents; scope is tracked only by the external Jira ticket AISDLC-624 named in the PR body.
    Remediation: Link an authorized tracking issue in fullsend-ai/agents that defines the requirements and scope for this verification workflow.
  • [design-direction] .github/workflows/jira-context-verification.yml:23 — The workflow hardcodes external Jira ticket keys (RHOAIENG-) and third-party target repositories (opendatahub-io/) in a permanent CI matrix with no workflow_dispatch inputs, tying a maintained workflow to external ticket and repo state.
    Remediation: Parameterize the workflow with workflow_dispatch inputs (issue-key, issue-type, target-repo), or move reproducible verification cases into the eval/ harness.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

Signed-off-by: apetruni <apetruni@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 2:28 PM UTC · Completed 2:37 PM UTC

Commit: 3e7dca7 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.52

@waynesun09 waynesun09 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Two findings from a review pass at 3e7dca7, posted inline. Neither overlaps the existing qodo or fullsend-ai-review threads.


- name: Run code agent without post-script
env:
FULLSEND_WORK_ITEM_URL: ${{ vars.JIRA_BASE_URL }}/browse/${{ matrix.issue-key }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[HIGH] Required Jira variable and secrets do not exist, so every leg gets an empty Jira URL and token

The run step reads vars.JIRA_BASE_URL, secrets.FULLSEND_JIRA_TOKEN and secrets.FULLSEND_JIRA_EMAIL. None of the three exists in fullsend-ai/agents: not among the repo Actions variables or secrets, and not among the org secrets or variables visible to the repo.

The push-triggered run on this head (run 45194260330) shows it: all four legs ran with FULLSEND_WORK_ITEM_URL: /browse/RHOAIENG-..., an empty JIRA_BASE_URL and an empty FULLSEND_JIRA_TOKEN and FULLSEND_JIRA_EMAIL. Those legs failed first on the already-reported Vertex credential problem. Fixing that, the event-file problem and the tracker-config problem would still leave a relative work-item URL and no Jira credential, so no leg can fetch Jira context. The PR's test plan never says these must be created.

Suggestion: Add a preflight step that fails with a clear ::error:: when JIRA_BASE_URL, FULLSEND_JIRA_TOKEN or FULLSEND_JIRA_EMAIL is empty, as functional-tests.yml does with its secrets check. Say in the PR body which variable and secrets a maintainer must create, and with what Jira scope (browse-only is enough), before dispatching.

Verified: reproduced: gh api repos/fullsend-ai/agents/actions/{variables,secrets,organization-secrets,organization-variables}; gh run view 45194260330 --log-failed shows empty values at 3e7dca7; raised by: Claude

--output-dir "$output_dir" \
--no-post-script

- name: Upload run artifacts

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[HIGH] Unscrubbed run output, including non-public Jira ticket content, is uploaded as an artifact of a public repo

The upload step runs with if: always() and archives the whole ${{ runner.temp }}/fullsend-output-<type>/ directory for 30 days. Once the run works, that directory holds transcripts and tool output: Jira issue bodies, comments, parent issues and downloaded attachments, which are exactly what this workflow sets out to fetch.

  • All four RHOAIENG tickets return 404 to an anonymous request on redhat.atlassian.net (checked for RHOAIENG-103574 and RHOAIENG-96376), so they are not public.
  • fullsend-ai/agents is a public repo, and any signed-in GitHub user can download its workflow artifacts. The push run already published four artifacts (jira-context-*).
  • fullsend's action builds its uploaded copy through fullsend prepare-artifacts (ADR 0161 artifact levels), and functional-tests.yml uploads only after eval/scripts/scrub-eval-results.sh succeeds. This workflow does neither.

The existing qodo thread covers target-repo hooks copying runner credentials into this directory. This finding is about Jira content being published, which that thread does not cover.

Suggestion: Build the upload with fullsend prepare-artifacts and upload only its output directory, or use the scrub-then-upload pattern from functional-tests.yml with if-no-files-found: error. Better still, use fixture tickets whose content may be public, or run the inspection in a private repo or on a private runner. At minimum, get the ticket owners to confirm that publishing the content is acceptable.

Verified: read code at head; reproduced: gh api repos/fullsend-ai/agents (visibility public), anonymous curl to /rest/api/3/issue/ returns 404, run 45194260330 artifacts listed at 3e7dca7; raised by: Claude, DeepSeek

@fullsend-ai-review fullsend-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

See the review comment for full details.

FULLSEND_WORK_ITEM_URL: ${{ vars.JIRA_BASE_URL }}/browse/${{ matrix.issue-key }}
JIRA_BASE_URL: ${{ vars.JIRA_BASE_URL }}
FULLSEND_FORGE: github
FULLSEND_TRACKER: jira

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] api-contract

Still present: FULLSEND_TRACKER=jira does not activate the Jira overlay. The fullsend CLI derives the overlay event and tracker provenance from --event-file or a dispatch payload containing _normalized_event, neither of which this workflow supplies. harness/code.yaml selects Jira using event.source.system == "jira", so this invocation keeps the GitHub pre-script instead of fetching the selected Jira ticket.

Suggested fix: Generate a valid normalized Jira event for each matrix ticket and pass it through --event-file, including its entity key and browse URL.

output_dir="${RUNNER_TEMP}/fullsend-output-${{ matrix.issue-type }}"
mkdir -p "$output_dir"
fullsend run code \
--fullsend-dir "$GITHUB_WORKSPACE" \

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] api-contract

Still present: --fullsend-dir points to the repository root, whose config.yaml does not configure tracker.jira.base_url. Setting JIRA_BASE_URL in the environment does not supply that configuration; once a normalized Jira event is supplied, fullsend fails with 'tracker.jira.base_url is not configured' before starting the sandbox.

Suggested fix: Prepare a run configuration that preserves the code harness registration and configures tracker.jira.base_url for the intended Jira site, and point --fullsend-dir at that configuration.

- name: Install OpenShell CLI
run: .fullsend-source/.github/scripts/install-openshell.sh

- name: Authenticate to GCP

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] api-contract

The WIF credential file produced by google-github-actions/auth is passed to fullsend without conversion for sandbox use, and the workflow does not supply FULLSEND_GCP_PROJECT_ID/FULLSEND_GCP_WIF_PROVIDER. functional-tests.yml runs scripts/prepare-sandbox-credentials.sh right after the same auth step because the sandbox cannot reach the OIDC endpoint in credential_source.url; this workflow skips that step, so inference cannot start.

Suggested fix: Run scripts/prepare-sandbox-credentials.sh after authentication and before fullsend, as functional-tests.yml does, or configure fullsend's native Actions WIF preparation inputs.


on:
workflow_dispatch:
push:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] permission-expansion

The new push trigger runs the credential-bearing job (FULLSEND_JIRA_TOKEN, FULLSEND_JIRA_EMAIL, id-token: write) automatically on feature-branch commits with no protected environment or approval gate. This is hygiene rather than a new privilege boundary, since pushing requires write access and a writer can already dispatch the same job.

Suggested fix: Remove the feature-branch push trigger and keep manual verification; optionally put the credential-bearing job behind a protected environment with required approval.

@@ -0,0 +1,166 @@
name: Jira Context Verification

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] missing-authorization

Still present: this 166-line new workflow has no linked GitHub issue authorizing the work (AISDLC-624 is a Jira key only).

Suggested fix: Link an authorized tracking GitHub issue.

timeout-minutes: 45
permissions:
contents: read
id-token: write

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] design-direction

Still present: the job matrix hardcodes specific Jira issue keys (RHOAIENG-) and third-party repositories (opendatahub-io/) rather than workflow_dispatch inputs or a configurable fixture.

Suggested fix: Parameterize via workflow_dispatch inputs or externalize the matrix.


on:
workflow_dispatch:
push:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] scope-creep

The incremental commit adds a push trigger on branch test/aisdlc-624-jira-context. It does not remediate a prior finding and contradicts the PR body's description of a manual workflow dispatched after merge, leaving a temporary test-branch trigger in a workflow destined for main.

Suggested fix: Remove the push: trigger (lines 8-10), keeping workflow_dispatch as the sole trigger.

@Aliciapet11
Aliciapet11 marked this pull request as draft November 23, 2026 16:08

This branch has not been deployed

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

Labels

risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants