From 1ba69231cb0ba5364b0cc0eb8567881cd57e6d21 Mon Sep 17 00:00:00 2001 From: mischa Date: Wed, 6 Dec 2023 19:15:06 +0100 Subject: [PATCH 1/2] fix(Tests): suppress test prefab child NI error when opening the Github project for the first time --- Assets/Mirror/Core/NetworkIdentity.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Assets/Mirror/Core/NetworkIdentity.cs b/Assets/Mirror/Core/NetworkIdentity.cs index 7de3dd7663b..552fc70a2b3 100644 --- a/Assets/Mirror/Core/NetworkIdentity.cs +++ b/Assets/Mirror/Core/NetworkIdentity.cs @@ -375,7 +375,12 @@ void DisallowChildNetworkIdentities() { // always log the next child component so it's easy to fix. // if there are multiple, then after removing it'll log the next. - Debug.LogError($"'{name}' has another NetworkIdentity component on '{identities[1].name}'. There should only be one NetworkIdentity, and it must be on the root object. Please remove the other one."); + // + // ignore test prefabs so users aren't greeted with this error + // when opening Mirror from Github for the first time. + // (hardcoding this is still better than the annoying error) + if (name != "PrefabWithChildrenForClientScene") + Debug.LogError($"'{name}' has another NetworkIdentity component on '{identities[1].name}'. There should only be one NetworkIdentity, and it must be on the root object. Please remove the other one."); } } From a62f26890d8779db8a85fbc03334df2575efd016 Mon Sep 17 00:00:00 2001 From: miwarnec <16416509+miwarnec@users.noreply.github.com> Date: Sat, 14 Nov 2026 08:28:09 +0000 Subject: [PATCH 2/2] Limit workflow cleanup token permissions Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9c10190fccc..3cab48bb028 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -55,6 +55,8 @@ jobs: DeleteOldWorkflowRuns: name: Delete Old Workflow Runs runs-on: ubuntu-latest + permissions: + actions: write steps: - name: Delete workflow runs uses: Mattraks/delete-workflow-runs@v2