From c573fe3cb524915ff21b57b00f317550652c3643 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Rekucki?= Date: Wed, 29 Apr 2026 16:39:38 +0200 Subject: [PATCH] fix: remove actions_repository_access_level from state if repo missing --- github/resource_github_actions_repository_access_level.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/resource_github_actions_repository_access_level.go b/github/resource_github_actions_repository_access_level.go index 5bcf724ecc..4e2968e052 100644 --- a/github/resource_github_actions_repository_access_level.go +++ b/github/resource_github_actions_repository_access_level.go @@ -66,7 +66,7 @@ func resourceGithubActionsRepositoryAccessLevelRead(d *schema.ResourceData, meta actionAccessLevel, _, err := client.Repositories.GetActionsAccessLevel(ctx, owner, repoName) if err != nil { - return err + return deleteResourceOn404AndSwallow304OtherwiseReturnError(err, d, "repository (%s/%s) actions access level", owner, repoName) } _ = d.Set("access_level", actionAccessLevel.GetAccessLevel())