diff --git a/README.md b/README.md index 3fb1e9f..88f11a9 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Did you ever want to search for semgrep rules from the [registry](https://semgre `semgrep-search` allows you to search for languages, categories and severities and outputs a single YAML file that you can use with semgrep. The database powering `semgrep-search` is automatically built continuously and published to ghcr.io through -[oras](https://github.com/oras-project) via [this project](https://github.com/hnzlmnn/sgs-db). +[oras](https://github.com/oras-project) via [this project](https://github.com/hnzlmnn/semgrep-search-db). ## Installation diff --git a/pyproject.toml b/pyproject.toml index c3e2b9d..941fdb8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "semgrep-search" -version = "1.0.1" +version = "1.0.2" description = "A tool to generate a custom Semgrep ruleset from multiple sources" authors = ["Malte Heinzelmann "] readme = "README.md" license = "GPL-3.0-or-later" -homepage = "https://github.com/hnzlmnn/sgs" +homepage = "https://github.com/hnzlmnn/semgrep-search" packages = [{include = "sgs"}] [tool.poetry.scripts] diff --git a/sgs/__init__.py b/sgs/__init__.py index a4eb9eb..4cccf2d 100644 --- a/sgs/__init__.py +++ b/sgs/__init__.py @@ -1,4 +1,4 @@ -# Semgrep-Search (sgs) +# Semgrep-Search # Copyright (C) 2024 Malte Heinzelmann # # This program is free software: you can redistribute it and/or modify diff --git a/sgs/const.py b/sgs/const.py index 6d52844..947feff 100644 --- a/sgs/const.py +++ b/sgs/const.py @@ -1,4 +1,4 @@ -# Semgrep-Search (sgs) +# Semgrep-Search # Copyright (C) 2024 Malte Heinzelmann # # This program is free software: you can redistribute it and/or modify diff --git a/sgs/database.py b/sgs/database.py index 7820c9e..cb72176 100644 --- a/sgs/database.py +++ b/sgs/database.py @@ -1,4 +1,4 @@ -# Semgrep-Search (sgs) +# Semgrep-Search # Copyright (C) 2024 Malte Heinzelmann # # This program is free software: you can redistribute it and/or modify @@ -47,7 +47,7 @@ def load_local() -> Optional[TinyDB]: def update_db() -> Optional[TinyDB]: - files = GhcrProvider().pull(target='hnzlmnn/sgs-db:latest') + files = GhcrProvider().pull(target='hnzlmnn/semgrep-search-db:latest') for file in files: path = Path(file) if path.name == DB_FILENAME: diff --git a/sgs/inspection.py b/sgs/inspection.py index 1655c90..daffd80 100644 --- a/sgs/inspection.py +++ b/sgs/inspection.py @@ -1,4 +1,4 @@ -# Semgrep-Search (sgs) +# Semgrep-Search # Copyright (C) 2024 Malte Heinzelmann # # This program is free software: you can redistribute it and/or modify @@ -83,7 +83,7 @@ def inspect(args: argparse.Namespace, db: TinyDB) -> None: (format_datetime(datetime.datetime.fromisoformat(created_on)), 'blue'), ] info += [ - ' using sgs-db ', + ' using semgrep-search-db ', (f'v{version}', 'green'), ' (', (commit, 'cyan'), diff --git a/sgs/main.py b/sgs/main.py index 1b8a89a..d1d41e3 100644 --- a/sgs/main.py +++ b/sgs/main.py @@ -1,4 +1,4 @@ -# Semgrep-Search (sgs) +# Semgrep-Search # Copyright (C) 2024 Malte Heinzelmann # # This program is free software: you can redistribute it and/or modify diff --git a/sgs/search.py b/sgs/search.py index de950fa..7ce9517 100644 --- a/sgs/search.py +++ b/sgs/search.py @@ -1,4 +1,4 @@ -# Semgrep-Search (sgs) +# Semgrep-Search # Copyright (C) 2024 Malte Heinzelmann # # This program is free software: you can redistribute it and/or modify diff --git a/sgs/utils.py b/sgs/utils.py index ef4a83c..c2540b9 100644 --- a/sgs/utils.py +++ b/sgs/utils.py @@ -1,4 +1,4 @@ -# Semgrep-Search (sgs) +# Semgrep-Search # Copyright (C) 2024 Malte Heinzelmann # # This program is free software: you can redistribute it and/or modify @@ -37,7 +37,7 @@ def fix_languages(langauges: Union[set[str], list[str]]) -> set[str]: return {LANGUAGE_ALIASES.get(lang, lang) for lang in langauges} -logger = logging.getLogger('sgsdb') +logger = logging.getLogger('semgrep-search') def build_logger(args: argparse.Namespace) -> None: