Skip to content

Commit 97d571a

Browse files
authored
chore: add downloads in README, security policy and update ci actions (#401)
* add security policy Signed-off-by: Michele Dolfi <[email protected]> * update deprecated actions Signed-off-by: Michele Dolfi <[email protected]> * add comment about licenses for new dependencies Signed-off-by: Michele Dolfi <[email protected]> * add pypi downloads badge Signed-off-by: Michele Dolfi <[email protected]> * add citation file Signed-off-by: Michele Dolfi <[email protected]> --------- Signed-off-by: Michele Dolfi <[email protected]>
1 parent eb64f6d commit 97d571a

File tree

8 files changed

+47
-4
lines changed

8 files changed

+47
-4
lines changed

.github/SECURITY.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Security and Disclosure Information Policy for the Docling Project
2+
3+
The Docling team and community take security bugs seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions.
4+
5+
## Reporting a Vulnerability
6+
7+
If you think you've identified a security issue in an Docling project repository, please DO NOT report the issue publicly via the GitHub issue tracker, etc.
8+
9+
Instead, send an email with as many details as possible to [[email protected]](mailto:[email protected]). This is a private mailing list for the maintainers team.
10+
11+
Please do not create a public issue.
12+
13+
## Security Vulnerability Response
14+
15+
Each report is acknowledged and analyzed by the core maintainers within 3 working days.
16+
17+
Any vulnerability information shared with core maintainers stays within the Docling project and will not be disseminated to other projects unless it is necessary to get the issue fixed.
18+
19+
After the initial reply to your report, the security team will keep you informed of the progress towards a fix and full announcement, and may ask for additional information or guidance.
20+
21+
## Security Alerts
22+
23+
We will send announcements of security vulnerabilities and steps to remediate on the [Docling announcements](https://github.com/DS4SD/docling/discussions/categories/announcements).

.github/actions/setup-poetry/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ runs:
1010
- name: Install poetry
1111
run: pipx install poetry==1.8.3
1212
shell: bash
13-
- uses: actions/setup-python@v4
13+
- uses: actions/setup-python@v5
1414
with:
1515
python-version: ${{ inputs.python-version }}
1616
cache: 'poetry'

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
outputs:
1616
TARGET_TAG_V: ${{ steps.version_check.outputs.TRGT_VERSION }}
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0 # for fetching tags, required for semantic-release
2121
- uses: ./.github/actions/setup-poetry

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
matrix:
99
python-version: ['3.9', '3.10', '3.11', '3.12']
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
- name: Install tesseract
1313
run: sudo apt-get update && sudo apt-get install -y tesseract-ocr tesseract-ocr-eng tesseract-ocr-fra tesseract-ocr-deu tesseract-ocr-spa libleptonica-dev libtesseract-dev pkg-config
1414
- name: Set TESSDATA_PREFIX

.github/workflows/pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
build-and-publish:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
- uses: ./.github/actions/setup-poetry
2020
- name: Build and publish
2121
run: poetry publish --build --no-interaction --username=__token__ --password=${{ secrets.PYPI_TOKEN }}

CITATION.cff

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# This CITATION.cff file was generated with cffinit.
2+
# Visit https://bit.ly/cffinit to generate yours today!
3+
4+
cff-version: 1.2.0
5+
title: Docling
6+
message: 'If you use Docling, please consider citing as below.'
7+
type: software
8+
authors:
9+
- name: Docling Team
10+
identifiers:
11+
- type: url
12+
value: 'https://arxiv.org/abs/2408.09869'
13+
description: 'arXiv:2408.09869'
14+
repository-code: 'https://github.com/DS4SD/docling'
15+
license: MIT

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ local git repository using the following command:
7171
git commit -s
7272
```
7373

74+
### New dependencies
75+
76+
This project strictly adheres to using dependencies that are compatible with the MIT license to ensure maximum flexibility and permissiveness in its usage and distribution. As a result, dependencies licensed under restrictive terms such as GPL, LGPL, AGPL, or similar are explicitly excluded. These licenses impose additional requirements and limitations that are incompatible with the MIT license's minimal restrictions, potentially affecting derivative works and redistribution. By maintaining this policy, the project ensures simplicity and freedom for both developers and users, avoiding conflicts with stricter copyleft provisions.
77+
7478

7579
## Communication
7680

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
[![Pydantic v2](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/pydantic/pydantic/main/docs/badge/v2.json)](https://pydantic.dev)
2121
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
2222
[![License MIT](https://img.shields.io/github/license/DS4SD/docling)](https://opensource.org/licenses/MIT)
23+
[![PyPI Downloads](https://static.pepy.tech/badge/docling/month)](https://pepy.tech/projects/docling)
2324

2425
Docling parses documents and exports them to the desired format with ease and speed.
2526

0 commit comments

Comments
 (0)