Merge pull request #2490 from spotify/freben/ghe

feat(catalog-backend): support GHE and other GitHub providers
This commit is contained in:
Fredrik Adelöw
2020-09-17 10:51:48 +02:00
committed by GitHub
5 changed files with 298 additions and 174 deletions
@@ -61,6 +61,25 @@ scaffolder:
visibility: public # or 'internal' or 'private'
catalog:
rules:
- allow: [Component, API, Group, Template, Location]
processors:
github:
privateToken:
$secret:
env: GITHUB_PRIVATE_TOKEN
githubApi:
providers:
- target: https://github.com
token:
$secret:
env: GITHUB_PRIVATE_TOKEN
# Example for how to add your GitHub Enterprise instance:
# - target: https://ghe.example.net
# apiBaseUrl: https://ghe.example.net/api/v3
# token:
# $secret:
# env: GHE_PRIVATE_TOKEN
locations:
# Backstage example components
- type: github