From b2f05ff4f71f0cc32fe918515c602172be68f267 Mon Sep 17 00:00:00 2001 From: Excellencedev Date: Sat, 20 Dec 2025 06:19:38 +0100 Subject: [PATCH] fix test --- tests/integration/actions_job_token_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/integration/actions_job_token_test.go b/tests/integration/actions_job_token_test.go index 95bfe112ad..71ca5218bc 100644 --- a/tests/integration/actions_job_token_test.go +++ b/tests/integration/actions_job_token_test.go @@ -90,6 +90,14 @@ func TestActionsJobTokenAccessLFS(t *testing.T) { task.RepoID = repository.ID err := db.Insert(t.Context(), task) require.NoError(t, err) + + // Enable Actions unit for the repository + err = db.Insert(t.Context(), &repo_model.RepoUnit{ + RepoID: repository.ID, + Type: unit_model.TypeActions, + Config: &repo_model.ActionsConfig{}, + }) + require.NoError(t, err) session := emptyTestSession(t) httpContext := APITestContext{ Session: session,