Skip to content

fix(ci): trigger release verification on the Release run, not the release event - #763

Merged
CybotTM merged 1 commit into
mainfrom
fix/verify-release-trigger
Jul 28, 2026
Merged

fix(ci): trigger release verification on the Release run, not the release event#763
CybotTM merged 1 commit into
mainfrom
fix/verify-release-trigger

Conversation

@CybotTM

@CybotTM CybotTM commented Jul 28, 2026

Copy link
Copy Markdown
Member

The gate added in #761 never fired.

Releases here are created by the Release workflow through softprops/action-gh-release using GITHUB_TOKEN, and GitHub does not raise events from that token — a deliberate guard against recursive workflow runs. So on: release: [published] is inert for every release this project produces. I wired it that way and merged it without exercising it; the first tag afterwards, v0.28.1, produced no verification run.

The repository does have 47 historical event=release runs, which is what made it look plausible — they are all from March, from an era when releases were created by hand.

Now it keys off the Release workflow completing, which workflow_run observes regardless of which token created what. Two guards come with it: a Release run that did not succeed has nothing to verify, and head_branch is only a tag when the run came from a tag push, so a Release started another way is skipped rather than verified against a branch name. workflow_dispatch is unchanged.

v0.28.1 was verified by manual dispatch in the meantime, so the release itself is not unchecked — but the automation was, which is the same failure mode this gate exists to catch.

…ease event

The gate added in #761 never fired. Releases are created by the Release
workflow using GITHUB_TOKEN, and GitHub does not raise events from that token
— so `release: published` cannot trigger anything for an automated release.
The first tag after it landed, v0.28.1, produced no verification run at all.

It now keys off the Release workflow completing, which is not subject to that
rule, and skips a run that failed or was not started from a tag. v0.28.1 was
verified by manual dispatch in the meantime; the next release exercises this
path on its own.

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
Copilot AI review requested due to automatic review settings July 28, 2026 22:44
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions github-actions Bot added the ci label Jul 28, 2026
@sonarqubecloud

Copy link
Copy Markdown

@github-actions github-actions 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.

Automated approval for maintainer PR

All automated quality gates passed. See SECURITY_CONTROLS.md for compensating controls.

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.70%. Comparing base (e3cf4ba) to head (195ee05).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #763   +/-   ##
=======================================
  Coverage   87.70%   87.70%           
=======================================
  Files          90       90           
  Lines       12057    12057           
=======================================
  Hits        10575    10575           
  Misses       1193     1193           
  Partials      289      289           
Flag Coverage Δ
integration 87.69% <ø> (ø)
unittests 85.25% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@CybotTM
CybotTM added this pull request to the merge queue Jul 28, 2026
Merged via the queue into main with commit e19bb85 Jul 28, 2026
26 of 27 checks passed
@CybotTM
CybotTM deleted the fix/verify-release-trigger branch July 28, 2026 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants