Skip to content

Commit

Permalink
Add licchecker for license checking
Browse files Browse the repository at this point in the history
  • Loading branch information
berrydenhartog committed May 16, 2024
1 parent 7d38130 commit 9f4bb76
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,21 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

- name: Set up Python ${{ env.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: "poetry"

- name: Install dependencies
run: poetry install

- name: check licenses used by project in pyproject.toml
run: liccheck -s pyproject.toml

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
Expand Down
45 changes: 43 additions & 2 deletions poetry.lock

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

13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pydantic-settings = "^2.2.1"
psycopg2-binary = "^2.9.9"
uvicorn = {extras = ["standard"], version = "^0.29.0"}


[tool.poetry.group.test.dependencies]
pytest = "^8.1.1"
coverage = "^7.5.1"
Expand All @@ -40,6 +41,7 @@ httpx = "^0.27.0"
ruff = "^0.4.3"
pre-commit = "^3.7.0"
pyright = "^1.1.361"
liccheck = "^0.9.2"

[tool.poetry.urls]
"Issue Tracker" = "https://github.com/MinBZK/tad/issues"
Expand Down Expand Up @@ -103,3 +105,14 @@ addopts = "--strict-markers"
filterwarnings = [
"ignore::UserWarning"
]

[tool.liccheck]
level = "PARANOID"
dependencies = true
authorized_licenses = [
"BSD",
"Python Software Foundation",
"MIT",
"Apache Software",
"GNU Library or Lesser General Public License (LGPL)"
]

0 comments on commit 9f4bb76

Please sign in to comment.