Skip to content

Commit

Permalink
Docs: add resuse annotate (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
aryan-rajoria authored Nov 22, 2024
1 parent 7acfdf7 commit fb15af2
Show file tree
Hide file tree
Showing 37 changed files with 149 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

# GitHub syntax highlighting
pixi.lock linguist-language=YAML linguist-generated=true
6 changes: 6 additions & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
SPDX-License-Identifier: MIT
-->

# Blint-db Github Workflow

## Description
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-meson-tst.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

name: Build and Upload meson blint-db 0.1.0

on:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-meson.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

name: Build and Upload meson blint-db 0.1.0

on:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-vcpkg-tst.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

name: Build and Upload vcpkg blint-db 0.1.0

on:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

# temp scripts
temp/
build/
Expand Down
3 changes: 3 additions & 0 deletions .oras/annotations.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>

SPDX-License-Identifier: MIT
3 changes: 3 additions & 0 deletions .oras/config.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>

SPDX-License-Identifier: MIT
4 changes: 4 additions & 0 deletions .oras/orasclient.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

import argparse
import os

Expand Down
3 changes: 3 additions & 0 deletions .vscode/launch.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>

SPDX-License-Identifier: MIT
3 changes: 3 additions & 0 deletions .vscode/settings.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>

SPDX-License-Identifier: MIT
3 changes: 3 additions & 0 deletions .vscode/tasks.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>

SPDX-License-Identifier: MIT
4 changes: 4 additions & 0 deletions .vscode/vscode_init.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

conda deactivate
source ./venv/bin/activate
9 changes: 9 additions & 0 deletions LICENSES/MIT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) 2024 AppThreat

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
SPDX-License-Identifier: MIT
-->

# Symbols-db

Blint-db is a binary database powered by OWASP blint.
Expand Down
4 changes: 4 additions & 0 deletions blint_db/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

# noqa: F403,F401
from blint_db.config import *
4 changes: 4 additions & 0 deletions blint_db/cli.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

import argparse
import os
import shutil
Expand Down
4 changes: 4 additions & 0 deletions blint_db/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

import logging
import os
import sqlite3
Expand Down
4 changes: 4 additions & 0 deletions blint_db/handlers/blint_handler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

import subprocess
from pathlib import Path

Expand Down
4 changes: 4 additions & 0 deletions blint_db/handlers/git_handler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

import subprocess

from blint_db import DEBUG_MODE
Expand Down
4 changes: 4 additions & 0 deletions blint_db/handlers/language_handlers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

import subprocess

from blint_db import WRAPDB_LOCATION
Expand Down
4 changes: 4 additions & 0 deletions blint_db/handlers/language_handlers/meson_handler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

import os
import shutil
import subprocess
Expand Down
4 changes: 4 additions & 0 deletions blint_db/handlers/language_handlers/vcpkg_handler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

import os
import subprocess

Expand Down
4 changes: 4 additions & 0 deletions blint_db/handlers/language_handlers/wrapdb_handler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

import os
from pathlib import Path

Expand Down
4 changes: 4 additions & 0 deletions blint_db/handlers/sqlite_handler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

import datetime
import os
import sqlite3
Expand Down
4 changes: 4 additions & 0 deletions blint_db/projects_compiler/meson.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

import shutil
import traceback
from sqlite3 import OperationalError
Expand Down
4 changes: 4 additions & 0 deletions blint_db/projects_compiler/vcpkg.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

import os
import subprocess
import traceback
Expand Down
4 changes: 4 additions & 0 deletions blint_db/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

import os
from pathlib import Path

Expand Down
4 changes: 4 additions & 0 deletions blint_db/utils/json.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

import json


Expand Down
4 changes: 4 additions & 0 deletions blint_db/utils/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

from blint_db import DEBUG_MODE, WRAPDB_LOCATION, logger


Expand Down
3 changes: 3 additions & 0 deletions poetry.lock.license

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

[tool.poetry]
name = "blint-db"
version = "0.1.0"
Expand Down
3 changes: 3 additions & 0 deletions tests/blint_librdkafka.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>

SPDX-License-Identifier: MIT
3 changes: 3 additions & 0 deletions tests/cdxgen_ouch_rust.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>

SPDX-License-Identifier: MIT
4 changes: 4 additions & 0 deletions tests/scripts/explore_json_all_func.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

import json

from tests.scripts.match_internal_functions_withdb import get_pname_bname
Expand Down
4 changes: 4 additions & 0 deletions tests/scripts/get_internal_functions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

import argparse
import concurrent
import concurrent.futures
Expand Down
4 changes: 4 additions & 0 deletions tests/scripts/match_internal_functions_withdb.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 AppThreat <cloud@appthreat.com>
#
# SPDX-License-Identifier: MIT

import sqlite3
from contextlib import closing
from pathlib import Path
Expand Down

0 comments on commit fb15af2

Please sign in to comment.