Skip to content

ci(dispatch): enable mint OIDC for dispatch jobs - #8816

Merged
ifireball merged 4 commits into
mainfrom
codex/8814-mint-oidc
Oct 26, 2026
Merged

ifireball merged 4 commits into
mainfrom
codex/8814-mint-oidc

Conversation

@ifireball

Copy link
Copy Markdown
Member

Summary

  • Grant OIDC access to route and harness-dispatch, and pass FULLSEND_MINT_URL to both gha-event dispatch steps.
  • Add workflow validation for job permissions, mint URL wiring, and token exposure.
  • Document the caller-side id-token: write requirement for custom callers.

Closes #8814

Validation

  • mise exec go@1.27.1 -- make lint (passed)
  • Go tests were not run.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Enable mint-backed OIDC for reusable dispatch jobs

⚙️ Configuration changes 🧪 Tests 📝 Documentation 🕐 10-20 Minutes

Grey Divider

AI Description

• Grant routing and harness dispatch jobs OIDC access and the configured mint URL.
• Validate both dispatch paths and guard against exposing the OIDC request token.
• Document caller-side permissions and job-local token handling.
Diagram

graph TD
  Caller["Caller workflow"] --> Workflow["Reusable dispatch"] --> Route["Route job"] --> CLI["gha-event dispatch"] --> Mint["Mint service"]
  Workflow --> Harness["Harness dispatch"] --> CLI --> Matrix["Harness matrix"]
Loading
High-Level Assessment

Keep OIDC permission on the two jobs that need it and pass the existing mint URL input directly to their dispatch steps. Broader workflow-level permission would expand access without addressing the caller's separate permission requirement.

Files changed (3) +72 / -0

Tests (1) +59 / -0
workflow_call_alignment_test.goValidate dispatch OIDC and mint URL wiring +59/-0

Validate dispatch OIDC and mint URL wiring

• Adds a YAML-based test for both jobs' OIDC permissions, gha-event steps, and mint URL environment variables. It also checks that the OIDC request-token variable is absent from job outputs and workflow content.

internal/scaffold/workflow_call_alignment_test.go

Documentation (1) +6 / -0
custom-poller-example.mdExplain caller OIDC requirements +6/-0

Explain caller OIDC requirements

• Clarifies that custom callers must grant id-token: write because the reusable workflow cannot increase caller permissions. Warns against placing the token in outputs, matrix data, or logs.

docs/guides/user/custom-poller-example.md

Other (1) +7 / -0
reusable-dispatch.ymlEnable mint access in both dispatch jobs +7/-0

Enable mint access in both dispatch jobs

• Grants id-token: write to route and harness-dispatch and passes inputs.mint_url as FULLSEND_MINT_URL to each gha-event dispatch step. A security comment clarifies caller permissions and token-handling boundaries.

.github/workflows/reusable-dispatch.yml

Grant id-token access to route and harness-dispatch, and pass the configured mint URL to both gha-event dispatch steps.

Add workflow validation for the permissions and mint URL contract, and document the caller-side permission requirement.

Signed-off-by: Barak Korren <bkorren@redhat.com>
Assisted-by: Codex (gpt-6)
@qodo-code-review

qodo-code-review Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. OIDC terms confuse guide readers ✓ Resolved
Description
The added paragraph uses OIDC token, dispatch-time identity lookup, and agent token minting
without defining them or linking to their explanations. Readers encountering the caller-permission
requirement must infer the identity and token flow from terminology that is not covered by the
guide's existing glossary links.
Code

docs/guides/user/custom-poller-example.md[R149-153]

+`id-token: write` is needed for dispatch-time identity lookup and agent token
+minting. Grant it in the caller workflow or on the job that calls
+`reusable-dispatch.yml`; the reusable workflow cannot add permissions that the
+caller did not grant. Keep the OIDC token inside the job. Do not copy it into
+workflow outputs, the dispatch matrix, or logs.
Relevance

●●● Strong

Recent guides accepted defining or linking unexplained domain terminology, including OIDC-related
terms.

