From c0fb604c639b7f639599fa4d25d17668de2538fe Mon Sep 17 00:00:00 2001 From: Nara Kasbergen Date: Fri, 20 Dec 2024 17:54:19 +0100 Subject: [PATCH 1/2] Revert "fix: use full repo name for Dependabot security updates" This reverts commit 508d0d9b83825af9ac429e98993ee9479f70fb9c. --- lib/repository.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/repository.ts b/lib/repository.ts index 817d935..74203fa 100644 --- a/lib/repository.ts +++ b/lib/repository.ts @@ -169,7 +169,7 @@ export class GithubRepository extends Construct { if (!name.endsWith("-go")) { new RepositoryDependabotSecurityUpdates(this, "dependabot-security", { - repository: this.resource.fullName, + repository: this.resource.name, enabled: true, }); } @@ -205,7 +205,7 @@ export class GithubRepositoryFromExistingRepository extends Construct { if (!config.repositoryName.endsWith("-go")) { new RepositoryDependabotSecurityUpdates(this, "dependabot-security", { - repository: this.resource.fullName, + repository: this.resource.name, enabled: true, }); } From 77c25e9fc2550c6ce510a70f4fc506f06bdce859 Mon Sep 17 00:00:00 2001 From: Nara Kasbergen Date: Fri, 20 Dec 2024 17:54:39 +0100 Subject: [PATCH 2/2] Revert "chore: enable Dependabot security updates (#342)" This reverts commit a860e4a461bb40df1ff5501185cda4687acc1f60. --- lib/repository.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/repository.ts b/lib/repository.ts index 74203fa..f5d10df 100644 --- a/lib/repository.ts +++ b/lib/repository.ts @@ -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 { @@ -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.name, - enabled: true, - }); - } } addSecret(name: string) { @@ -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.name, - enabled: true, - }); - } } }