Skip to content

chore(cliproxyapi-plusplus): workflow hygiene — ubuntu-24.04, permissions#1012

Open
KooshaPari wants to merge 12 commits into
mainfrom
chore/workflow-hygiene-ubuntu-24
Open

chore(cliproxyapi-plusplus): workflow hygiene — ubuntu-24.04, permissions#1012
KooshaPari wants to merge 12 commits into
mainfrom
chore/workflow-hygiene-ubuntu-24

Conversation

@KooshaPari
Copy link
Copy Markdown
Owner

@KooshaPari KooshaPari commented May 28, 2026

Summary

  • Replace ubuntu-latest with ubuntu-24.04 across all workflow files
  • Add minimal permissions: blocks to workflow files missing them
  • Fix broken workflow YAML formatting (step/uses separation)
  • Add concurrency blocks to cancel-in-progress runs
  • Pin actions to immutable commit SHAs
  • Delete redundant lint.yml (replaced by lint-test.yml and new ci.yml golangci-lint)
  • Merge main branch (11 additional hygiene commits from CI, dependabot, etc.)

Test plan

  • Hygiene branch updated with latest main commits
  • Pushed to origin/chore/workflow-hygiene-ubuntu-24
  • CI passes on this branch
  • Merge after review

🤖 Generated with Claude Code

KooshaPari and others added 12 commits May 5, 2026 20:45
…p-go

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…` lines

Gitleaks identified multiple broken YAML patterns where `with:` keywords
were concatenated to the end of `uses:` comment lines (e.g. `# v5with:`).
Also fix step-level structure issues where `run:` / `env:` were misaligned.

Affected workflows: ci, codeql, coderabbit-rate-limit-retry, docker-image,
generate-sdks, pr-path-guard, pr-test-build, release-drafter, sast-quick,
security-guard-hook-audit, alert-sync-issues, auto-merge, ci-rerun-flaky.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…` lines (batch 2)

Fix broken YAML syntax where `with:` keywords were concatenated to `uses:`
comment lines (e.g. `# v4with:`). Also fix step structure issues where
`run:` / `env:` / `name:` prefixes were misaligned or missing.

Affected workflows: auto-merge, ci-rerun-flaky, docs, journey-gate,
pages-deploy, release-batch, release, sast-full, scorecard.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 28, 2026 08:31
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 28, 2026

CodeAnt AI is reviewing your PR.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 28, 2026

Warning

Review limit reached

@KooshaPari, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 46 minutes and 41 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: cca37615-3fe2-4e27-af57-685a8d646706

📥 Commits

Reviewing files that changed from the base of the PR and between b4f95c7 and 5f17af3.

📒 Files selected for processing (32)
  • .github/ISSUE_TEMPLATE/config.yml
  • .github/workflows/alert-sync-issues.yml
  • .github/workflows/auto-merge.yml
  • .github/workflows/ci-rerun-flaky.yml
  • .github/workflows/ci.yml
  • .github/workflows/codeql.yml
  • .github/workflows/coderabbit-rate-limit-retry.yml
  • .github/workflows/docker-image.yml
  • .github/workflows/docs.yml
  • .github/workflows/generate-sdks.yaml
  • .github/workflows/journey-gate.yml
  • .github/workflows/lint-test.yml
  • .github/workflows/pages-deploy.yml
  • .github/workflows/policy-gate.yml
  • .github/workflows/pr-path-guard.yml
  • .github/workflows/pr-test-build.yml
  • .github/workflows/quality-gate.yml
  • .github/workflows/release-batch.yaml
  • .github/workflows/release-drafter.yml
  • .github/workflows/release.yaml
  • .github/workflows/required-check-names-guard.yml
  • .github/workflows/sast-full.yml
  • .github/workflows/sast-quick.yml
  • .github/workflows/scorecard.yml
  • .github/workflows/security-guard-hook-audit.yml
  • .github/workflows/security-guard.yml
  • .github/workflows/self-merge-gate.yml
  • .github/workflows/tag-automation.yml
  • .github/workflows/trufflehog.yml
  • .gitignore
  • docs/.vitepress/theme/index.ts
  • package.json

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key: "pre_merge_checks"
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/workflow-hygiene-ubuntu-24

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 and usage tips.

@codeant-ai codeant-ai Bot added the size:L This PR changes 100-499 lines, ignoring generated files label May 28, 2026
conclusion: pass ? "success" : "failure",
output: {
title: pass ? "CodeRabbit gate passed" : "CodeRabbit gate blocked",
title: "pass ? "CodeRabbit gate passed" : "CodeRabbit gate blocked","
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

JavaScript ternary expression corrupted into string literal

High Severity

The JavaScript ternary expression pass ? "CodeRabbit gate passed" : "CodeRabbit gate blocked" has been incorrectly wrapped in outer double quotes, turning it into the invalid string literal "pass ? "CodeRabbit gate passed" : "CodeRabbit gate blocked",". This will cause a JavaScript syntax error at runtime due to unescaped nested quotes, crashing the publishGate function.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5f17af3. Configure here.

uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
name: Initialize CodeQL
uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4
with:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Checkout and CodeQL init merged into one step

High Severity

The Checkout step and Initialize CodeQL step have been collapsed into a single YAML mapping with duplicate name: and uses: keys. In YAML, duplicate keys cause the last value to win, so this step only runs github/codeql-action/init (never actions/checkout). The repository is never checked out, so CodeQL analysis will fail.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5f17af3. Configure here.

steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5@11bd71901bbe5b1630ceea73d27597364c9af683 # v4- name: Create release tag
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
name: Create release tag
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Step has both uses and run which is invalid

High Severity

The checkout step now has both uses: and run: properties on the same step. GitHub Actions does not allow a step to have both — what was previously two separate steps (checkout, then create release tag) has been incorrectly merged into one. The workflow will fail validation.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5f17af3. Configure here.

- name: Discover manifests
id: discover
run: |
- run: |
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Step split disconnects id: discover from its run block

High Severity

The "Discover manifests" step has been split into two: one with name and id: discover (but no action), and a separate unnamed step with run:. The id: discover is no longer on the step that produces outputs, so all later references to steps.discover.outputs.MANIFEST_LIST and steps.discover.outputs.MANIFEST_COUNT will be empty, breaking the entire workflow.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5f17af3. Configure here.

- name: Fail when restricted paths change
if: steps.changed-files.outputs.any_changed == 'true' && !(startsWith(github.head_ref, 'feature/koosh-migrate') || startsWith(github.head_ref, 'feature/migrate-') || startsWith(github.head_ref, 'migrated/') || startsWith(github.head_ref, 'ci/fix-feature-koosh-migrate') || startsWith(github.head_ref, 'ci/fix-feature-migrate-') || startsWith(github.head_ref, 'ci/fix-migrated/') || startsWith(github.head_ref, 'ci/fix-feat-'))
run: |
- run: |
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Guard condition detached from its run block

High Severity

The "Fail when restricted paths change" step has been split so the if: condition (checking branch name patterns and changed files) is on an empty step, while the run: block that fails the build is now unconditional. This means the translator path restriction will always execute regardless of branch or changed files, potentially blocking all PRs.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5f17af3. Configure here.

- name: Build docs
working-directory: docs
run: |
- run: |
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Docs build step loses its working-directory setting

Medium Severity

The "Build docs" step has been split so working-directory: docs is on a step with no action, while the run: block executing npm install and npm run docs:build runs in the repository root instead of the docs/ directory. The docs build will fail because package.json won't be found in the expected location.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5f17af3. Configure here.

- name: Live verification
if: inputs.live_verification && github.event.inputs.live_verification != 'false'
env:
- env:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Live verification step lost its conditional guard

Medium Severity

The "Live verification" step has been split so the if: condition checking inputs.live_verification is on a step with no action, while the actual run: block with the API call is now unconditional. The live verification will always execute (though it early-exits if ANTHROPIC_API_KEY is unset), and the named step is invalid.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5f17af3. Configure here.

- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5with:
go-version: ">=1.26.0"
cache: true
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Release batch checkout lost fetch-depth: 0 for history

High Severity

The checkout step lost its with: fetch-depth: 0 and setup-go lost its with: go-version: ">=1.26.0" and cache: true. The release batch tool (go run ./cmd/releasebatch --mode create --target main) likely needs full git history to determine versions and create releases. A shallow clone (depth 1) even with git fetch --force --tags doesn't provide the commit history the tool needs to function correctly.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5f17af3. Configure here.

branches: [main, master, develop]
schedule:
- cron: "0 2 * * *"
- cron: '17 * * * *'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

SAST schedule changed from daily to hourly

Medium Severity

The schedule cron changed from "0 2 * * *" (once daily at 2am) to '17 * * * *' (every hour at minute 17). This is a 24x increase in scheduled runs for a "Full Analysis" workflow that includes CodeQL, Trivy, Semgrep, and TruffleHog with 15-30 minute timeouts. This appears to be a copy-paste from alert-sync-issues.yml and is extremely wasteful for a full SAST scan.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5f17af3. Configure here.

import type { Theme } from "vitepress";
import CategorySwitcher from "./components/CategorySwitcher.vue";
import "./custom.css";
import "./style.css";
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Import of non-existent style.css breaks docs build

Medium Severity

The new import "./style.css" references a file that does not exist in the docs/.vitepress/theme/ directory (only custom.css exists there). This will cause the VitePress docs build to fail with a module resolution error, breaking the docs-build and docs CI jobs.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5f17af3. Configure here.

Comment on lines 211 to 214
- name: Stop proxy
if: always()
run: |
- run: |
if [ -f /tmp/cliproxy-smoke.pid ]; then
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 Architect Review — CRITICAL

In the provider smoke test jobs, the cleanup steps now have name/if in one step and the run block in a separate step, so if: always() is no longer attached to the actual cleanup command and the first step has no run/uses, which can break the workflow and skip teardown of the background proxy process in normal CI runs.

Suggestion: Rejoin each logical cleanup step into a single YAML step (with name, if: always(), and run together) and run a workflow linter (e.g., actionlint) across the modified workflow to ensure all steps have a valid run/uses.

Fix in Cursor | Fix in VSCode Claude

(Use Cmd/Ctrl + Click for best experience)

Prompt for AI Agent 🤖
This is an **Architect / Logical Review** comment left during a code review. These reviews are first-class, important findings — not optional suggestions. Do NOT dismiss this as a 'big architectural change' just because the title says architect review; most of these can be resolved with a small, localized fix once the intent is understood.

**Path:** .github/workflows/pr-test-build.yml
**Line:** 211:214
**Comment:**
	*CRITICAL: In the provider smoke test jobs, the cleanup steps now have `name`/`if` in one step and the `run` block in a separate step, so `if: always()` is no longer attached to the actual cleanup command and the first step has no `run`/`uses`, which can break the workflow and skip teardown of the background proxy process in normal CI runs.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
If a suggested approach is provided above, use it as the authoritative instruction. If no explicit code suggestion is given, you MUST still draft and apply your own minimal, localized fix — do not punt back with 'no suggestion provided, review manually'. Keep the change as small as possible: add a guard clause, gate on a loading state, reorder an await, wrap in a conditional, etc. Do not refactor surrounding code or expand scope beyond the finding.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix

Comment on lines 24 to 39
@@ -33,7 +39,7 @@ jobs:
uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4analyze-skip-for-migrated-router-fix:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 Architect Review — CRITICAL

The CodeQL job now has checkout and init collapsed into a single step with duplicate name/uses keys, and the analyze step is merged with the next job definition, so the intended checkout/init/analyze sequence is not executed and the branch-specific skip job has been collapsed into the same job, breaking the CodeQL analysis flow.

Suggestion: Restore separate steps for checkout, CodeQL init, and analyze, and split the analyze-skip-for-migrated-router-fix job back into its own job block so both the main analysis path and the compatibility-branch skip path are well-formed and executable.

Fix in Cursor | Fix in VSCode Claude

(Use Cmd/Ctrl + Click for best experience)

Prompt for AI Agent 🤖
This is an **Architect / Logical Review** comment left during a code review. These reviews are first-class, important findings — not optional suggestions. Do NOT dismiss this as a 'big architectural change' just because the title says architect review; most of these can be resolved with a small, localized fix once the intent is understood.

**Path:** .github/workflows/codeql.yml
**Line:** 24:39
**Comment:**
	*CRITICAL: The CodeQL job now has checkout and init collapsed into a single step with duplicate `name`/`uses` keys, and the `analyze` step is merged with the next job definition, so the intended checkout/init/analyze sequence is not executed and the branch-specific skip job has been collapsed into the same job, breaking the CodeQL analysis flow.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
If a suggested approach is provided above, use it as the authoritative instruction. If no explicit code suggestion is given, you MUST still draft and apply your own minimal, localized fix — do not punt back with 'no suggestion provided, review manually'. Keep the change as small as possible: add a guard clause, gate on a loading state, reorder an await, wrap in a conditional, etc. Do not refactor surrounding code or expand scope beyond the finding.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix

Comment on lines 109 to 112
- name: Discover manifests
id: discover
run: |
- run: |
GLOB="${MANIFEST_PATH:-**/manifest.verified.json}"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 Architect Review — CRITICAL

In the Journey Gate workflow, the Discover manifests and Live verification steps now put id/if on one step and the run/env blocks on a separate step, so outputs like steps.discover.outputs.MANIFEST_LIST are never populated and the live-verification shell block no longer respects its if condition.

Suggestion: Combine name, id, if, env, and run into single step definitions for discovery and live verification so that the manifest outputs are correctly exposed and the live-verification gate only runs when its input is enabled.

Fix in Cursor | Fix in VSCode Claude

(Use Cmd/Ctrl + Click for best experience)

Prompt for AI Agent 🤖
This is an **Architect / Logical Review** comment left during a code review. These reviews are first-class, important findings — not optional suggestions. Do NOT dismiss this as a 'big architectural change' just because the title says architect review; most of these can be resolved with a small, localized fix once the intent is understood.

**Path:** .github/workflows/journey-gate.yml
**Line:** 109:112
**Comment:**
	*CRITICAL: In the Journey Gate workflow, the `Discover manifests` and `Live verification` steps now put `id`/`if` on one step and the `run`/`env` blocks on a separate step, so outputs like `steps.discover.outputs.MANIFEST_LIST` are never populated and the live-verification shell block no longer respects its `if` condition.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
If a suggested approach is provided above, use it as the authoritative instruction. If no explicit code suggestion is given, you MUST still draft and apply your own minimal, localized fix — do not punt back with 'no suggestion provided, review manually'. Keep the change as small as possible: add a guard clause, gate on a loading state, reorder an await, wrap in a conditional, etc. Do not refactor surrounding code or expand scope beyond the finding.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix

Comment on lines +4 to +7
push:
branches: [main, master, develop]
pull_request:
branches: [main, master, develop]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟠 Architect Review — HIGH

The goreleaser workflow has been changed from manual-only to run on every push and pull request to main/master/develop, but the goreleaser ... release step remains unconditional, so full release logic will be attempted (and typically fail for non-tag builds) on normal branch and PR activity instead of being restricted to actual release/tag contexts.

Suggestion: Restrict the goreleaser release invocation to tagged or manually triggered runs (e.g., by adding an if: startsWith(github.ref, 'refs/tags/') guard or limiting triggers to tags) and, if desired, move any non-publishing validation into a separate job or workflow for branch/PR checks.

Fix in Cursor | Fix in VSCode Claude

(Use Cmd/Ctrl + Click for best experience)

Prompt for AI Agent 🤖
This is an **Architect / Logical Review** comment left during a code review. These reviews are first-class, important findings — not optional suggestions. Do NOT dismiss this as a 'big architectural change' just because the title says architect review; most of these can be resolved with a small, localized fix once the intent is understood.

**Path:** .github/workflows/release.yaml
**Line:** 4:7
**Comment:**
	*HIGH: The goreleaser workflow has been changed from manual-only to run on every push and pull request to main/master/develop, but the `goreleaser ... release` step remains unconditional, so full release logic will be attempted (and typically fail for non-tag builds) on normal branch and PR activity instead of being restricted to actual release/tag contexts.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
If a suggested approach is provided above, use it as the authoritative instruction. If no explicit code suggestion is given, you MUST still draft and apply your own minimal, localized fix — do not punt back with 'no suggestion provided, review manually'. Keep the change as small as possible: add a guard clause, gate on a loading state, reorder an await, wrap in a conditional, etc. Do not refactor surrounding code or expand scope beyond the finding.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 28, 2026

CodeAnt AI finished reviewing your PR.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

- name: Discover manifests
id: discover
run: |
- run: |
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CRITICAL: Step id: discover is disconnected from its run block — the name property is missing, making this step invalid YAML

- name: Live verification
if: inputs.live_verification && github.event.inputs.live_verification != 'false'
env:
- env:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CRITICAL: if: conditional is detached from the step — missing name property causes invalid workflow structure

steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5@11bd71901bbe5b1630ceea73d27597364c9af683 # v4- name: Create release tag
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
name: Create release tag
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CRITICAL: Step has both uses and run in same step without proper name separator — workflow will fail to parse

uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
name: Initialize CodeQL
uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4
with:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CRITICAL: name: Initialize CodeQL merged into uses line — step properties corrupted, workflow will fail

steps:
- uses: release-drafter/release-drafter@6a93d829887aa2e0748befe2e808c66c0ec6e4c7 # v6env:
- uses: release-drafter/release-drafter@6a93d829887aa2e0748befe2e808c66c0ec6e4c7 # v6
with:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

WARNING: env block changed to with block on release-drafter action — this action expects GITHUB_TOKEN via env, not with

branches: [main, master, develop]
schedule:
- cron: "0 2 * * *"
- cron: '17 * * * *'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

WARNING: Schedule changed from daily (0 2 * * *) to hourly (17 * * * *) — this significantly increases CI load and costs

- name: Stop proxy
if: always()
run: |
- run: |
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CRITICAL: if: always() detached from step — run block lacks step name, causing invalid YAML

fi
- name: Install Task
uses: arduino/setup-task@{"message":"Not Found","documentation_url":"https://docs.github.com/rest/git/refs#get-a-reference","status":"404"} # v2with:
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CRITICAL: Arduino setup-task action version is corrupted — shows JSON error response instead of valid commit SHA

- name: Build docs
working-directory: docs
run: |
- run: |
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

WARNING: working-directory setting removed from docs-build step — docs build may fail if not run from correct directory

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 29, 2026

CodeAnt AI is running Incremental review


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai Bot added size:L This PR changes 100-499 lines, ignoring generated files and removed size:L This PR changes 100-499 lines, ignoring generated files labels May 29, 2026
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 29, 2026

CodeAnt AI Incremental review completed.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

There are 15 total unresolved issues (including 13 from previous reviews).

Fix All in Cursor

Bugbot Autofix prepared fixes for both issues found in the latest run.

  • ✅ Fixed: Reusable workflow job cannot have runs-on
    • Removed the invalid runs-on directive from the phenotype-validate job that calls a reusable workflow.
  • ✅ Fixed: Weekly OpenSSF Scorecard schedule trigger was removed
    • Restored the weekly schedule trigger (cron: '17 3 * * 6') to ensure regular scorecard updates.

Create PR

Or push these changes by commenting:

@cursor push 78fc7ca394
Preview (78fc7ca394)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -58,5 +58,4 @@
       
 
   phenotype-validate:
-    runs-on: ubuntu-24.04
     uses: KooshaPari/phenotypeActions/.github/workflows/validate-governance.yml@48772d7560c964fff01a209742429f24283e96cf

diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -6,6 +6,8 @@
   pull_request:
     branches: [main, master, develop]
   branch_protection_rule:
+  schedule:
+    - cron: '17 3 * * 6'
 
 permissions: read-all

You can send follow-ups to the cloud agent here.

Reviewed by Cursor Bugbot for commit 0864037. Configure here.

Comment thread .github/workflows/ci.yml
runs-on: ubuntu-latest
uses: KooshaPari/phenotypeActions/.github/workflows/validate-governance.yml@main
runs-on: ubuntu-24.04
uses: KooshaPari/phenotypeActions/.github/workflows/validate-governance.yml@48772d7560c964fff01a209742429f24283e96cf
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Reusable workflow job cannot have runs-on

High Severity

The phenotype-validate job specifies both runs-on: ubuntu-24.04 and uses: (a reusable workflow call). GitHub Actions does not allow runs-on on jobs that call reusable workflows — the called workflow defines its own runner. This will cause a workflow validation error, potentially blocking the entire CI workflow.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 0864037. Configure here.

branches: [main, master, develop]
pull_request:
branches: [main, master, develop]
branch_protection_rule:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Weekly OpenSSF Scorecard schedule trigger was removed

Low Severity

The schedule trigger (cron: '17 3 * * 6' — weekly Saturday at 3:17 AM) was removed from the OpenSSF Scorecard workflow. The scorecard action recommends scheduled runs for consistent scoring history. Without the schedule, scores will only update on pushes and PRs, which may cause gaps in the published scorecard data.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 0864037. Configure here.

@KooshaPari KooshaPari enabled auto-merge (squash) May 29, 2026 00:44
@KooshaPari KooshaPari force-pushed the chore/workflow-hygiene-ubuntu-24 branch from 0864037 to 5f17af3 Compare May 29, 2026 00:46
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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

Labels

size:L This PR changes 100-499 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants