Skip to content

ci(dependabot): replace token merge with strict gate - #1035

Merged
jrandolf merged 3 commits into
mainfrom
ci/dependabot-strict-gate-20260924
Sep 27, 2026
Merged

jrandolf merged 3 commits into
mainfrom
ci/dependabot-strict-gate-20260924

Conversation

@jrandolf

@jrandolf jrandolf commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Root cause and repair

The former Dependabot pull-request workflow could request auto-merge with its write-capable GITHUB_TOKEN before exact-head checks completed. That merge path can suppress push CI. This PR replaces it with a read-only strict gate that verifies the six original required contexts and every applicable check on the exact Dependabot head. The active ruleset retains those six checks and adds the gate; no protection is weakened.

GitHub CodeQL default setup was configured after this PR's prior head, so CodeQL and Analyze (actions) were missing there. The empty conventional commit ci(codeql): refresh checks after default setup triggered a new head, 7f12fcd54c38d5d6e4a3aaf7e37509c4677fd78c, without changing source or adding a conflicting advanced workflow. All seven required contexts now report success on that exact head.

Changed files

  • .github/workflows/dependabot-automerge.yml: read-only exact-head gate. No other file differs from main.

Native validation on the current PR content

  • mise exec -- hk check --all --slow: exit 0.
  • mise exec -- cargo test --locked: exit 0.
  • mise exec -- cargo test --locked --no-default-features --features comments,email_address,literals,normalization,serde,white-spaces: exit 0.
  • rustup run 1.81.0 cargo test --locked --all-targets --no-default-features --features comments,email_address,literals,normalization,serde,white-spaces: exit 0.
  • mise exec -- cargo build --locked: exit 0.
  • mise exec -- cargo package --locked: exit 0.
  • rustup run 1.81.0 cargo build --verbose --release --target thumbv6m-none-eabi, with Rustup/Cargo/tmp storage on the external Code drive: exit 0.
  • git diff --check: exit 0.

Logs: /Volumes/Code/Sources/.dev-storage/mathematic-inc-monitor/2026-09-27T1501Z-full.DCnWlm/logs/addr-spec-rs-gate-{hk,test-default,test-features,test-msrv,build,package,no-std-build}.log.

The exact-head strict-check evidence is on this PR's checks tab. The previous head lacked the GitHub Advanced Security CodeQL summary and Actions analysis; the current head's CodeQL, CI, Check, MSRV, Analyze (actions), Analyze (rust), and Strict Dependabot gate are all completed/successful. Merge with the authenticated non-Actions credential only; verify the new default-branch SHA afterward. No release is requested.

@jrandolf
jrandolf merged commit 236818b into main Sep 27, 2026
7 checks passed
@jrandolf
jrandolf deleted the ci/dependabot-strict-gate-20260924 branch September 27, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant