Debian Codegraph @

README.md

raw
1 ![Greenbone Logo](https://www.greenbone.net/wp-content/uploads/gb_new-logo_horizontal_rgb_small.png)
2
3 # greenbone-feed-sync <!-- omit in toc -->
4
5 Tool for downloading the Greenbone Community Feed.
6
7 `greenbone-feed-sync` assumes you are using the latest feed release and up to
8 date components of the Greenbone Community Edition by default. It is highly
9 configurable and can be adjusted easily for downloading different feed releases
10 and types.
11
12 - [Installation](#installation)
13 - [Version](#version)
14 - [Requirements](#requirements)
15 - [Install using pipx](#install-using-pipx)
16 - [Install using pip](#install-using-pip)
17 - [Usage](#usage)
18 - [Usage on Kali Linux](#usage-on-kali-linux)
19 - [Command Completion](#command-completion)
20 - [Settings](#settings)
21 - [verbose](#verbose)
22 - [quiet](#quiet)
23 - [config](#config)
24 - [private-directory](#private-directory)
25 - [compression-level](#compression-level)
26 - [type](#type)
27 - [feed-url](#feed-url)
28 - [feed-release](#feed-release)
29 - [destination-prefix](#destination-prefix)
30 - [gvmd-data-destination](#gvmd-data-destination)
31 - [gvmd-data-url](#gvmd-data-url)
32 - [notus-destination](#notus-destination)
33 - [notus-url](#notus-url)
34 - [nasl-destination](#nasl-destination)
35 - [nasl-url](#nasl-url)
36 - [scap-data-destination](#scap-data-destination)
37 - [scap-data-url](#scap-data-url)
38 - [cert-data-destination](#cert-data-destination)
39 - [cert-data-url](#cert-data-url)
40 - [report-formats-destination](#report-formats-destination)
41 - [report-formats-url](#report-formats-url)
42 - [scan-configs-destination](#scan-configs-destination)
43 - [scan-configs-url](#scan-configs-url)
44 - [port-lists-destination](#port-lists-destination)
45 - [port-lists-url](#port-lists-url)
46 - [gvmd-lock-file](#gvmd-lock-file)
47 - [openvas-lock-file](#openvas-lock-file)
48 - [fail-fast](#fail-fast)
49 - [no-wait](#no-wait)
50 - [wait-interval](#wait-interval)
51 - [rsync-timeout](#rsync-timeout)
52 - [group](#group)
53 - [user](#user)
54 - [greenbone-enterprise-feed-key](#greenbone-enterprise-feed-key)
55 - [Config](#config-1)
56 - [Development](#development)
57 - [Maintainer](#maintainer)
58 - [Contributing](#contributing)
59 - [License](#license)
60
61 ## Installation
62
63 ### Version
64
65 `greenbone-feed-sync` uses [semantic versioning](https://semver.org/).
66
67 Versions prior to 25.0.0 used [calendar versioning](https://calver.org/).
68
69 > [!IMPORTANT] `greenbone-feed-sync` >= 25.0.0 requires [gvmd 25.0.0](https://github.com/greenbone/gvmd/releases/tag/v25.0.0)
70 > to work out of the box. If a version of gvmd < 24.0.0 is used, the feed release
71 > has to be set to 22.04 via the [config file, the `GREENBONE_FEED_SYNC_FEED_RELEASE`
72 > environment variable or the `--feed-release` CLI argument](#feed-release).
73 > For example run `greenbone-feed-sync --feed-release 22.04`.
74 > Alternatively you can downgrade `greenbone-feed-sync` to a release version < 25.0.0.
75 >
76 > Versions of gvmd between 24.0.0 and 25.0.0 have issues with the feed loading
77 > and require manual interventions.
78
79 ### Requirements
80
81 Python 3.9 and later is supported.
82
83 `greenbone-feed-sync` requires the `rsync` tool being installed and available
84 within the `PATH`.
85
86 On Debian based Distributions like Ubuntu and Kali `rsync` can be installed via
87
88 ```sh
89 sudo apt install rsync
90 ```
91
92 ### Install using pipx
93
94 You can install the latest release of **greenbone-feed-sync** from the Python
95 Package Index (pypi) using [pipx]
96
97 ```sh
98 python3 -m pipx install greenbone-feed-sync
99 ```
100
101 On Debian based Distributions like Ubuntu and Kali `pipx` itself can be
102 installed via
103
104 ```sh
105 sudo apt install pipx
106 ```
107
108 ### Install using pip
109
110 **NOTE:** The `pip install` command does no longer work out-of-the-box in newer
111 distributions like Ubuntu 23.04 or Debian 12 because of [PEP 668](https://peps.python.org/pep-0668).
112 Please use the [installation via pipx](#install-using-pipx) instead.
113
114 You can install the latest release of **greenbone-feed-sync** from the
115 Python Package Index ([pypi]) using [pip]
116
117 ```sh
118 python3 -m pip install greenbone-feed-sync
119 ```
120
121 ## Usage
122
123 Most of the time you should just run the script without any arguments to
124 download the new data for all necessary feed types
125
126 **NOTE:** See details about [usage on Kali Linux](#usage-on-kali-linux)
127
128 ```sh
129 sudo greenbone-feed-sync
130 ```
131
132 To get verbose progress output during the data download you might increase the
133 verbosity
134
135 ```sh
136 sudo greenbone-feed-sync -vvv
137 ```
138
139 If the script is run in a cron job the output can be turned off via
140
141 ```sh
142 sudo greenbone-feed-sync --quiet
143 ```
144
145 To download only a specific feed content the `--type` argument can be used
146
147 ```sh
148 sudo greenbone-feed-sync --type nvt
149 ```
150
151 Run `--help` to get information about all possible types and additional argument
152 options
153
154 ```sh
155 greenbone-feed-sync --help
156 ```
157
158 ## Usage on Kali Linux
159
160 When running `greenbone-feed-sync` as root user, for example via sudo, the
161 actual user and group of the process are changed to the `gvm` user and group via
162 [seteuid](https://docs.python.org/3/library/os.html#os.seteuid). This is done to
163 ensure that [`gvmd`](https://github.com/greenbone/gvmd) and
164 [`openvas-scanner`](https://github.com/greenbone/openvas-scanner) can read the
165 downloaded file contents.
166
167 When using the Greenbone Community Edition installed via packages on Kali Linux
168 a different user and group are used. They are both named `_gvm` instead.
169 Therefore the [group](#group) and [user](#user) settings need to be adjusted.
170 This can be done by using a [config file](#config-1).
171
172 ```sh
173 sudo mkdir /etc/gvm
174 sudo chmod +r /etc/gvm
175 cat <<EOF | sudo tee /etc/gvm/greenbone-feed-sync.toml
176 [greenbone-feed-sync]
177 user="_gvm"
178 group="_gvm"
179 EOF
180 sudo chmod +r /etc/gvm/greenbone-feed-sync.toml
181 ```
182
183 ## Command Completion
184
185 `greenbone-feed-sync` comes with support for command line completion in bash
186 and zsh.
187
188 Setup for bash:
189
190 ```bash
191 echo "source ~/.greenbone-feed-sync-complete.bash" >> ~/.bashrc
192 greenbone-feed-sync --print-completion bash > ~/.greenbone-feed-sync-complete.bash
193 ```
194
195 Alternatively, you can use the result of the completion command directly with
196 the eval function of your bash shell:
197
198 ```bash
199 eval "$(greenbone-feed-sync --print-completion bash)"
200 ```
201
202 Setup for zsh:
203
204 ```zsh
205 echo 'fpath=("$HOME/.zsh.d" $fpath)' >> ~/.zsh
206 mkdir -p ~/.zsh.d/
207 greenbone-feed-sync --print-completion zsh > ~/.zsh.d/_greenbone_feed_sync
208 ```
209
210 ## Settings
211
212 The `greenbone-feed-sync` script is adjustable for all kind of purposes and very
213 flexible which content gets downloaded. Most likely you will never need to
214 adjust the settings because the defaults will suffice. Changing the settings
215 is only required for experts and testing purposes.
216
217 ### verbose
218
219 | Name | Value |
220 | -------------------- | -------------------------------------------- |
221 | CLI Argument | `--verbose, -v` |
222 | Config Variable | verbose |
223 | Environment Variable | `GREENBONE_FEED_SYNC_VERBOSE` |
224 | Default Value | 2 |
225 | Description | Log verbosity. `-vvv` for maximum verbosity. |
226
227 ### quiet
228
229 | Name | Value |
230 | -------------------- | --------------------------------------------------------------------------------------- |
231 | CLI Argument | `--quiet` |
232 | Config Variable | |
233 | Environment Variable | |
234 | Default Value | |
235 | Description | Disable all log output. Same as setting `verbose` or `GREENBONE_FEED_SYNC_VERBOSE` to 0 |
236
237 ### config
238
239 | Name | Value |
240 | -------------------- | ---------------------------------------------------------------------------- |
241 | CLI Argument | `--config, -c` |
242 | Config Variable | |
243 | Environment Variable | |
244 | Default Value | `~/.config/greenbone-feed-sync.toml` and `/etc/gvm/greenbone-feed-sync.toml` |
245 | Description | TOML config file to load settings from. |
246
247 ### private-directory
248
249 | Name | Value |
250 | -------------------- | ------------------------------------------------------------------------------------ |
251 | CLI Argument | `--private-directory` |
252 | Config Variable | private-directory |
253 | Environment Variable | `GREENBONE_FEED_SYNC_PRIVATE_DIRECTORY` |
254 | Default Value | |
255 | Description | (Sub-)Directory to exclude from the sync which will never get deleted automatically. |
256
257 ### compression-level
258
259 | Name | Value |
260 | -------------------- | ----------------------------------------------------------------------- |
261 | CLI Argument | `--compression-level` |
262 | Config Variable | compression-level |
263 | Environment Variable | `GREENBONE_FEED_SYNC_COMPRESSION_LEVEL` |
264 | Default Value | 9 |
265 | Description | rsync compression level 0-9. (0 - no compression, 9 - high compression) |
266
267 ### type
268
269 | Name | Value |
270 | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
271 | CLI Argument | `--type` |
272 | Config Variable | |
273 | Environment Variable | |
274 | Default Value | all |
275 | Description | Specifies which feed data should be downloaded. Possible values are `all`, `nvt`/`nvts`, `gvmd-data`, `scap`, `cert`, `notus`, `nasl`, `report-format`/`report-formats`, `scan-config`/`scan-configs` or `port-list`/`port-lists`. |
276
277 ### feed-url
278
279 | Name | Value |
280 | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
281 | CLI Argument | |
282 | Config Variable | feed-url |
283 | Environment Variable | `GREENBONE_FEED_SYNC_URL` |
284 | Default Value | `rsync://feed.community.greenbone.net/community` |
285 | Description | URL to download the feed data from. Other URLs will be relative to this URL by default. For example using `rsync://example.com` as feed url the notus url will be `rsync://example.com/vulnerability-feed/$FEED_VERSION/vt-data/notus/`. |
286
287 ### feed-release
288
289 | Name | |
290 | -------------------- | --------------------------------------------------------------------------------------------------- |
291 | CLI Argument | `--feed-release` |
292 | Config Variable | feed-release |
293 | Environment Variable | `GREENBONE_FEED_SYNC_FEED_RELEASE` |
294 | Default Value | `24.10` |
295 | Description | Release series of the feed to be downloaded. Download destinations and URLs will use this variable. |
296
297 ### destination-prefix
298
299 | Name | Value |
300 | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
301 | CLI Argument | `--destination-prefix` |
302 | Config Variable | destination-prefix |
303 | Environment Variable | `GREENBONE_FEED_SYNC_DESTINATION_PREFIX` |
304 | Default Value | `/var/lib/` |
305 | Description | Directory prefix to use for default feed data download destinations. Other download destinations will be relative to this path by default. For example using `/opt/lib` as destination prefix will change the default of the notus destination to `/opt/lib/notus`. |
306
307 ### gvmd-data-destination
308
309 | Name | Value |
310 | -------------------- | ---------------------------------------------------------- |
311 | CLI Argument | `--gvmd-data-destination` |
312 | Config Variable | gvmd-data-destination |
313 | Environment Variable | `GREENBONE_FEED_SYNC_GVMD_DATA_DESTINATION` |
314 | Default Value | `$DESTINATION_PREFIX/gvm/data-objects/gvmd/$FEED_VERSION/` |
315 | Description | Destination of the downloaded gvmd data. |
316
317 ### gvmd-data-url
318
319 | Name | Value |
320 | -------------------- | ---------------------------------------------------------------------------------------------- |
321 | CLI Argument | `--gvmd-data-url` |
322 | Config Variable | gvmd-data-url |
323 | Environment Variable | `GREENBONE_FEED_SYNC_GVMD_DATA_URL` |
324 | Default Value | `$FEED_URL/data-feed/$FEED_VERSION/` |
325 | Description | URL to download the gvmd data from. This includes scan-configs, report-formats and port-lists. |
326
327 ### notus-destination
328
329 | Name | Value |
330 | -------------------- | ----------------------------------------- |
331 | CLI Argument | `--notus-destination` |
332 | Config Variable | notus-destination |
333 | Environment Variable | `GREENBONE_FEED_SYNC_NOTUS_DESTINATION` |
334 | Default Value | `$DESTINATION_PREFIX/notus` |
335 | Description | Destination of the downloaded notus data. |
336
337 ### notus-url
338
339 | Name | Value |
340 | -------------------- | ----------------------------------------------------------- |
341 | CLI Argument | `--notus-url` |
342 | Config Variable | notus-url |
343 | Environment Variable | `GREENBONE_FEED_SYNC_NOTUS_URL` |
344 | Default Value | `$FEED_URL/vulnerability-feed/$FEED_VERSION/vt-data/notus/` |
345 | Description | URL to download the notus data from. |
346
347 ### nasl-destination
348
349 | Name | Value |
350 | -------------------- | ---------------------------------------- |
351 | CLI Argument | `--nasl-destination` |
352 | Config Variable | nasl-destination |
353 | Environment Variable | `GREENBONE_FEED_SYNC_NASL_DESTINATION` |
354 | Default Value | `$DESTINATION_PREFIX/openvas/plugins` |
355 | Description | Destination of the downloaded nasl data. |
356
357 ### nasl-url
358
359 | Name | Value |
360 | -------------------- | ---------------------------------------------------------- |
361 | CLI Argument | `--nasl-url` |
362 | Config Variable | nasl-url |
363 | Environment Variable | `GREENBONE_FEED_SYNC_NASL_URL` |
364 | Default Value | `$FEED_URL/vulnerability-feed/$FEED_VERSION/vt-data/nasl/` |
365 | Description | URL to download the nasl data from. |
366
367 ### scap-data-destination
368
369 | Name | Value |
370 | -------------------- | ------------------------------------------- |
371 | CLI Argument | `--scap-data-destination` |
372 | Config Variable | scap-data-destination |
373 | Environment Variable | `GREENBONE_FEED_SYNC_SCAP_DATA_DESTINATION` |
374 | Default Value | `$DESTINATION_PREFIX/gvm/scap-data` |
375 | Description | Destination of the downloaded SCAP data. |
376
377 ### scap-data-url
378
379 | Name | Value |
380 | -------------------- | ------------------------------------------------------ |
381 | CLI Argument | `--scap-data-url` |
382 | Config Variable | scap-data-url |
383 | Environment Variable | `GREENBONE_FEED_SYNC_SCAP_DATA_URL` |
384 | Default Value | `$FEED_URL/vulnerability-feed/$FEED_VERSION/scap-data` |
385 | Description | URL to download the SCAP data from. |
386
387 ### cert-data-destination
388
389 | Name | Value |
390 | -------------------- | ------------------------------------------- |
391 | CLI Argument | `--cert-data-destination` |
392 | Config Variable | cert-data-destination |
393 | Environment Variable | `GREENBONE_FEED_SYNC_CERT_DATA_DESTINATION` |
394 | Default Value | `$DESTINATION_PREFIX/gvm/cert-data` |
395 | Description | Destination of the downloaded CERT data. |
396
397 ### cert-data-url
398
399 | Name | Value |
400 | -------------------- | ------------------------------------------------------ |
401 | CLI Argument | `--cert-data-url` |
402 | Config Variable | cert-data-url |
403 | Environment Variable | `GREENBONE_FEED_SYNC_CERT_DATA_URL` |
404 | Default Value | `$FEED_URL/vulnerability-feed/$FEED_VERSION/cert-data` |
405 | Description | URL to download the CERT data from. |
406
407 ### report-formats-destination
408
409 | Name | Value |
410 | -------------------- | ------------------------------------------------------------------------ |
411 | CLI Argument | `--report-formats-destination` |
412 | Config Variable | report-formats-destination |
413 | Environment Variable | `GREENBONE_FEED_SYNC_REPORT_FORMATS_DESTINATION` |
414 | Default Value | `$DESTINATION_PREFIX/gvm/data-objects/gvmd/$FEED_VERSION/report-formats` |
415 | Description | Destination of the downloaded report format data. |
416
417 ### report-formats-url
418
419 | Name | Value |
420 | -------------------- | -------------------------------------------------- |
421 | CLI Argument | `--report-formats-url` |
422 | Config Variable | report-formats-url |
423 | Environment Variable | `GREENBONE_FEED_SYNC_REPORT_FORMATS_URL` |
424 | Default Value | `$FEED_URL/data-feed/$FEED_VERSION/report-formats` |
425 | Description | URL to download the report format data from. |
426
427 ### scan-configs-destination
428
429 | Name | Value |
430 | -------------------- | ---------------------------------------------------------------------- |
431 | CLI Argument | `--scan-configs-destination` |
432 | Config Variable | scan-configs-destination |
433 | Environment Variable | `GREENBONE_FEED_SYNC_SCAN_CONFIGS_DESTINATION` |
434 | Default Value | `$DESTINATION_PREFIX/gvm/data-objects/gvmd/$FEED_VERSION/scan-configs` |
435 | Description | Destination of the downloaded scan config data. |
436
437 ### scan-configs-url
438
439 | Name | Value |
440 | -------------------- | ------------------------------------------------ |
441 | CLI Argument | `--scan-configs-url` |
442 | Config Variable | scan-configs-url |
443 | Environment Variable | `GREENBONE_FEED_SYNC_SCAN_CONFIGS_URL` |
444 | Default Value | `$FEED_URL/data-feed/$FEED_VERSION/scan-configs` |
445 | Description | URL to download the scan config data from. |
446
447 ### port-lists-destination
448
449 | Name | Value |
450 | -------------------- | -------------------------------------------------------------------- |
451 | CLI Argument | `--port-lists-destination` |
452 | Config Variable | port-lists-destination |
453 | Environment Variable | `GREENBONE_FEED_SYNC_PORT_LISTS_DESTINATION` |
454 | Default Value | `$DESTINATION_PREFIX/gvm/data-objects/gvmd/$FEED_VERSION/port-lists` |
455 | Description | Destination of the downloaded port list data. |
456
457 ### port-lists-url
458
459 | Name | Value |
460 | -------------------- | ---------------------------------------------- |
461 | CLI Argument | `--port-lists-url` |
462 | Config Variable | port-lists-url |
463 | Environment Variable | `GREENBONE_FEED_SYNC_PORT_LISTS_URL` |
464 | Default Value | `$FEED_URL/data-feed/$FEED_VERSION/port-lists` |
465 | Description | URL to download the port list data from. |
466
467 ### gvmd-lock-file
468
469 | Name | Value |
470 | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
471 | CLI Argument | `--gvmd-lock-file` |
472 | Config Variable | gvmd-lock-file |
473 | Environment Variable | `GREENBONE_FEED_SYNC_GVMD_LOCK_FILE` |
474 | Default Value | `$DESTINATION_PREFIX/gvm/feed-update.lock` |
475 | Description | File to use for locking the feed synchronization for data loaded by the gvmd daemon. Used to avoid that more then one process accesses the feed data at the same time. |
476
477 ### openvas-lock-file
478
479 | Name | Value |
480 | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
481 | CLI Argument | `--openvas-lock-file` |
482 | Config Variable | openvas-lock-file |
483 | Environment Variable | `GREENBONE_FEED_SYNC_OPENVAS_LOCK_FILE` |
484 | Default Value | `$DESTINATION_PREFIX/openvas/feed-update.lock` |
485 | Description | File to use for locking the feed synchronization for data loaded by the openvas scanner. Used to avoid that more then one process accesses the feed data at the same time. |
486
487 ### fail-fast
488
489 | Name | Value |
490 | -------------------- | ----------------------------------------------------------------------------------------------------------- |
491 | CLI Argument | `--fail-fast, --failfast` |
492 | Config Variable | fail-fast |
493 | Environment Variable | `GREENBONE_FEED_SYNC_FAIL_FAST` |
494 | Default Value | false |
495 | Description | Stop after a first error has occurred. Otherwise the script tries to download additional data if specified. |
496
497 ### no-wait
498
499 | Name | Value |
500 | -------------------- | ------------------------------------------------- |
501 | CLI Argument | `--no-wait` |
502 | Config Variable | no-wait |
503 | Environment Variable | `GREENBONE_FEED_SYNC_NO_WAIT` |
504 | Default Value | false |
505 | Description | Fail directly if the lock file can't be acquired. |
506
507 ### wait-interval
508
509 | Name | Value |
510 | -------------------- | ------------------------------------------------------------------------------------ |
511 | CLI Argument | `--wait-interval` |
512 | Config Variable | wait-interval |
513 | Environment Variable | `GREENBONE_FEED_SYNC_LOCK_WAIT_INTERVAL` |
514 | Default Value | 5 |
515 | Description | Time to wait in seconds after failed lock attempt before re-trying to lock the file. |
516
517 ### rsync-timeout
518
519 | Name | Value |
520 | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
521 | CLI Argument | `--rsync-timeout` |
522 | Config Variable | rsync-timeout |
523 | Environment Variable | `GREENBONE_FEED_SYNC_RSYNC_TIMEOUT` |
524 | Default Value | |
525 | Description | Maximum I/O timeout in seconds used for rsync. If no data is transferred for the specified time then rsync will exit. By default no timeout is set and the rsync default will be used. |
526
527 ### group
528
529 | Name | Value |
530 | -------------------- | ---------------------------------------------------------------------------------------------------------- |
531 | CLI Argument | `--group` |
532 | Config Variable | group |
533 | Environment Variable | `GREENBONE_FEED_SYNC_GROUP` |
534 | Default Value | gvm |
535 | Description | If the greenbone-feed-sync script is run as root, the effective group is changed to this group name or ID. |
536
537 ### user
538
539 | Name | Value |
540 | -------------------- | -------------------------------------------------------------------------------------------------------- |
541 | CLI Argument | `--user` |
542 | Config Variable | user |
543 | Environment Variable | `GREENBONE_FEED_SYNC_USER` |
544 | Default Value | gvm |
545 | Description | If the greenbone-feed-sync script is run as root, the effective user is changed to this user name or ID. |
546
547 ### greenbone-enterprise-feed-key
548
549 | Name | Value |
550 | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
551 | CLI Argument | `--greenbone-enterprise-feed-key` |
552 | Config Variable | greenbone-enterprise-feed-key |
553 | Environment Variable | `GREENBONE_FEED_SYNC_ENTERPRISE_FEED_KEY` |
554 | Default Value | /etc/gvm/greenbone-enterprise-feed-key |
555 | Description | File to read the Greenbone Enterprise Feed key from. The key gives access to additional vulnerability tests for enterprise software among other advantages. See [Greenbone Enterprise Feed and Greenbone Community Feed in Comparison](https://www.greenbone.net/en/feed-comparison/) for more details. The default URLs are adjusted according to the data in the key. If the key file does not exist it is ignored. |
556
557 ## Config
558
559 It is possible to use a config file for loading the settings of the
560 `greenbone-feed-sync` script. The config file uses the [TOML] format. Without
561 explicitly passing a config file, `greenbone-feed-sync` tries to load
562 `~/.config/greenbone-feed-sync.toml` and if that file doesn't exist afterwards
563 `/etc/gvm/greenbone-feed-sync.toml`.
564
565 Example:
566
567 ```toml
568 [greenbone-feed-sync]
569 destination-prefix = "/opt/greenbone-feed"
570 lock-file = "/opt/greenbone-feed.lock"
571 no-wait = true
572 ```
573
574 ## Development
575
576 **greenbone-feed-sync** uses [poetry] for its own dependency management and
577 build process.
578
579 First install poetry via pipx
580
581 ```sh
582 python3 -m pipx install poetry
583 ```
584
585 Afterwards run
586
587 ```sh
588 poetry install
589 ```
590
591 in the checkout directory of **greenbone-feed-sync** (the directory containing
592 the `pyproject.toml` file) to install all dependencies including the packages
593 only required for development.
594
595 Afterwards activate the git hooks for auto-formatting and linting via
596 [autohooks].
597
598 ```sh
599 poetry run autohooks activate
600 ```
601
602 Validate the activated git hooks by running
603
604 ```sh
605 poetry run autohooks check
606 ```
607
608 ## Maintainer
609
610 This project is maintained by [Greenbone AG][Greenbone Networks]
611
612 ## Contributing
613
614 Your contributions are highly appreciated. Please
615 [create a pull request](https://github.com/greenbone/greeenbon-feed-sync/pulls)
616 on GitHub. Bigger changes need to be discussed with the development team via the
617 [issues section at GitHub](https://github.com/greenbone/greenbone-feed-sync/issues)
618 first.
619
620 ## License
621
622 Copyright (C) 2022-2025 [Greenbone AG][Greenbone Networks]
623
624 Licensed under the [GNU General Public License v3.0 or later](LICENSE).
625
626 [Greenbone Networks]: https://www.greenbone.net/
627 [poetry]: https://python-poetry.org/
628 [pip]: https://pip.pypa.io/
629 [pipx]: https://pypa.github.io/pipx/
630 [autohooks]: https://github.com/greenbone/autohooks
631 [TOML]: https://toml.io/
632 [pypi]: https://pypi.org