chore: moving the catalog register to use backstageToken instead from the secrets
Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user