Expose both types of scaffolder permissions in metadata endpoint (#17705)
* Expose both types of scaffolder permissions in metadata endpoint Signed-off-by: Joon Park <joonp@spotify.com> * Fix typo in changeset Signed-off-by: Joon Park <joonp@spotify.com> * Change both bumps to minor Co-authored-by: Ben Lambert <blam@spotify.com> Signed-off-by: Joon Park <joonp@spotify.com> --------- Signed-off-by: Joon Park <joonp@spotify.com> Co-authored-by: Ben Lambert <blam@spotify.com>
This commit is contained in:
@@ -14,12 +14,18 @@ export const RESOURCE_TYPE_SCAFFOLDER_ACTION = 'scaffolder-action';
|
||||
// @alpha
|
||||
export const RESOURCE_TYPE_SCAFFOLDER_TEMPLATE = 'scaffolder-template';
|
||||
|
||||
// @alpha
|
||||
export const scaffolderActionPermissions: ResourcePermission<'scaffolder-action'>[];
|
||||
|
||||
// @alpha
|
||||
export const scaffolderPermissions: (
|
||||
| ResourcePermission<'scaffolder-action'>
|
||||
| ResourcePermission<'scaffolder-template'>
|
||||
)[];
|
||||
|
||||
// @alpha
|
||||
export const scaffolderTemplatePermissions: ResourcePermission<'scaffolder-template'>[];
|
||||
|
||||
// @alpha
|
||||
export const templateParameterReadPermission: ResourcePermission<'scaffolder-template'>;
|
||||
|
||||
|
||||
@@ -87,3 +87,18 @@ export const scaffolderPermissions = [
|
||||
templateParameterReadPermission,
|
||||
templateStepReadPermission,
|
||||
];
|
||||
|
||||
/**
|
||||
* List of the scaffolder permissions that are associated with template steps and parameters.
|
||||
* @alpha
|
||||
*/
|
||||
export const scaffolderTemplatePermissions = [
|
||||
templateParameterReadPermission,
|
||||
templateStepReadPermission,
|
||||
];
|
||||
|
||||
/**
|
||||
* List of the scaffolder permissions that are associated with scaffolder actions.
|
||||
* @alpha
|
||||
*/
|
||||
export const scaffolderActionPermissions = [actionExecutePermission];
|
||||
|
||||
Reference in New Issue
Block a user