chore: moving the catalog register to use backstageToken instead from the secrets

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-01-19 17:13:59 +01:00
parent f999b4063a
commit d19c88a9e4
@@ -110,7 +110,9 @@ export function createCatalogRegisterAction(options: {
type: 'url',
target: catalogInfoUrl,
},
ctx.token ? { token: ctx.token } : {},
ctx.secrets?.backstageToken
? { token: ctx.secrets.backstageToken }
: {},
);
try {
@@ -120,7 +122,9 @@ export function createCatalogRegisterAction(options: {
type: 'url',
target: catalogInfoUrl,
},
ctx.token ? { token: ctx.token } : {},
ctx.secrets?.backstageToken
? { token: ctx.secrets.backstageToken }
: {},
);
if (result.entities.length > 0) {