H-6402: Add preflight reusable workflows#35
Merged
TimDiekmann merged 12 commits intomainfrom Apr 1, 2026
Merged
Conversation
Move the dismiss-stale-approvals composite action and workflow from the hash repo to the .github org repo. Uses github.workflow_sha to ensure action code matches the workflow version callers pin to. Runs self-test and dry-run on pull_request events.
🤖 Augment PR SummarySummary: Adds automation in this org repo to detect and dismiss stale PR approvals (plus a TODO/ticket scan workflow), consolidating CI logic that previously lived elsewhere. Changes:
Technical Notes: External actions are pinned by SHA; the stale-approval workflow uses an OIDC token claim to determine the ref for checking out the action code. 🤖 Was this summary useful? React with 👍 or 👎 |
Member
Author
|
Too much AI noise |
Rename workflow/job names for clean check display: - Workflow name = topic (shown in .github repo Actions tab) - Job name = action verb (shown as segment 3 in caller checks) Schema: Preflight / <topic> / <action>
- Rename dependency-review.yml to dependencies.yml (consistent naming) - Add todo-comments.yml: scans for TODO comments referencing Linear ticket IDs from the PR title
4 tasks
CiaranMn
approved these changes
Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dismiss-stale-approvalscomposite action and reusable workflow (moved fromhashrepo)todo-commentsreusable workflow (scans for TODO comments referencing Linear tickets)dependency-review.ymltodependencies.ymlfor consistent namingjob_workflow_ref) to resolve the correct checkout ref for the composite action — no input parameter needed, Renovate-compatiblePreflight / <topic> / <action>naming convention for clean check display in callersCheck naming convention
Callers add a
preflight.ymlworkflow that calls these reusable workflows:Preflight / Stale approvals / DismissPreflight / Dependencies / ReviewPreflight / Todo comments / ScanOIDC workaround
Reusable workflows can't determine their own ref (all
github.*context refers to the caller). We extractjob_workflow_reffrom the OIDC token to get the correct SHA for checking out the composite action. This will be replaced by the$/syntax once available:https://github.com/orgs/community/discussions/26245#discussioncomment-15601440