diff --git a/.github/actions/security-issues/action.yml b/.github/actions/security-issues/action.yml index fc80511eb..d5cf069aa 100644 --- a/.github/actions/security-issues/action.yml +++ b/.github/actions/security-issues/action.yml @@ -45,7 +45,7 @@ runs: - name: Convert Report To Common Input Format shell: bash run: | - security issue convert ${{inputs.format}} < input > cves.jsonl + tbx security issue convert ${{inputs.format}} < input > cves.jsonl # Remove irrelevant e.g. if issue already exists or existed # Info: a general ignore list could be added here to @@ -54,7 +54,7 @@ runs: GH_TOKEN: ${{ inputs.github-token }} shell: bash run: | - security issue filter github < cves.jsonl > issues.jsonl + tbx security issue filter github < cves.jsonl > issues.jsonl # Info: alternative issue tracker(s) could be added in the future - name: Create Issues @@ -62,4 +62,4 @@ runs: GH_TOKEN: ${{ inputs.github-token }} shell: bash run: | - security issue create < issues.jsonl + tbx security issue create < issues.jsonl diff --git a/exasol/toolbox/tools/tbx.py b/exasol/toolbox/tools/tbx.py index a4adeb604..7b48a9006 100644 --- a/exasol/toolbox/tools/tbx.py +++ b/exasol/toolbox/tools/tbx.py @@ -1,9 +1,14 @@ import typer -from exasol.toolbox.tools import workflow +from exasol.toolbox.tools import ( + security, + workflow, +) CLI = typer.Typer() CLI.add_typer(workflow.CLI, name="workflow") +CLI.add_typer(security.CLI, name="security") + if __name__ == "__main__": CLI() diff --git a/pyproject.toml b/pyproject.toml index 7292cdbd7..cf2a0b3c3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -102,4 +102,3 @@ ignore_errors = true [tool.poetry.scripts] tbx = 'exasol.toolbox.tools.tbx:CLI' -security = 'exasol.toolbox.tools.security:CLI'