Repository navigation
ci(dependabot): add workflow integrity verifier, PR triage workflow & maintainer merge CLI - #11
Merged
Merged
Conversation
… maintainer merge CLI Adds automated workflow & supply-chain verification (SHA pinning, explicit permissions, pull_request_target safety, multi-subaction lockstep for github/codeql-action/*, Dependabot group guard, GitHub Pages bundle check, and upstream tag-to-SHA provenance) plus Dependabot PR triage and local CODEOWNER batch squash-merge automation. - Runs workflow integrity checks in required CI verify job. - Adds least-privilege dependabot-triage.yml workflow (leaves final CODEOWNERS approval manual). - Implements policy: github-actions (patch/minor/major/grouped) and npm (patch/minor) eligible; npm major held for manual review. - Adds npm run verify:workflows, npm run pr:triage, and npm run pr:merge. - Adds zero-mock Vitest suite including live 100/100 Bridge Crew officer self-audit.
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
Adds end-to-end automated testing, provenance verification, policy triage, and single-command CODEOWNER batch squash-merge tooling for Dependabot PRs while preserving
require_code_owner_review: trueonmaster.Key Changes
scripts/verify-workflows.mjs,npm run verify:workflows):permissions:across every.github/workflows/*.ymlfile.pull_request_targetcheckouts of PR head code.github/codeql-action/{init,autobuild,analyze}drift as seen in build(deps): bump github/codeql-action/analyze from 3.39.4 to 4.39.4 #5) and requires a matchinggithub/codeql-action*group in.github/dependabot.yml..github/workflows/pages.ymlon PRs (even thoughpages.ymlonly deploys onpushtomaster).--verify-remote-tagsto verify pinned SHAs resolve to their declared upstream# vX.Y.ZGit tags.verifyjob in.github/workflows/ci.yml..github/workflows/dependabot-triage.yml):pull_request_targetstrictly fordependabot[bot]using only least-privilegeGITHUB_TOKEN(never checks out untrusted PR head code, never bypasses CODEOWNERS).github-actionspatch/minor/major/grouped +npmpatch/minor) vs manual review (npmmajor updates, maintainer changes, or integrity failures).automerge-eligible/manual-review-requiredlabels and posts an idempotent triage comment with ready-to-run approval/merge commands.scripts/pr-automation.mjs,npm run pr:triage,npm run pr:merge):npm run pr:triageruns a read-only audit of all open Dependabot PRs.npm run pr:mergeverifies signatures, provenance, policy, mergeability, and all required checks, then approves as CODEOWNER and squash-merges eligible green PRs (with optional--local-test,--rebase-conflicts, and--allow-npm-dev-major)..github/dependabot.yml) & Provisioner (scripts/configure-github.sh):npmminor/patch updates while isolating majornpmupdates, keepscodeql-actiongrouped, raisesgithub-actionsPR limit to 10, and provisionsnpm,automerge-eligible, andmanual-review-requiredlabels.tests/workflow-and-pr-automation.test.ts):Verification & Bridge Crew Gate
npm run typecheckpasses with zero errors (src/+tests/).npm run buildsucceeds cleanly.npm testpasses 100% of unit, integration, adversarial, and E2E suites (10/10 test files, 35/35 tests).npm audit --audit-level=highreports 0 vulnerabilities.npm run verify:workflowsandnode scripts/verify-workflows.mjs --verify-remote-tagspass (6/6 workflows, 17/17 upstream tag-to-SHA pins verified).EngineeringOfficer,SecurityOfficer,BridgeOfficer) maintains 100/100 KPI scores without regressions.permissions:.README.md,CONTRIBUTING.md) updated.