ci(dependabot): gate updates on exact-head checks - #142
Merged
Merged
Conversation
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
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.
Root cause
The repository's Dependabot workflow requested auto-merge with
GITHUB_TOKEN, which can leave the merged default-branch SHA without push CI. The currentmainSHA32bb6dafbae83942c964347c13151fcf2a46431ealso lacks its requiredCodeQLsummary context. On Dependabot PR #141 headf35f2c182dc23266825071f06590315387d1a0e2, the requiredCodeQLresult isneutral, so that PR cannot be safely drained as-is.Repair
.github/workflows/dependabot-automerge.yml: replace the token-driven merge request with a read-only gate. It verifies the PR still has the same exact head, requires all six existing strict contexts and every other applicable latest check to succeed, and recognizes only the docsdeployjob's documented non-applicable skip on PRs. An external authenticated monitor performs the eventual merge after branch/review conditions pass..github/workflows/codeql.yml: run advanced Actions and JavaScript/TypeScript CodeQL scans for pushes and PRs, including Dependabot PRs. Default setup was changed tonot-configuredfor advanced uploads..github/dependabot.yml: group CodeQL init/analyze updates together.Commit:
ci(dependabot): gate updates on exact-head checks(3000b70c50d49eb6f0f5b523d629f6179fc1a135). No release.Local verification
All work and logs are under
/Volumes/Code/Sources/.dev-storage/mathematic-inc-monitor/2026-09-24T162841Z-automergeon the external drive.mise install;pnpm install --frozen-lockfile;pnpm typecheck;pnpm build;pnpm testafter build (104 tests);pnpm pack --dry-run;pnpm audit --audit-level high: each exit 0. The Node 20.0.0 runtime smoke test andnpm pack --dry-runalso exited 0. Logs:logs/native/ts-japi-*.logwith adjacent.exitfiles.hk check --all --slow: exit 0 after fetching the full Git history; the rerun scanned 184 commits without secret-scan fetch warnings.git fsck --full,actionlinton changed workflows, andgit diff --check: exit 0.test/issue-62imports generatedlib; the exact CI order builds first, and the post-build test rerun passed. The first hk run on a filtered clone emitted a Git fetch warning despite exit 0; the full-history rerun is the trusted exhaustive result.The original six required checks remain in the branch ruleset. This PR must pass them on its exact head, including CodeQL, before any merge. The new default SHA will be audited again afterward.