gh integration: actions + oauth
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
"lint": "backstage-cli package lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@backstage-community/plugin-github-actions": "^0.6.16",
|
||||
"@backstage/app-defaults": "^1.5.4",
|
||||
"@backstage/catalog-model": "^1.4.5",
|
||||
"@backstage/cli": "^0.26.3",
|
||||
@@ -51,10 +52,10 @@
|
||||
"devDependencies": {
|
||||
"@backstage/test-utils": "^1.5.4",
|
||||
"@playwright/test": "^1.32.3",
|
||||
"@testing-library/dom": "^9.0.0",
|
||||
"@testing-library/jest-dom": "^6.0.0",
|
||||
"@testing-library/react": "^14.0.0",
|
||||
"@testing-library/user-event": "^14.0.0",
|
||||
"@testing-library/dom": "^9.0.0",
|
||||
"@types/react-dom": "*",
|
||||
"cross-env": "^7.0.0"
|
||||
},
|
||||
|
||||
@@ -37,6 +37,8 @@ import { AppRouter, FlatRoutes } from '@backstage/core-app-api';
|
||||
import { CatalogGraphPage } from '@backstage/plugin-catalog-graph';
|
||||
import { RequirePermission } from '@backstage/plugin-permission-react';
|
||||
import { catalogEntityCreatePermission } from '@backstage/plugin-catalog-common/alpha';
|
||||
import { githubAuthApiRef } from '@backstage/core-plugin-api';
|
||||
|
||||
|
||||
const app = createApp({
|
||||
apis,
|
||||
@@ -58,7 +60,19 @@ const app = createApp({
|
||||
});
|
||||
},
|
||||
components: {
|
||||
SignInPage: props => <SignInPage {...props} auto providers={['guest']} />,
|
||||
SignInPage: props => (
|
||||
<SignInPage
|
||||
{...props}
|
||||
auto
|
||||
provider={{
|
||||
id: 'github-auth-provider',
|
||||
title: 'GitHub',
|
||||
message: 'Sign in using GitHub',
|
||||
apiRef: githubAuthApiRef,
|
||||
}}
|
||||
/>
|
||||
),
|
||||
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -71,9 +71,8 @@ const cicdContent = (
|
||||
// You can for example enforce that all components of type 'service' should use GitHubActions
|
||||
<EntitySwitch>
|
||||
<EntitySwitch.Case if={isGithubActionsAvailable}>
|
||||
<EntityGithubActionsContent />
|
||||
<EntityGithubActionsContent view='cards' />
|
||||
</EntitySwitch.Case>
|
||||
|
||||
<EntitySwitch.Case>
|
||||
<EmptyState
|
||||
title="No CI/CD available for this entity"
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
"@backstage/plugin-auth-backend-module-guest-provider": "^0.1.3",
|
||||
"@backstage/plugin-auth-node": "^0.4.12",
|
||||
"@backstage/plugin-catalog-backend": "^1.21.1",
|
||||
"@backstage/plugin-catalog-backend-module-github": "^0.6.0",
|
||||
"@backstage/plugin-catalog-backend-module-scaffolder-entity-model": "^0.1.15",
|
||||
"@backstage/plugin-permission-backend": "^0.5.41",
|
||||
"@backstage/plugin-permission-backend-module-allow-all-policy": "^0.1.14",
|
||||
|
||||
Reference in New Issue
Block a user