def housekeeping_features()

in asfyaml/feature/github/housekeeping.py [0:0]


def housekeeping_features(self: ASFGitHubFeature):
    dependabot_alerts = self.yaml.get("dependabot_alerts", None)
    if dependabot_alerts is not None and not self.noop("dependabot_alerts"):
        if dependabot_alerts is True:
            self.ghrepo.enable_vulnerability_alert()
        elif dependabot_alerts is False:
            self.ghrepo.disable_vulnerability_alert()

    dependabot_updates = self.yaml.get("dependabot_updates", None)
    if dependabot_updates is not None and not self.noop("dependabot_updates"):
        if dependabot_updates is True:
            self.ghrepo.enable_automated_security_fixes()
        elif dependabot_updates is False:
            self.ghrepo.disable_automated_security_fixes()