Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/image-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
docker build -f frontend/Dockerfile -t local/frontend:${{ github.sha }} .

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.28.0
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
with:
image-ref: 'local/frontend:${{ github.sha }}'
format: 'sarif'
Expand All @@ -73,7 +73,7 @@ jobs:
docker build -f backend/Dockerfile -t local/backend:${{ github.sha }} backend

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.28.0
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
with:
image-ref: 'local/backend:${{ github.sha }}'
format: 'sarif'
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/components/WecsTopology.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,12 @@
const dagreNode = dagreGraph.node(node.id);
return dagreNode
? {
...node,
position: {
x: dagreNode.x - NODE_WIDTH / 2 + 50,
y: dagreNode.y - NODE_HEIGHT / 2 + 50,
},
}
...node,
position: {
x: dagreNode.x - NODE_WIDTH / 2 + 50,
y: dagreNode.y - NODE_HEIGHT / 2 + 50,
},
}
: node;
});

Expand Down Expand Up @@ -606,7 +606,7 @@
}))
);
}
}, [edgeType]);

Check warning on line 609 in frontend/src/components/WecsTopology.tsx

View workflow job for this annotation

GitHub Actions / Frontend Checks

React Hook useEffect has a missing dependency: 'edges.length'. Either include it or remove the dependency array

Check warning on line 609 in frontend/src/components/WecsTopology.tsx

View workflow job for this annotation

GitHub Actions / Frontend Checks

React Hook useEffect has a missing dependency: 'edges.length'. Either include it or remove the dependency array

Check warning on line 609 in frontend/src/components/WecsTopology.tsx

View workflow job for this annotation

GitHub Actions / Frontend Checks

React Hook useEffect has a missing dependency: 'edges.length'. Either include it or remove the dependency array

Check warning on line 609 in frontend/src/components/WecsTopology.tsx

View workflow job for this annotation

GitHub Actions / Frontend Checks

React Hook useEffect has a missing dependency: 'edges.length'. Either include it or remove the dependency array

const { updateEdgeStyles } = useTreeViewEdges({ theme: theme as 'light' | 'dark' });

Expand Down Expand Up @@ -1303,7 +1303,7 @@
prevNodes.current = layoutedNodes;
setIsTransforming(false);
},
[createNode, fetchAllClusterTimestamps]

Check warning on line 1306 in frontend/src/components/WecsTopology.tsx

View workflow job for this annotation

GitHub Actions / Frontend Checks

React Hook useCallback has missing dependencies: 'edges' and 'nodes'. Either include them or remove the dependency array

Check warning on line 1306 in frontend/src/components/WecsTopology.tsx

View workflow job for this annotation

GitHub Actions / Frontend Checks

React Hook useCallback has missing dependencies: 'edges' and 'nodes'. Either include them or remove the dependency array

Check warning on line 1306 in frontend/src/components/WecsTopology.tsx

View workflow job for this annotation

GitHub Actions / Frontend Checks

React Hook useCallback has missing dependencies: 'edges' and 'nodes'. Either include them or remove the dependency array

Check warning on line 1306 in frontend/src/components/WecsTopology.tsx

View workflow job for this annotation

GitHub Actions / Frontend Checks

React Hook useCallback has missing dependencies: 'edges' and 'nodes'. Either include them or remove the dependency array
);

// Memoize the data processing to avoid unnecessary re-renders
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/utils/permissionUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function hasAllPermissions(
userPermissions: PermissionsMap,
requirements: PermissionRequirement[]
): boolean {
return requirements.every((req) => hasPermission(userPermissions, req.component, req.level));
return requirements.every(req => hasPermission(userPermissions, req.component, req.level));
}

/**
Expand All @@ -53,5 +53,5 @@ export function hasAnyPermission(
userPermissions: PermissionsMap,
requirements: PermissionRequirement[]
): boolean {
return requirements.some((req) => hasPermission(userPermissions, req.component, req.level));
return requirements.some(req => hasPermission(userPermissions, req.component, req.level));
}
Loading