feat(alias): add check alias functionality (#2971)

This commit is contained in:
Sergio Garcia
2023-10-31 11:25:54 +01:00
committed by GitHub
parent 57c3183b15
commit fa7968cb1b
13 changed files with 73 additions and 10 deletions

View File

@@ -0,0 +1,20 @@
# Check Aliases
Prowler allows you to use aliases for the checks. You only have to add the `CheckAliases` key to the check's metadata with a list of the aliases:
"Provider": "<provider>",
"CheckID": "<check_id>",
"CheckTitle": "<check_title>",
"CheckAliases": [
"<check_alias_1>"
"<check_alias_2>",
...
],
...
Then, you can execute the check either with its check ID or with one of the previous aliases:
```console
prowler <provider> -c/--checks <check_alias_1>
Using alias <check_alias_1> for check <check_id>...
```