Commit d8bb191

mo khan <mo@mokhan.ca>
2025-04-02 23:51:59
chore: use cedar cli to fix entities.json
1 parent 678aaa9
Changed files (2)
pkg/policies/entities.json
@@ -27,169 +27,172 @@
       "type": "User",
       "id": "1"
     },
+    "attrs": {},
     "parents": []
   },
   {
     "uid": {
       "type": "Organization",
-      "id": "1",
-      "attrs": {
-        "name": "default"
-      }
-    }
+      "id": "1"
+    },
+    "attrs": {
+      "name": "default"
+    },
+    "parents": []
   },
   {
     "uid": {
       "type": "Organization",
-      "id": "2",
-      "attrs": {
-        "name": "gitlab"
-      }
-    }
+      "id": "2"
+    },
+    "attrs": {
+      "name": "gitlab"
+    },
+    "parents": []
   },
   {
     "uid": {
       "type": "Group",
-      "id": "1",
-      "attrs": {
-        "name": "A"
-      },
-      "parents": [
-        {
-          "type": "Organization",
-          "id": "1"
-        }
-      ]
-    }
+      "id": "1"
+    },
+    "attrs": {
+      "name": "A"
+    },
+    "parents": [
+      {
+        "type": "Organization",
+        "id": "1"
+      }
+    ]
   },
   {
     "uid": {
       "type": "Group",
-      "id": "2",
-      "attrs": {
-        "name": "B"
-      },
-      "parents": [
-        {
-          "type": "Organization",
-          "id": "1"
-        }
-      ]
-    }
+      "id": "2"
+    },
+    "attrs": {
+      "name": "B"
+    },
+    "parents": [
+      {
+        "type": "Organization",
+        "id": "1"
+      }
+    ]
   },
   {
     "uid": {
       "type": "Group",
-      "id": "3",
-      "attrs": {
-        "name": "gitlab-org"
-      },
-      "parents": [
-        {
-          "type": "Organization",
-          "id": "2"
-        }
-      ]
-    }
+      "id": "3"
+    },
+    "attrs": {
+      "name": "gitlab-org"
+    },
+    "parents": [
+      {
+        "type": "Organization",
+        "id": "2"
+      }
+    ]
   },
   {
     "uid": {
       "type": "Group",
-      "id": "4",
-      "attrs": {
-        "name": "gitlab-com"
-      },
-      "parents": [
-        {
-          "type": "Organization",
-          "id": "2"
-        }
-      ]
-    }
+      "id": "4"
+    },
+    "attrs": {
+      "name": "gitlab-com"
+    },
+    "parents": [
+      {
+        "type": "Organization",
+        "id": "2"
+      }
+    ]
   },
   {
     "uid": {
       "type": "Group",
-      "id": "5",
-      "attrs": {
-        "name": "gl-security"
+      "id": "5"
+    },
+    "attrs": {
+      "name": "gl-security"
+    },
+    "parents": [
+      {
+        "type": "Organization",
+        "id": "2"
       },
-      "parents": [
-        {
-          "type": "Organization",
-          "id": "2"
-        },
-        {
-          "type": "Group",
-          "id": "4"
-        }
-      ]
-    }
+      {
+        "type": "Group",
+        "id": "4"
+      }
+    ]
   },
   {
     "uid": {
       "type": "Group",
-      "id": "6",
-      "attrs": {
-        "name": "test-projects"
+      "id": "6"
+    },
+    "attrs": {
+      "name": "test-projects"
+    },
+    "parents": [
+      {
+        "type": "Organization",
+        "id": "2"
       },
-      "parents": [
-        {
-          "type": "Organization",
-          "id": "2"
-        },
-        {
-          "type": "Group",
-          "id": "5"
-        }
-      ]
-    }
+      {
+        "type": "Group",
+        "id": "5"
+      }
+    ]
   },
   {
     "uid": {
       "type": "Group",
-      "id": "7",
-      "attrs": {
-        "name": "support"
+      "id": "7"
+    },
+    "attrs": {
+      "name": "support"
+    },
+    "parents": [
+      {
+        "type": "Organization",
+        "id": "2"
       },
-      "parents": [
-        {
-          "type": "Organization",
-          "id": "2"
-        },
-        {
-          "type": "Group",
-          "id": "4"
-        }
-      ]
-    }
+      {
+        "type": "Group",
+        "id": "4"
+      }
+    ]
   },
   {
     "uid": {
       "type": "Group",
-      "id": "8",
-      "attrs": {
-        "name": "toolbox"
+      "id": "8"
+    },
+    "attrs": {
+      "name": "toolbox"
+    },
+    "parents": [
+      {
+        "type": "Organization",
+        "id": "2"
       },
-      "parents": [
-        {
-          "type": "Organization",
-          "id": "2"
-        },
-        {
-          "type": "Group",
-          "id": "7"
-        }
-      ]
-    }
+      {
+        "type": "Group",
+        "id": "7"
+      }
+    ]
   },
   {
     "uid": {
       "type": "Project",
-      "id": "1",
-      "attrs": {
-        "name": "A1"
-      }
+      "id": "1"
+    },
+    "attrs": {
+      "name": "A1"
     },
     "parents": [
       {
@@ -201,10 +204,10 @@
   {
     "uid": {
       "type": "Project",
-      "id": "2",
-      "attrs": {
-        "name": "B1"
-      }
+      "id": "2"
+    },
+    "attrs": {
+      "name": "B1"
     },
     "parents": [
       {
@@ -216,10 +219,10 @@
   {
     "uid": {
       "type": "Project",
-      "id": "3",
-      "attrs": {
-        "name": "gitlab"
-      }
+      "id": "3"
+    },
+    "attrs": {
+      "name": "gitlab"
     },
     "parents": [
       {
@@ -231,10 +234,10 @@
   {
     "uid": {
       "type": "Project",
-      "id": "4",
-      "attrs": {
-        "name": "eicar-test-project"
-      }
+      "id": "4"
+    },
+    "attrs": {
+      "name": "eicar-test-project"
     },
     "parents": [
       {
@@ -246,10 +249,10 @@
   {
     "uid": {
       "type": "Project",
-      "id": "5",
-      "attrs": {
-        "name": "disclosures"
-      }
+      "id": "5"
+    },
+    "attrs": {
+      "name": "disclosures"
     },
     "parents": [
       {
@@ -261,10 +264,10 @@
   {
     "uid": {
       "type": "Project",
-      "id": "6",
-      "attrs": {
-        "name": "changelog-parser"
-      }
+      "id": "6"
+    },
+    "attrs": {
+      "name": "changelog-parser"
     },
     "parents": [
       {
@@ -276,10 +279,10 @@
   {
     "uid": {
       "type": "Project",
-      "id": "7",
-      "attrs": {
-        "name": "handbook"
-      }
+      "id": "7"
+    },
+    "attrs": {
+      "name": "handbook"
     },
     "parents": [
       {
@@ -291,10 +294,10 @@
   {
     "uid": {
       "type": "Project",
-      "id": "8",
-      "attrs": {
-        "name": "www-gitlab-com"
-      }
+      "id": "8"
+    },
+    "attrs": {
+      "name": "www-gitlab-com"
     },
     "parents": [
       {
.tool-versions
@@ -1,3 +1,5 @@
+cargo latest
 golang 1.24.0
 protoc 3.19.6
 ruby 3.4.2
+rust stable