Skip to content

Commit

Permalink
Renamed repository to semgrep-search
Browse files Browse the repository at this point in the history
  • Loading branch information
hnzlmnn committed Mar 2, 2024
1 parent 399f81b commit 93d0297
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
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]
Expand Down
2 changes: 1 addition & 1 deletion sgs/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion sgs/const.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions sgs/database.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions sgs/inspection.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion sgs/main.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion sgs/search.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions sgs/utils.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 93d0297

Please sign in to comment.