Repository navigation
Declare Dependabot alerts and security updates, and release 0.3.0 - #1
Merged
Merged
Conversation
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.
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.
What
An entry in the configuration can now carry a
dependabotblock: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
DEPENDABOT_KEYS), asbranch_protectiondoes.security_updates: truewithoutalerts: trueaborts the run, checked after the entries of a repository are merged, since GitHub refuses it.Other changes
pulumi-github>=6.13.0: the first release withRepositoryVulnerabilityAlerts(6.12.2 does not have it).### dependabot.Checked
ruff check,ruff format --check,mypy ghfleet: clean.apply()under Pulumi mocks: the resources are declared per repository, a repository gettingalertsfrom one entry andsecurity_updatesfrom another gets both, and both error cases abort with their message.