Skip to content

ci: replace workflow_run chain with reusable verify call#9

Merged
cesarenaldi merged 8 commits into
mainfrom
claude/admiring-mestorf-f15092
Apr 23, 2026
Merged

ci: replace workflow_run chain with reusable verify call#9
cesarenaldi merged 8 commits into
mainfrom
claude/admiring-mestorf-f15092

Conversation

@cesarenaldi
Copy link
Copy Markdown
Collaborator

@cesarenaldi cesarenaldi commented Apr 22, 2026

Summary

  • Makes verify.yml a reusable workflow by adding the workflow_call trigger
  • Replaces the workflow_run trigger in release.yml with push to main
  • Calls verify.yml directly as a required job before publishing, matching the pattern used in the Aave v4 SDK

Why

The previous setup triggered release via workflow_run, which required checking out a dynamic SHA (github.event.workflow_run.head_sha) in a job with id-token: write. CodeQL flagged this as a critical alert (actions/untrusted-checkout) — potential execution of untrusted code in a privileged context.

The new setup eliminates the dynamic SHA entirely. The release workflow only fires on push to main, checks out HEAD with no ref override, and guarantees verify passes before publishing.

Reviewer notes


Note

Medium Risk
Changes the GitHub Actions trigger and dependency graph for release/pull-request CI, which can affect when releases publish and whether checks gate them correctly. While mostly workflow wiring, mistakes could block or prematurely run canary publishing on main.

Overview
Adds a dedicated pull-request workflow that runs verify.yml and tests.yml via reusable workflow calls with per-PR concurrency.

Refactors release.yml to trigger on push to main (dropping the prior workflow_run chain and conditional/dynamic SHA checkout), and gates canary publishing behind a required verify job (and a dependent tests job).

Updates verify.yml and tests.yml to be reusable (workflow_call) and simplifies their job naming, and adds a couple of CI-related guardrails to AGENTS.md.

Reviewed by Cursor Bugbot for commit 8346517. Bugbot is set up for automated code reviews on this repo. Configure here.

cesarenaldi and others added 2 commits April 22, 2026 13:18
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Resolves a CodeQL critical alert (actions/untrusted-checkout) by
removing the workflow_run trigger and dynamic SHA checkout from
release.yml. The release workflow now triggers on push to main and
calls verify.yml directly as a required job, matching the pattern
used in the Aave v4 SDK.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment thread .github/workflows/verify.yml
Comment thread .github/workflows/release.yml
Extracts pull_request trigger into a dedicated pull-request.yml that
calls verify.yml as a reusable workflow. verify.yml now only responds
to workflow_call and workflow_dispatch, keeping trigger ownership clear.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment thread .github/workflows/pull-request.yml Fixed
Comment thread .github/workflows/pull-request.yml
…y on PRs

Adds workflow_call trigger to tests.yml and removes the pull_request
trigger. pull-request.yml now calls both verify and tests, with
secrets: inherit so test credentials are available.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment thread .github/workflows/pull-request.yml Fixed
Comment thread .github/workflows/pull-request.yml Fixed
…ull-request

Removes name fields from jobs in verify.yml and tests.yml to avoid
redundant "Verify / Verify" status check labels. Adds permissions
block to pull-request.yml.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment thread .github/workflows/tests.yml
cesarenaldi and others added 3 commits April 22, 2026 20:53
Status checks now read Verify / Run and Tests / Run.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Tests now run in release after verify succeeds but do not gate the
Publish Canary step. Removes the standalone push-to-main trigger from
tests.yml since release now owns that responsibility.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 8346517. Configure here.

Comment thread .github/workflows/release.yml
@cesarenaldi cesarenaldi merged commit 7bac62e into main Apr 23, 2026
6 of 7 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.

2 participants