Skip to content

Commit

Permalink
Change entry point for security command
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoretti committed Oct 25, 2023
1 parent 3422beb commit a16d785
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/actions/security-issues/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -54,12 +54,12 @@ 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
env:
GH_TOKEN: ${{ inputs.github-token }}
shell: bash
run: |
security issue create < issues.jsonl
tbx security issue create < issues.jsonl
7 changes: 6 additions & 1 deletion exasol/toolbox/tools/tbx.py
Original file line number Diff line number Diff line change
@@ -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()
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,3 @@ ignore_errors = true

[tool.poetry.scripts]
tbx = 'exasol.toolbox.tools.tbx:CLI'
security = 'exasol.toolbox.tools.security:CLI'

0 comments on commit a16d785

Please sign in to comment.