Skip to content

Commit eb3fa8f

Browse files
committed
Merge branch 'task/59795424-scripts' into 'release/2026.11.0'
CS-59795424: добавлено описание скриптов обновления See merge request CodeScoring/docs!638
2 parents df5d7bd + a4d7b44 commit eb3fa8f

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

docs/on-premise/scripts.en.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,26 @@ Arguments passed to the script are strictly positional and are specified with th
2727

2828
## Available commands
2929

30+
### `update_cwes`
31+
32+
Updates CWE (Common Weakness Enumeration) and vulnerability data in the installation database. An optional argument can be used to control the date from which the update will be performed; by default, the update date and offset will be taken from the cache of the last successful update.
33+
34+
**Syntax**
35+
36+
```bash
37+
update_cwes [--script-arg="2025-12-31"]
38+
```
39+
40+
### `load_licenses`
41+
42+
Updates license data in the installation database. An optional argument can be used to control the date from which the update will be performed; by default, the update date and offset will be taken from the cache of the last successful update.
43+
44+
**Syntax**
45+
46+
```bash
47+
load_licenses [--script-arg="2025-12-31"]
48+
```
49+
3050
### `set_new_secret_key`
3151

3252
This command sets a new value for the `SECRET_KEY` environment variable. To avoid issues with encoding, aliases, or other unexpected console behavior, it is recommended to copy the `NEW_SECRET_KEY` value from the terminal output after the script has finished.

docs/on-premise/scripts.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,26 @@ kubectl exec -it <backend service> ./manage.py runscript <команда>
2525

2626
## Доступные команды
2727

28+
### `update_cwes`
29+
30+
Обновляет данные о CWE (Common Weakness Enumeration) и уязвимостях в базе данных инсталляции. Опциональным аргументом можно управлять датой, с которой будет осуществлено обновление, по умолчанию дата и офсет обновления будут взяты из кэша последнего успешного обновления.
31+
32+
**Синтаксис**
33+
34+
```bash
35+
update_cwes [--script-arg="2025-12-31"]
36+
```
37+
38+
### `load_licenses`
39+
40+
Обновляет данные о лицензиях в базе данных инсталляции. Опциональным аргументом можно управлять датой, с которой будет осуществлено обновление, по умолчанию дата и офсет обновления будут взяты из кэша последнего успешного обновления.
41+
42+
**Синтаксис**
43+
44+
```bash
45+
load_licenses [--script-arg="2025-12-31"]
46+
```
47+
2848
### `set_new_secret_key`
2949

3050
Данная команда устанавливает новое значение переменной окружения `SECRET_KEY`. Чтобы избежать проблем с кодировкой, алиасами или других неожиданных действий консоли, значение `NEW_SECRET_KEY` рекомендуется скопировать из вывода в терминале после окончания работы скрипта.

0 commit comments

Comments
 (0)