Repository navigation
ci(jira): add context verification workflow #2158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,166 @@ | ||
| name: Jira Context Verification | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| branches: | ||
| - test/aisdlc-624-jira-context | ||
|
|
||
| concurrency: | ||
| group: jira-context-verification-${{ github.ref }} | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| verify: | ||
| name: Verify ${{ matrix.issue-type }} | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 45 | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
|
Comment on lines
+21
to
+23
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 6. Cloud login rights go undocumented 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
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [low] design-direction The workflow hardcodes external Jira ticket keys (RHOAIENG-) and third-party target repositories (opendatahub-io/) in a permanent CI matrix with no Suggested fix: Parameterize the workflow with |
||
| include: | ||
| - issue-type: story | ||
| issue-key: RHOAIENG-103574 | ||
| target-repo: opendatahub-io/data-connect-hub | ||
| - issue-type: task | ||
| issue-key: RHOAIENG-103762 | ||
| target-repo: opendatahub-io/eval-hub-contrib | ||
| - issue-type: bug | ||
| issue-key: RHOAIENG-103039 | ||
| target-repo: opendatahub-io/feast | ||
| - issue-type: epic | ||
| issue-key: RHOAIENG-96376 | ||
| target-repo: opendatahub-io/rhoai-mcp | ||
| steps: | ||
| - name: Check out agents harness | ||
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | ||
| with: | ||
| ref: ${{ github.sha }} | ||
| persist-credentials: false | ||
|
|
||
| - 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 | ||
|
Comment on lines
+57
to
+59
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 7. Upstream changes can expose jira tokens 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
|
||
| persist-credentials: false | ||
|
|
||
| - name: Set up Go | ||
| uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 | ||
| with: | ||
| go-version-file: .fullsend-source/go.mod | ||
| cache-dependency-path: .fullsend-source/go.sum | ||
|
|
||
| - name: Build fullsend | ||
| run: | | ||
| make -C .fullsend-source go-build | ||
| echo "$PWD/.fullsend-source/bin" >> "$GITHUB_PATH" | ||
| .fullsend-source/bin/fullsend --version | ||
|
|
||
| - name: Install Podman | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y podman | ||
|
|
||
| - name: Configure rootless Podman | ||
| run: | | ||
| whoami_user="$(whoami)" | ||
| grep -q "^${whoami_user}:" /etc/subuid || sudo usermod --add-subuids 100000-165535 --add-subgids 100000-165535 "${whoami_user}" | ||
| podman system migrate | ||
|
|
||
| - name: Start Podman API service | ||
| run: | | ||
| systemctl --user start podman.socket | ||
| SOCKET_PATH="${XDG_RUNTIME_DIR:-/run/user/$(id -u)}/podman/podman.sock" | ||
| for _i in $(seq 1 30); do | ||
| podman --url "unix://${SOCKET_PATH}" info >/dev/null 2>&1 && break | ||
| sleep 1 | ||
| done | ||
| if ! podman --url "unix://${SOCKET_PATH}" info >/dev/null 2>&1; then | ||
| echo "::error::Podman socket not ready at ${SOCKET_PATH}" | ||
| systemctl --user status podman.socket podman.service --no-pager || true | ||
| journalctl --user -u podman.socket -u podman.service --no-pager -n 40 || true | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Configure OpenShell gateway | ||
| run: | | ||
| eval "$(grep -E '^OPENSHELL_(VERSION|SHA)=' .fullsend-source/.github/scripts/openshell-version.sh)" | ||
| if [ -z "$OPENSHELL_VERSION" ] || [ -z "$OPENSHELL_SHA" ]; then | ||
| echo "::error::Failed to resolve OpenShell version from fullsend checkout" | ||
| exit 1 | ||
| fi | ||
| echo "OPENSHELL_VERSION=${OPENSHELL_VERSION}" >> "$GITHUB_ENV" | ||
| echo "OPENSHELL_SHA=${OPENSHELL_SHA}" >> "$GITHUB_ENV" | ||
| mkdir -p "$HOME/.config/openshell" | ||
| echo "OPENSHELL_BIND_ADDRESS=0.0.0.0" > "$HOME/.config/openshell/gateway.env" | ||
| cat > "$HOME/.config/openshell/gateway.toml" << EOF | ||
| [openshell] | ||
| version = 2 | ||
|
|
||
| [openshell.gateway] | ||
| compute_driver = "podman" | ||
|
|
||
| [openshell.drivers.podman] | ||
| supervisor_image = "ghcr.io/nvidia/openshell/supervisor:${OPENSHELL_VERSION}" | ||
| health_check_interval_secs = 10 | ||
| EOF | ||
|
|
||
| - name: Install OpenShell CLI | ||
| run: .fullsend-source/.github/scripts/install-openshell.sh | ||
|
|
||
| - name: Authenticate to GCP | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| 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 }} | ||
|
Comment on lines
+126
to
+130
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1. Agent runs fail to authenticate to vertex 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
|
||
|
|
||
| - name: Run code agent without post-script | ||
| env: | ||
| FULLSEND_WORK_ITEM_URL: ${{ vars.JIRA_BASE_URL }}/browse/${{ matrix.issue-key }} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 The push-triggered run on this head (run 45194260330) shows it: all four legs ran with Suggestion: Add a preflight step that fails with a clear 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 |
||
| JIRA_BASE_URL: ${{ vars.JIRA_BASE_URL }} | ||
| FULLSEND_FORGE: github | ||
| FULLSEND_TRACKER: jira | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [medium] api-contract
Suggested fix: Generate a valid normalized Jira event for each matrix ticket and pass it through There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| 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 | ||
|
Comment on lines
+143
to
+145
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2. Target hooks can copy runner credentials 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
|
||
| ANTHROPIC_VERTEX_PROJECT_ID: ${{ vars.EVALS_VERTEX_PROJECT_ID }} | ||
| GOOGLE_CLOUD_PROJECT: ${{ secrets.E2E_GCP_PROJECT_ID }} | ||
| CLOUD_ML_REGION: ${{ vars.EVALS_GCP_REGION }} | ||
|
Comment on lines
+143
to
+148
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 5. Missing variables stop agent startup 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
|
||
| run: | | ||
| set -euo pipefail | ||
| output_dir="${RUNNER_TEMP}/fullsend-output-${{ matrix.issue-type }}" | ||
| mkdir -p "$output_dir" | ||
| fullsend run code \ | ||
| --fullsend-dir "$GITHUB_WORKSPACE" \ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 4. Jira events lack tracker configuration 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
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [medium] api-contract
Suggested fix: Prepare a workflow-local fullsend configuration that preserves the existing agent registration and sets There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| --target-repo "$GITHUB_WORKSPACE/target-repo" \ | ||
| --output-dir "$output_dir" \ | ||
| --no-post-script | ||
|
Comment on lines
+153
to
+157
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 3. Jira tickets never reach the agent 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
|
||
|
|
||
| - name: Upload run artifacts | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
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 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 |
||
| if: always() | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| with: | ||
| name: jira-context-${{ matrix.issue-type }} | ||
| path: | | ||
| ${{ runner.temp }}/fullsend-output-${{ matrix.issue-type }}/ | ||
| retention-days: 30 | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[low] missing-authorization
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.
Suggested fix: Link an authorized tracking issue in fullsend-ai/agents that defines the requirements and scope for this verification workflow.