PR-#6455
PR-#8496

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The guide adds unexplained domain terminology in the caller-permission paragraph, while the glossary
entry covers Direct OIDC Trust rather than directly defining the terms used here. The related
authentication guide explains the OIDC token and token-mint exchange, but the modified guide does
not link to it.

docs/guides/user/custom-poller-example.md[149-153]
docs/glossary.md[162-165]
docs/guides/user/how-fullsend-authenticates.md[3-8]
Skill: writing-user-docs

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 added caller-permission guidance introduces `OIDC token`, dispatch-time identity lookup, and agent token minting without defining the jargon or linking readers to an explanation.

## Fix Focus Areas
- docs/guides/user/custom-poller-example.md[149-153]
- docs/glossary.md[162-165]

## Recommended Fix
Add a glossary link or a concise first-use definition for OIDC tokens and mint-backed identity lookup in the new paragraph. Link to the existing authentication documentation if it provides the relevant explanation.

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


Grey Divider

Context sources
✅ Compliance rules (platform): 95 rules
✅ Skills: 5 invoked
  writing-user-docs
  writing-adrs
  check-patch-coverage
  cutting-releases
  adr-corner
✅ Cross-repo context — repo relationships
  Explored: repo: fullsend-ai/experiments (sha: df59d052) — View relationship
  Explored: repo: fullsend-ai/.fullsend (sha: 8d043264) — View relationship
  Explored: repo: fullsend-ai/metrics (sha: 2f55d5e3) — View relationship
  Explored: repo: fullsend-ai/scribe (sha: 0f3eb528) — View relationship
  Explored: repo: fullsend-ai/agents (sha: 3e9f702c) — View relationship
  Explored: repo: fullsend-ai/mlflow-assessments (sha: 2fdb0120) — View relationship
  Explored: repo: fullsend-ai/test-creator (sha: f6240d71) — View relationship
  Explored: repo: fullsend-ai/pi-inference-gateway (sha: 3bcc89cd) — View relationship
  Explored: repo: fullsend-ai/pi-anthropic-vertex (sha: 520b9904) — View relationship
  Explored: repo: fullsend-ai/pi-xai-vertex (sha: 5833008b) — View relationship
Review mode: Auto: ⚖️ Balanced: OIDC permissions and CI workflow behavior are security-sensitive.

Grey Divider

Tip of the day
💡 Did you know, you can type 'qodo, fix this' on a finding and the fix lands right on your PR

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@fullsend-ai-review

fullsend-ai-review Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ⚠️ Cancelled · Started 8:23 AM UTC · Completed 8:24 AM UTC

Commit: d5d434c · View workflow run →

Effort: high

This review was superseded by a newer commit. Check the current pull request HEAD's review status before merging.

@fullsend-ai-review

fullsend-ai-review Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 8:26 AM UTC · Completed 8:34 AM UTC

Commit: cd804cf · View workflow run →

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

@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Site preview

Preview: https://6caa8782-site.fullsend-ai.workers.dev

Commit: a8ff40acb0523d9263f9454728b7ffc9a9e4ea98

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

fullsend-ai-review Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Small additive change modifying a CI workflow in a high-churn file, balanced by strict alignment with the linked issue's acceptance criteria and accompanying test coverage.

Previous run

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Small additive change modifying a CI workflow in a high-churn file, balanced by strict alignment with the linked issue acceptance criteria and accompanying test coverage.

Previous run (2)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Small additive change modifying a CI workflow in a high-churn file, balanced by strict alignment with the linked issue's acceptance criteria and accompanying test coverage.

@fullsend-ai-review

fullsend-ai-review Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Review

Findings

Medium

  • [protected-path] .github/workflows/reusable-dispatch.yml — This PR modifies a protected path. It links Enable mint OIDC access in dispatch workflow jobs #8814 and the description explains the rationale (granting id-token: write to the route and harness-dispatch jobs and passing FULLSEND_MINT_URL to both dispatch steps), but human approval is always required for protected-path changes, regardless of context.
Previous run

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

Review

Findings

Medium

  • [protected-path] .github/workflows/reusable-dispatch.yml — This PR modifies a protected governance/infrastructure path (.github/). It links issue Enable mint OIDC access in dispatch workflow jobs #8814 and the description explains the rationale (granting id-token: write to the route and harness-dispatch jobs and passing FULLSEND_MINT_URL to the two gha-event dispatch steps). Human approval is always required for protected-path changes, regardless of context.
    Remediation: A human maintainer with authority over .github/ must review and approve this change.

Earlier findings

  • .github/workflows/reusable-dispatch.yml:124, pattern-inconsistency, resolved — id-token: write is now in alphabetical order within the permissions blocks of both the route and harness-dispatch jobs (incremental diff since the prior review).
Previous run (2)

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

Review

Findings

Medium

  • [protected-path] .github/workflows/reusable-dispatch.yml — This PR modifies a protected governance/infrastructure path (.github/). The PR links Enable mint OIDC access in dispatch workflow jobs #8814 and explains the rationale (grant OIDC to the route and harness-dispatch jobs and pass the mint URL). Human approval is always required for protected-path changes, regardless of context.

Low

  • [pattern-inconsistency] .github/workflows/reusable-dispatch.yml:124 — Every other job in this workflow lists its permissions: keys alphabetically, with id-token right after contents (e.g. lines 1020-1023, 1129-1134, 2025-2029). The two new entries break the order: in the route job id-token: write is last (line 124, after pull-requests: read), and the same in the harness-dispatch job (line 1858).
    Remediation: In route, move id-token: write between contents: read and issues: read. In harness-dispatch, move it between contents: read and pull-requests: read.

Labels: The PR changes the CI dispatch reusable workflow.


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.

@fullsend-ai-review fullsend-ai-review Bot added component/ci CI pipelines and checks component/dispatch Workflow dispatch and triggers labels Oct 26, 2026
Signed-off-by: Barak Korren <bkorren@redhat.com>
Assisted-by: Codex (gpt-6)
@fullsend-ai-review

fullsend-ai-review Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ⚠️ Cancelled · Started 8:58 AM UTC · Completed 9:05 AM UTC

Commit: 9f041f8 · View workflow run →

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

This review was superseded by a newer commit. Check the current pull request HEAD's review status before merging.

Integrate current main before final CI verification of PR #8816.

Signed-off-by: Barak Korren <bkorren@redhat.com>
Assisted-by: Codex (gpt-6)
@fullsend-ai-review

fullsend-ai-review Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:07 AM UTC · Completed 9:16 AM UTC

Commit: 928e471 · View workflow run →

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

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added the requires-manual-review Review requires human judgment label Oct 26, 2026
@ifireball ifireball self-assigned this Oct 26, 2026
Includes merged scaffold parity fix from #8819.

Signed-off-by: Barak Korren <bkorren@redhat.com>
Assisted-by: Codex (gpt-6)
@fullsend-ai-review

fullsend-ai-review Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

🤖 Review · ❌ Terminated · Started 11:32 AM UTC · Ended 11:42 AM UTC

Commit: a8ff40a · View workflow run →

@codecov

codecov Bot commented Oct 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@fullsend-ai-review

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 11:32 AM UTC · Completed 11:42 AM UTC

Commit: a8ff40a · View workflow run →

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

@ifireball
ifireball enabled auto-merge October 26, 2026 11:42
@ifireball
ifireball added this pull request to the merge queue Oct 26, 2026
Merged via the queue into main with commit c9e1d8e Oct 26, 2026
22 checks passed
@ifireball
ifireball deleted the codex/8814-mint-oidc branch October 26, 2026 12:25

This branch was successfully deployed

1 active and 1 inactive deployments
site-preview — a8ff40ac Deployed Oct 26, 2026 by github-actions[bot]
dev — a8ff40ac Deployed Oct 26, 2026 by ifireball via behaviour #17953
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/ci CI pipelines and checks component/dispatch Workflow dispatch and triggers requires-manual-review Review requires human judgment risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable mint OIDC access in dispatch workflow jobs

2 participants