Skip to content

Harden Dependabot auto-merge and coverage publishing - #494

Merged
Snuffy2 merged 5 commits into
custom-components:mainfrom
Snuffy2:chore/standardize-dependabot-auto-merge-20260905
Sep 7, 2026
Merged

Harden Dependabot auto-merge and coverage publishing#494
Snuffy2 merged 5 commits into
custom-components:mainfrom
Snuffy2:chore/standardize-dependabot-auto-merge-20260905

Conversation

@Snuffy2

@Snuffy2 Snuffy2 commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

Hardens Dependabot auto-merge authorization and separates untrusted coverage generation from trusted coverage publication. This keeps dependency updates convenient while ensuring write-capable jobs act only on verified repository-controlled inputs.

What Changed

  • Added a trusted-base JavaScript authorizer for Dependabot provenance, changed-file scope, verified commit history, and GitHub Update branch ancestry.
  • Reworked the auto-merge workflow to run authorization with read-only permissions before enabling or disabling auto-merge.
  • Required Dependabot authorization before checking out dependency PR heads in pytest CI.
  • Split coverage processing into read-only PR generation and trusted default-branch publication paths with narrowly scoped permissions.
  • Added behavior-level tests for supported ecosystems, malformed or untrusted histories, workflow permissions, release gates, and coverage publication.

Why

Dependabot PRs and coverage artifacts cross trust boundaries in CI. Verifying their provenance and contents from the trusted base before executing or granting write access reduces the risk of untrusted changes reaching privileged workflow paths while preserving automated dependency maintenance.

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Coverage report

This PR does not seem to contain any modification to coverable code.

@Snuffy2
Snuffy2 merged commit 71c736c into custom-components:main Sep 7, 2026
10 checks passed
@Snuffy2
Snuffy2 deleted the chore/standardize-dependabot-auto-merge-20260905 branch September 7, 2026 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant