diff --git a/app-config.yaml b/app-config.yaml index cc50057..59fe1df 100644 --- a/app-config.yaml +++ b/app-config.yaml @@ -82,6 +82,10 @@ proxy: headers: User-Agent: tech-services/backstage-plugin/1.0 Authorization: token ${SNYK_TOKEN} + '/sonarqube': + target: https://sonarcloud.io/api + allowedMethods: ['GET'] + auth: "${SONARCLOUD_TOKEN}:" catalog: # providers: diff --git a/packages/app/package.json b/packages/app/package.json index 8ceb5ad..754aba1 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -19,6 +19,7 @@ "cy:run": "cypress run --browser chrome" }, "dependencies": { + "@backstage-community/plugin-sonarqube": "^0.8.0", "@backstage/app-defaults": "^1.3.1", "@backstage/catalog-model": "^1.3.0", "@backstage/cli": "^0.22.7", @@ -52,10 +53,10 @@ "history": "^5.0.0", "react": "^17.0.2", "react-dom": "^17.0.2", + "react-idle-timer": "^5.7.2", "react-router": "6.11.2", "react-router-dom": "6.11.2", - "react-use": "^17.2.4", - "react-idle-timer": "^5.7.2" + "react-use": "^17.2.4" }, "devDependencies": { "@backstage/test-utils": "^1.3.1", diff --git a/packages/app/src/components/catalog/EntityPage.tsx b/packages/app/src/components/catalog/EntityPage.tsx index 793b8b5..3e6e1a5 100644 --- a/packages/app/src/components/catalog/EntityPage.tsx +++ b/packages/app/src/components/catalog/EntityPage.tsx @@ -61,7 +61,7 @@ import { EntityGithubPullRequestsOverviewCard, } from '@roadiehq/backstage-plugin-github-pull-requests'; import { SnykOverview, EntitySnykContent, isSnykAvailable } from 'backstage-plugin-snyk'; - +import { EntitySonarQubeCard } from '@backstage-community/plugin-sonarqube'; const techdocsContent = ( @@ -185,6 +185,9 @@ const serviceEntityPage = ( + + +