CVE-2026-44895: Github Actions Publish Missing Event Type Guard

GitHub Actions job with 'id-token: write' (OIDC trusted publishing) uses a commit-message check as its only 'if' guard without restricting which event types may trigger publishing. Any push to the branch trigger satisfies this condition, allowing automated merges, Dependabot updates, or direct pushes to publish a package without a formal release event. Restr

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0YAML
greprules fetch cve-2026-44895-github-actions-publish-missing-event-type-guard --engine opengrep

Description

GitHub Actions job with 'id-token: write' (OIDC trusted publishing) uses a commit-message check as its only 'if' guard without restricting which event types may trigger publishing. Any push to the branch trigger satisfies this condition, allowing automated merges, Dependabot updates, or direct pushes to publish a package without a formal release event. Restr