Skip to content

fix: AFM caller pre-production cleanup (debug removal + timeout) - #2095

Merged
eonist merged 9 commits into
mainfrom
fix/afm-caller-pre-production
Jul 14, 2026
Merged

eonist merged 9 commits into
mainfrom
fix/afm-caller-pre-production

Conversation

@eonist

@eonist eonist commented Jul 14, 2026 •

Copy link
Copy Markdown
Member

Pre-production cleanup of the AFM release notes caller workflow.

Changes

Remove debug: 'true' hardcode

Was left in for smoke testing. Verbose AFM sidecar logs on every real release are noise. debug defaults to 'false' in the action.

Add timeout-minutes: 10

Guards against the job queuing forever if the AFM self-hosted runner is offline during a real release.

Notes

  • @v1 pin was already correct — no change needed
  • Fence-strip fix (which caused the broken release_title on first smoke test) is handled in afm-release-notes-action #5

Closes #2092
Closes #2090 (fence-strip fix landed in afm-release-notes-action #5)


Summary by cubic

Wired AFM release notes into the publish workflow via runbot-hq/afm-release-notes-action@main with safe fallbacks. Cleaned up the AFM caller (debug off, 10‑minute timeout) and hardened release creation to avoid injection and temp file leaks.

  • New Features

    • Integrated runbot-hq/afm-release-notes-action@main in publish.yml after tag push; runs only on real releases when no manual release_notes are provided; continue-on-error: true falls back to --generate-notes.
    • Title/notes priority: AFM title > tag; manual notes > AFM body > auto‑generated. Documented tag expression, step ordering, ${{ }} safety, composite‑action runner compatibility, and why @main is safe for this first‑party composite action.
  • Bug Fixes

    • AFM caller: removed hardcoded debug: 'true'; added timeout-minutes: 10 to avoid stuck runs.
    • Create Release: pass AFM outputs via env and write notes to a temp file with --notes-file; added trap EXIT for cleanup.

Written for commit a6a9c73. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • Chores
    • Added a 10-minute limit to the release-notes generation process.
    • Removed unnecessary debug output from release-notes generation.

- debug: true was hardcoded for smoke testing; verbose sidecar
  output on every real release is noise
- timeout-minutes: 10 guards against the job queuing forever if
  the AFM runner is offline during a real release

Closes #2092
Related: runbot-hq/afm-release-notes-action#4
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@sourcery-ai sourcery-ai 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.

Sorry @eonist, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@coderabbitai

coderabbitai Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The workflows now limit and configure AFM release-note generation, invoke it during real publishing runs when manual notes are absent, and create GitHub Releases using prioritized manual, AFM-generated, or GitHub-generated notes.

Changes

AFM release publishing

Layer / File(s) Summary
Configure release-notes execution
.github/workflows/afm-release-notes.yml
The generation job adds a 10-minute timeout, removes the debug input, and documents tag selection and the smoke-test output step.
Wire AFM notes into release creation
.github/workflows/publish.yml
Publishing conditionally generates AFM notes after tagging, passes outputs through environment variables, and selects release titles and notes using manual, AFM, then GitHub-generated fallbacks.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant PublishWorkflow
  participant AFMAction
  participant GitHubRelease
  PublishWorkflow->>AFMAction: Generate release title and body
  AFMAction-->>PublishWorkflow: Return AFM outputs
  PublishWorkflow->>GitHubRelease: Create release with selected title and notes file
Loading

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The PR satisfies #2092 by wiring AFM into publish.yml, removing hardcoded debug logging, and preserving release-note fallback behavior.
Out of Scope Changes check ✅ Passed The changes stay within AFM release-note wiring and workflow cleanup, with no clear unrelated edits.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the debug removal and timeout changes, though it omits the larger publish workflow integration.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/afm-caller-pre-production

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

Greptile Summary

This PR cleans up the AFM release-notes workflow and wires AFM output into publishing. The main changes are:

  • Removed the hardcoded AFM debug input from the standalone caller.
  • Added a 10-minute timeout to the AFM release-notes job.
  • Added AFM release-note generation before GitHub release creation when no manual notes are provided.
  • Passed manual and AFM notes through environment variables and a temporary notes file before calling gh release create.

Confidence Score: 4/5

This PR is likely safe to merge with low workflow risk.

The workflow changes are narrow and address release-note handling without introducing verified blocking issues.

Confidence is below fully safe because the release path still depends on the external AFM action and self-hosted runner availability.

T-Rex T-Rex Logs

What T-Rex did

  • The validation script github_actions_workflow_validation_script.py was used to drive the machine assertions for the workflow validation.
  • The validator parsed both GitHub Actions workflow YAML files and produced an assertion summary with PASS and EXIT_CODE: 0.
  • A safe read-only attempt to view the workflow via gh workflow view was performed and blocked by the required authentication (GH_TOKEN or gh auth login).
  • The run artifacts were collected and uploaded for review, including the after-run log, the read-only attempt log, the validation script, and a run log.

View all artifacts

T-Rex Ran code and verified through T-Rex

Important Files Changed

Filename Overview
.github/workflows/afm-release-notes.yml Adds a 10-minute job timeout, removes the hardcoded debug input, and documents the standalone AFM smoke-test caller behavior.
.github/workflows/publish.yml Adds AFM release-note generation before GitHub release creation and safely passes generated/manual notes through environment variables and a temporary notes file.

Sequence Diagram

%%{init: {'theme': 'neutral'}}%%
sequenceDiagram
participant Operator
participant Publish as publish.yml
participant Git as GitHub Git
participant AFM as afm-release-notes-action
participant Release as gh release create

Operator->>Publish: workflow_dispatch(channel, dry_run, release_notes)
Publish->>Git: commit plist, tag, push tag
alt real release and no manual notes
    Publish->>AFM: Generate AFM release notes(tag)
    AFM-->>Publish: release_title, release_body or empty on failure
end
alt manual notes provided
    Publish->>Release: create release with manual --notes-file
else AFM body available
    Publish->>Release: create release with AFM title/body --notes-file
else fallback
    Publish->>Release: create release with --generate-notes
end
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
sequenceDiagram
participant Operator
participant Publish as publish.yml
participant Git as GitHub Git
participant AFM as afm-release-notes-action
participant Release as gh release create

Operator->>Publish: workflow_dispatch(channel, dry_run, release_notes)
Publish->>Git: commit plist, tag, push tag
alt real release and no manual notes
    Publish->>AFM: Generate AFM release notes(tag)
    AFM-->>Publish: release_title, release_body or empty on failure
end
alt manual notes provided
    Publish->>Release: create release with manual --notes-file
else AFM body available
    Publish->>Release: create release with AFM title/body --notes-file
else fallback
    Publish->>Release: create release with --generate-notes
end
Loading

Reviews (8): Last reviewed commit: "docs: explain why @main is safe for firs..." | Re-trigger Greptile

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/afm-release-notes.yml:
- Line 19: Clarify the workflow job’s timeout configuration around
timeout-minutes to state that it limits execution time only and does not cancel
jobs waiting for self-hosted runners. If queue cancellation is required, add a
separate supported mechanism rather than relying on timeout-minutes.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 5fc4b494-e15c-48a1-94bc-4671a4078688

📥 Commits

Reviewing files that changed from the base of the PR and between cbc19a7 and caaede1.

📒 Files selected for processing (1)
  • .github/workflows/afm-release-notes.yml

jobs:
generate-notes:
runs-on: [self-hosted, macOS, apple-intelligence]
timeout-minutes: 10

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

git ls-files .github/workflows/afm-release-notes.yml
wc -l .github/workflows/afm-release-notes.yml
cat -n .github/workflows/afm-release-notes.yml | sed -n '1,120p'

Repository: runbot-hq/run-bot

Length of output: 1733


🌐 Web query:

GitHub Actions timeout-minutes queued self-hosted runner job waiting for runner assignment docs

💡 Result:

In GitHub Actions, the jobs.<job_id>.timeout-minutes setting defines the maximum time a job is allowed to run, but it does not specifically control or limit the time a job spends in the "queued" state waiting for a self-hosted runner to become available [1]. Key points regarding job timing and queueing: 1. Queued Time vs. Execution Time: The timeout-minutes clock begins when the job starts executing on a runner, not when the job is first submitted to the queue [1]. Consequently, setting a low timeout-minutes value will not cause a job to fail while it is still waiting for a runner assignment [2]. 2. Automatic Queue Limit: GitHub Actions enforces a separate, system-wide limit for jobs in the queue. A job can remain in the queue for a maximum of 24 hours before it is automatically cancelled by GitHub [3]. This limit cannot be adjusted via the timeout-minutes property. 3. Monitoring and Mitigation: Because timeout-minutes does not apply to the time spent waiting for a runner, there is no native way to configure a shorter, custom timeout specifically for the "waiting for runner" phase [2]. If your workflow requires immediate failure when a runner is not available, you must implement custom logic, such as a separate monitoring workflow that checks for queued jobs and cancels them using the GitHub CLI (gh) [2]. If you find that your jobs are failing unexpectedly due to timeout-minutes, verify if your setup time or queue time is causing the job to exceed its total allowed execution duration [1]. For more precise control over long-running processes, consider using step-level timeouts (steps.<step_id>.timeout-minutes) instead of, or in addition to, the job-level timeout [1].

Citations:


timeout-minutes won’t stop queueing on self-hosted runners. It only starts once a runner is assigned, so this job can still sit queued for up to GitHub’s 24-hour limit. Use a separate queue-cancellation mechanism or clarify that the timeout only covers execution.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/afm-release-notes.yml at line 19, Clarify the workflow
job’s timeout configuration around timeout-minutes to state that it limits
execution time only and does not cancel jobs waiting for self-hosted runners. If
queue cancellation is required, add a separate supported mechanism rather than
relying on timeout-minutes.

@cubic-dev-ai cubic-dev-ai 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.

1 issue found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name=".github/workflows/afm-release-notes.yml">

<violation number="1" location=".github/workflows/afm-release-notes.yml:19">
P2: An offline `apple-intelligence` runner can still leave this job queued for hours; job-level `timeout-minutes` starts only after a runner begins executing, so it does not enforce the stated queue guard. A queue-aware cancellation/watchdog or runner-availability preflight is needed; this timeout can remain as an execution limit.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

jobs:
generate-notes:
runs-on: [self-hosted, macOS, apple-intelligence]
timeout-minutes: 10

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2: An offline apple-intelligence runner can still leave this job queued for hours; job-level timeout-minutes starts only after a runner begins executing, so it does not enforce the stated queue guard. A queue-aware cancellation/watchdog or runner-availability preflight is needed; this timeout can remain as an execution limit.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/afm-release-notes.yml, line 19:

<comment>An offline `apple-intelligence` runner can still leave this job queued for hours; job-level `timeout-minutes` starts only after a runner begins executing, so it does not enforce the stated queue guard. A queue-aware cancellation/watchdog or runner-availability preflight is needed; this timeout can remain as an execution limit.</comment>

<file context>
@@ -16,6 +16,7 @@ permissions:
 jobs:
   generate-notes:
     runs-on: [self-hosted, macOS, apple-intelligence]
+    timeout-minutes: 10
     steps:
       - uses: actions/checkout@v4
</file context>

Insert afm-release-notes-action@v1 as a step before Create GitHub
Release. Runs only on real releases when no manual release_notes input
is provided. continue-on-error: true ensures a failing AFM run does not
block the release — falls back to --generate-notes automatically.

Title priority: AFM release_title > tag name
Notes priority: manual input > AFM release_body > --generate-notes

Closes #2092
Comment thread .github/workflows/publish.yml Resolved

@cubic-dev-ai cubic-dev-ai 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.

1 issue found across 1 file (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name=".github/workflows/publish.yml">

<violation number="1" location=".github/workflows/publish.yml:414">
P1: Missing `timeout-minutes: 10` on the AFM release notes step. The PR description and commit message (`caaede11`) both describe adding a 10-minute timeout to guard against the self-hosted runner's AFM sidecar hanging during a real release, but the step doesn't include it. With `continue-on-error: true`, the timeout would cause the step to fail fast, its outputs to be empty, and the Create Release step to fall through to `--generate-notes` as intended. Without it, a hang blocks the workflow for the entire 30-minute job timeout before the fallback kicks in.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread .github/workflows/publish.yml Resolved
id: afm_notes
with:
tag: ${{ steps.tag.outputs.tag }}
continue-on-error: true

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1: Missing timeout-minutes: 10 on the AFM release notes step. The PR description and commit message (caaede11) both describe adding a 10-minute timeout to guard against the self-hosted runner's AFM sidecar hanging during a real release, but the step doesn't include it. With continue-on-error: true, the timeout would cause the step to fail fast, its outputs to be empty, and the Create Release step to fall through to --generate-notes as intended. Without it, a hang blocks the workflow for the entire 30-minute job timeout before the fallback kicks in.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/publish.yml, line 414:

<comment>Missing `timeout-minutes: 10` on the AFM release notes step. The PR description and commit message (`caaede11`) both describe adding a 10-minute timeout to guard against the self-hosted runner's AFM sidecar hanging during a real release, but the step doesn't include it. With `continue-on-error: true`, the timeout would cause the step to fail fast, its outputs to be empty, and the Create Release step to fall through to `--generate-notes` as intended. Without it, a hang blocks the workflow for the entire 30-minute job timeout before the fallback kicks in.</comment>

<file context>
@@ -400,13 +400,27 @@ jobs:
+        id: afm_notes
+        with:
+          tag: ${{ steps.tag.outputs.tag }}
+        continue-on-error: true
+
       # ── Create GitHub Release ──────────────────────────────────────────────────────────
</file context>

…itHub Release

AFM title and body are LLM-generated and must not be interpolated into
the shell script via ${{ }}. Move them to env: vars so the runner sets
them before bash starts, with no expression expansion in the script body.

Also replace --notes "$AFM_BODY" with --notes-file <tmpfile> to avoid
all shell word-splitting and quoting issues with multi-line content
containing quotes, backticks, or $() sequences.

Manual release_notes input follows the same pattern for consistency.

@cubic-dev-ai cubic-dev-ai 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.

All reported issues were addressed across 1 file (changes from recent commits).

Tip: Review your code locally with the cubic CLI to iterate faster.

Re-trigger cubic

Comment thread .github/workflows/publish.yml Resolved
eonist added 2 commits July 15, 2026 00:17
rm -f was only reached on success; if gh release create exits non-zero,
set -euo pipefail aborts and the temp file leaks. trap EXIT fires on
any exit path (success, error, signal). Remove the now-redundant manual rm.

@cubic-dev-ai cubic-dev-ai 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.

1 issue found across 1 file (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name=".github/workflows/publish.yml">

<violation number="1" location=".github/workflows/publish.yml:473">
P3: A temp-directory path containing `'` makes this generated trap command invalid, so release-note temp-file cleanup can fail. Keep the trap command literal and expand `NOTES_FILE` when the EXIT trap executes.</violation>
</file>

Tip: Review your code locally with the cubic CLI to iterate faster.

Re-trigger cubic

Comment on lines +473 to +474
# shellcheck disable=SC2064 # intentional: $NOTES_FILE must expand NOW, not at trap time
trap "rm -f '$NOTES_FILE'" EXIT

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P3: A temp-directory path containing ' makes this generated trap command invalid, so release-note temp-file cleanup can fail. Keep the trap command literal and expand NOTES_FILE when the EXIT trap executes.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/publish.yml, line 473:

<comment>A temp-directory path containing `'` makes this generated trap command invalid, so release-note temp-file cleanup can fail. Keep the trap command literal and expand `NOTES_FILE` when the EXIT trap executes.</comment>

<file context>
@@ -468,6 +468,10 @@ jobs:
           NOTES_FILE=$(mktemp)
+          # trap ensures NOTES_FILE is removed on any exit path — success, set -e abort,
+          # or signal — so the file never leaks if gh release create fails.
+          # shellcheck disable=SC2064  # intentional: $NOTES_FILE must expand NOW, not at trap time
+          trap "rm -f '$NOTES_FILE'" EXIT
           if [[ -n "${MANUAL_NOTES:-}" ]]; then
</file context>
Suggested change
# shellcheck disable=SC2064 # intentional: $NOTES_FILE must expand NOW, not at trap time
trap "rm -f '$NOTES_FILE'" EXIT
trap 'rm -f "$NOTES_FILE"' EXIT

Comment on lines +414 to +420
- name: Generate AFM release notes
if: ${{ inputs.dry_run != 'true' && inputs.release_notes == '' }}
uses: runbot-hq/afm-release-notes-action@v1
id: afm_notes
with:
tag: ${{ steps.tag.outputs.tag }}
continue-on-error: true

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Pass GH_TOKEN
The AFM step calls gh api but does not receive a token, so continue-on-error makes automatic-notes releases silently fall back to --generate-notes. GitHub does not inject secrets.GITHUB_TOKEN into step environments automatically, and gh authenticates from explicit GH_TOKEN or GITHUB_TOKEN env vars.

Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/publish.yml
Line: 414-420

Comment:
**Pass `GH_TOKEN`**
The AFM step calls `gh api` but does not receive a token, so `continue-on-error` makes automatic-notes releases silently fall back to `--generate-notes`. GitHub does not inject `secrets.GITHUB_TOKEN` into step environments automatically, and `gh` authenticates from explicit `GH_TOKEN` or `GITHUB_TOKEN` env vars.

How can I resolve this? If you propose a fix, please make it concise.

eonist added 2 commits July 15, 2026 00:51
- TAG/CHANNEL/ZIP/SIG: document why inline ${{ }} is safe (trusted
  runner values, not user input) vs AFM outputs which go via env:
- continue-on-error: document intent (self-hosted runner may be offline)
  and that skipped step outputs are empty strings handled correctly
jobs:
generate-notes:
runs-on: [self-hosted, macOS, apple-intelligence]
timeout-minutes: 10

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Timeout misses queueing
timeout-minutes only limits how long the job is allowed to run, so it does not enforce the stated 10-minute guard while this self-hosted job is still queued waiting for an offline apple-intelligence runner. In that failure mode the workflow can still remain queued until GitHub cancels stale self-hosted jobs, so this cleanup does not fix the release-blocking outage condition it describes.

Context Used: AGENTS.md (source)

Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/afm-release-notes.yml
Line: 19

Comment:
**Timeout misses queueing**
`timeout-minutes` only limits how long the job is allowed to run, so it does not enforce the stated 10-minute guard while this self-hosted job is still queued waiting for an offline `apple-intelligence` runner. In that failure mode the workflow can still remain queued until GitHub cancels stale self-hosted jobs, so this cleanup does not fix the release-blocking outage condition it describes.

**Context Used:** AGENTS.md ([source](https://app.greptile.com/eonist/github/eoncode/run-bot/-/custom-context?memory=02ac88f9-f20e-46ce-9bbb-decad86e51e4))

How can I resolve this? If you propose a fix, please make it concise.

@sonarqubecloud

sonarqubecloud Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@cubic-dev-ai cubic-dev-ai 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.

1 issue found across 2 files (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name=".github/workflows/publish.yml">

<violation number="1" location=".github/workflows/publish.yml:432">
P1: Release runs execute whatever code `main` resolves to at runtime with this workflow's write-capable token; a mistaken or compromised future action-repo push can therefore alter release behavior. Pin the action to a verified full commit SHA and update that SHA deliberately.</violation>
</file>

Tip: Review your code locally with the cubic CLI to iterate faster.

Re-trigger cubic

# The action's own generate.sh requires a self-hosted apple-intelligence runner
# to call AFM, but that constraint lives inside the standalone afm-release-notes.yml
# caller — not here. This step inherits the caller job's runner, which is fine.
uses: runbot-hq/afm-release-notes-action@main

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1: Release runs execute whatever code main resolves to at runtime with this workflow's write-capable token; a mistaken or compromised future action-repo push can therefore alter release behavior. Pin the action to a verified full commit SHA and update that SHA deliberately.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/publish.yml, line 432:

<comment>Release runs execute whatever code `main` resolves to at runtime with this workflow's write-capable token; a mistaken or compromised future action-repo push can therefore alter release behavior. Pin the action to a verified full commit SHA and update that SHA deliberately.</comment>

<file context>
@@ -413,12 +413,23 @@ jobs:
         # to call AFM, but that constraint lives inside the standalone afm-release-notes.yml
         # caller — not here. This step inherits the caller job's runner, which is fine.
-        uses: runbot-hq/afm-release-notes-action@v1
+        uses: runbot-hq/afm-release-notes-action@main
         id: afm_notes
         with:
</file context>
Suggested change
uses: runbot-hq/afm-release-notes-action@main
uses: runbot-hq/afm-release-notes-action@78694036d1b531407f0a5ad632b4d20961c105bf

@eonist
eonist merged commit e8d83bb into main Jul 14, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🔗 AFM release notes: remaining wiring tasks before production AFM returns markdown-fenced JSON — strip fences before jq parse in generate.sh

1 participant