Skip to content

Declare Dependabot alerts and security updates, and release 0.3.0 - #1

Merged
byjg merged 1 commit into
masterfrom
dependabot-settings
Oct 25, 2026
Merged

byjg merged 1 commit into
masterfrom
dependabot-settings

Conversation

@byjg

@byjg byjg commented Oct 25, 2026

Copy link
Copy Markdown
Owner

What

An entry in the configuration can now carry a dependabot block:

dependabot:
  alerts: true            # RepositoryVulnerabilityAlerts
  security_updates: true  # RepositoryDependabotSecurityUpdates

Both are repository settings, so a repository gets CVE alerts and fix pull requests without a .github/dependabot.yml (which only drives version updates).

Behaviour

  • A key left out is not managed; GitHub keeps what the repository has.
  • An unknown key aborts the run (DEPENDABOT_KEYS), as branch_protection does.
  • security_updates: true without alerts: true aborts the run, checked after the entries of a repository are merged, since GitHub refuses it.
  • Security updates depend on the alerts resource, so they are declared after it.
  • No import step: creating either resource applies the setting.
  • Removing the block turns the settings off on GitHub (the provider's delete calls the disable endpoints).

Other changes

  • pulumi-github>=6.13.0: the first release with RepositoryVulnerabilityAlerts (6.12.2 does not have it).
  • Version 0.3.0, README section ### dependabot.

Checked

  • ruff check, ruff format --check, mypy ghfleet: clean.
  • apply() under Pulumi mocks: the resources are declared per repository, a repository getting alerts from one entry and security_updates from another gets both, and both error cases abort with their message.

An entry can now carry a `dependabot` block with two repository settings, so
no dependabot.yml is needed:

- `alerts` declares RepositoryVulnerabilityAlerts: alerts for dependencies
  with a known vulnerability.
- `security_updates` declares RepositoryDependabotSecurityUpdates: a pull
  request when one of them has a fix. It is declared after the alerts it
  depends on.

A key left out is not managed. An unknown key aborts the run, and so does
`security_updates: true` without `alerts: true` once the entries of a
repository are merged, since GitHub refuses it. Removing the block turns the
settings off on GitHub.

pulumi-github >= 6.13.0 is required: the first release with
RepositoryVulnerabilityAlerts.
@byjg
byjg merged commit 5b0fe69 into master Oct 25, 2026
3 checks passed
@byjg
byjg deleted the dependabot-settings branch October 25, 2026 13:02
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