ci(dependabot): gate updates on exact-head checks - #24
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 existing Dependabot workflow requests auto-merge with its
GITHUB_TOKEN. A merge by that token can suppress normal push workflows on the resulting default-branch SHA. The open softprops update, #23 at8ab9f8e4e62730af808d973fa27ece02cae62324, hasCIsuccess but a required CodeQL result ofneutral; it must not merge in that state.Changes
.github/workflows/dependabot-automerge.yml: replace the write-capable merge job with a read-only exact-head gate. It requires the existing four strict contexts by name and provider, checks every applicable run, and fails closed on missing/non-successful or truncated results. The workflow never requests a merge with the repository token..github/workflows/codeql.yml: add security-extended Actions and Go analysis on PRs and pushes. Go uses autobuild so pull-request scanning covers the Go source.Keep the original four strict checks and strict-up-to-date rule; add
Strict Dependabot gateas an additional required context. The authenticated external monitor will merge only after its own final exact-head verification and will verify push CI on the new default SHA.Local verification
On
1079e12,mise install,hk check --all --slow(including Go build, vet, race tests, and redacted full-history secret scans), explicitgo test -race ./...,go build ./...,actionlinton both changed workflows, andgit diff --checkall exited 0 with the repository-pinned Go 1.18.10. Logs and exit-code files:/Volumes/Code/Sources/.dev-storage/mathematic-inc-monitor/2026-09-24T162841Z-automerge/logs/native/mcpr-*.No release is requested or created.