Skip to content

Commit

Permalink
revert: remove the addition of Dependabot security (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiehan authored Dec 20, 2024
1 parent 508d0d9 commit 942a663
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { DataGithubRepository } from "@cdktf/provider-github/lib/data-github-rep
import { IssueLabel } from "@cdktf/provider-github/lib/issue-label";
import { BranchProtection } from "@cdktf/provider-github/lib/branch-protection";
import { TeamRepository } from "@cdktf/provider-github/lib/team-repository";
import { RepositoryDependabotSecurityUpdates } from "@cdktf/provider-github/lib/repository-dependabot-security-updates";
import { RepositoryWebhook } from "@cdktf/provider-github/lib/repository-webhook";

export interface ITeam {
Expand Down Expand Up @@ -166,13 +165,6 @@ export class GithubRepository extends Construct {
...config,
repository: this.resource,
});

if (!name.endsWith("-go")) {
new RepositoryDependabotSecurityUpdates(this, "dependabot-security", {
repository: this.resource.fullName,
enabled: true,
});
}
}

addSecret(name: string) {
Expand Down Expand Up @@ -202,12 +194,5 @@ export class GithubRepositoryFromExistingRepository extends Construct {
...config,
repository: this.resource,
});

if (!config.repositoryName.endsWith("-go")) {
new RepositoryDependabotSecurityUpdates(this, "dependabot-security", {
repository: this.resource.fullName,
enabled: true,
});
}
}
}

0 comments on commit 942a663

Please sign in to comment.