docs(actions): fix yaml code block formatting
Signed-off-by: Siddhi Khandelwal <siddhi.200727@gmail.com>
This commit is contained in:
@@ -30,7 +30,9 @@ This naming convention ensures that action names are globally unique across all
|
||||
|
||||
## Configuration
|
||||
|
||||
The Actions Service can be configured to control which plugins' actions are available:
|
||||
### Restricting action sources by plugin
|
||||
|
||||
The `pluginSources` configuration limits which plugins are allowed to register actions.
|
||||
|
||||
```yaml
|
||||
backend:
|
||||
@@ -39,15 +41,6 @@ backend:
|
||||
- catalog
|
||||
```
|
||||
|
||||
### Restricting action sources by plugin
|
||||
|
||||
The `pluginSources` configuration limits which plugins are allowed to register actions.
|
||||
|
||||
````yaml
|
||||
backend:
|
||||
actions:
|
||||
pluginSources:
|
||||
- catalog
|
||||
### Filtering actions
|
||||
|
||||
In addition to plugin-level restrictions, the Actions Service supports filtering actions using include and exclude rules. This allows fine-grained control over which actions are exposed or runnable in a Backstage instance.
|
||||
@@ -60,12 +53,17 @@ backend:
|
||||
filter:
|
||||
include:
|
||||
- 'catalog.*'
|
||||
#### Exclude specific actions
|
||||
```
|
||||
|
||||
#### Exclude specific actionspwd
|
||||
|
||||
```yaml
|
||||
backend:
|
||||
actions:
|
||||
filter:
|
||||
exclude:
|
||||
- 'scaffolder.internal.*'
|
||||
```
|
||||
|
||||
## Using the Service
|
||||
|
||||
@@ -103,7 +101,7 @@ export async function listAvailableActions(
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
````
|
||||
```
|
||||
|
||||
### Invoking an Action
|
||||
|
||||
|
||||
Reference in New Issue
Block a user