Skip to content

Commit

Permalink
Merge pull request #174 from bcgov/security-insights-demo
Browse files Browse the repository at this point in the history
Install and enable security insights plugin
  • Loading branch information
sheaphillips authored Sep 6, 2024
2 parents 3c54052 + 5d8cd7c commit 26e77a0
Show file tree
Hide file tree
Showing 3 changed files with 247 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"@material-ui/icons": "^4.11.3",
"@material-ui/lab": "^4.0.0-alpha.61",
"@material-ui/styles": "^4.11.5",
"@roadiehq/backstage-plugin-security-insights": "^2.3.17",
"@snowplow/browser-plugin-link-click-tracking": "^3.15.0",
"@snowplow/browser-plugin-site-tracking": "^3.23.1",
"@snowplow/browser-tracker": "^3.15.0",
Expand Down
16 changes: 16 additions & 0 deletions packages/app/src/components/catalog/EntityPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ import {TechDocsAddons} from '@backstage/plugin-techdocs-react';
import {ReportIssue} from '@backstage/plugin-techdocs-module-addons-contrib';
import {Mermaid} from "backstage-plugin-techdocs-addon-mermaid";

import { EntitySecurityInsightsContent } from '@roadiehq/backstage-plugin-security-insights';



const techdocsContent = (
<EntityTechdocsContent>
<TechDocsAddons>
Expand Down Expand Up @@ -177,6 +181,12 @@ const serviceEntityPage = (
<EntityLayout.Route path="/docs" title="Docs">
{techdocsContent}
</EntityLayout.Route>

<EntityLayout.Route
path="/security-insights"
title="Security Insights">
<EntitySecurityInsightsContent />
</EntityLayout.Route>
</EntityLayout>
);

Expand Down Expand Up @@ -204,6 +214,12 @@ const websiteEntityPage = (
<EntityLayout.Route path="/docs" title="Docs">
{techdocsContent}
</EntityLayout.Route>

<EntityLayout.Route
path="/security-insights"
title="Security Insights">
<EntitySecurityInsightsContent />
</EntityLayout.Route>
</EntityLayout>
);

Expand Down
Loading

0 comments on commit 26e77a0

Please sign in to comment.