# Git defender error when creating a project

**URL:** <https://discourse.nodered.org/t/git-defender-error-when-creating-a-project/78431>\
**Category:** General\
**Created:** [15 May 2023 11:24 UTC](https://discourse.nodered.org/t/git-defender-error-when-creating-a-project/78431 "2023-05-15T11:24:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chainhead](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chainhead/32/40800_2.png) [@chainhead](https://discourse.nodered.org/u/chainhead)\
**Post date:** [15 May 2023 11:24 UTC](https://discourse.nodered.org/t/git-defender-error-when-creating-a-project/78431/1 "2023-05-15T11:24:35Z")

</div>

My organization requires me to run `git defender` for committing changes into our GitHub organization. Even after running this command, I am unable to create a new project from Node-RED. Here are the steps I am following. Can you please advise what am I missing?

1. Create a new repository in GitHub.
2. Clone the repository on my laptop.
3. Run `git defender` in the folder.
4. Launch Node-RED with `node-red`.
5. Follow prompts to create a new project.

The following error happens.

```bash
An unexpected error occurred:

Code Defender: Repository has not been setup with git defender Run git defender --setup 

```

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [15 May 2023 12:27 UTC](https://discourse.nodered.org/t/git-defender-error-when-creating-a-project/78431/2 "2023-05-15T12:27:07Z")

</div>

That error seems pretty clear to me. Have you don't what it says?

---

<div class="post-metadata">

**Author:** ![chainhead](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chainhead/32/40800_2.png) [@chainhead](https://discourse.nodered.org/u/chainhead)\
**Post date:** [17 May 2023 07:55 UTC](https://discourse.nodered.org/t/git-defender-error-when-creating-a-project/78431/3 "2023-05-17T07:55:55Z")

</div>

Yes, I have don't what it says.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [17 May 2023 11:30 UTC](https://discourse.nodered.org/t/git-defender-error-when-creating-a-project/78431/4 "2023-05-17T11:30:47Z")

</div>

OK, so in that case, I would say that you need to speak to your defender administrators as I suspect that your repo needs to be added to an allow list.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [16 July 2023 11:30 UTC](https://discourse.nodered.org/t/git-defender-error-when-creating-a-project/78431/5 "2023-07-16T11:30:59Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
