From 3772ac42c98ddb2496dc498519562caba161824a Mon Sep 17 00:00:00 2001
From: benniekiss <benniekiss@noreply.code.forgejo.org>
Date: Fri, 5 Jul 2024 18:55:54 +0000
Subject: [PATCH] authenticate testuser via api to create private repo

---
 .forgejo/workflows/integration.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.forgejo/workflows/integration.yml b/.forgejo/workflows/integration.yml
index e273f06..166035b 100644
--- a/.forgejo/workflows/integration.yml
+++ b/.forgejo/workflows/integration.yml
@@ -24,7 +24,7 @@ jobs:
       - name: testdata/upload-download-private
         run: |
           export FORGEJO_RUNNER_LOGS="${{ steps.forgejo.outputs.runner-logs }}"
-          curl the API with the token to switch testuser to being private which should make it so the line below will create a private repo instead of a public one and run the action from it
+          curl http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }}/api/v1/user
           forgejo-test-helper.sh run_workflow testdata/upload-download http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser upload-download-private forgejo-release "${{ steps.forgejo.outputs.token }}"   
 
       - name: testdata/nested-upload-download