Demisto-sdk

Latest version: v1.29.3

Safety actively analyzes 629052 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 31

1.23.0

* Added support for inputs sections and outputs sections in a playbook.
* Added a new service for file management, allowing to write files and read files from specific git branches, local file system, or from any remote api.
* Added a new flag `--docker/--no-docker` to demisto-sdk pre-commit, in order to enable the option to run the pre-commit command without docker hooks.
* Added support for xsoar, xsoar-saas and xsiam wrapper clients to ease the integration via their apis.
* Added the command demisto-sdk coverage-analyze to the pre-commit hooks.
* Updated merge_coverage_report to be a hook in the pre-commit.
* Updated the mode option to be free text. for more details see https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/pre_commit/README.md#modes
* Added a new command **setup-env** to setup the environment for integrations and scripts in vs code IDE, XSOAR and XSIAM.
* Fixed an issue where the SDK failed to retrieve docker hub token when there were temporary connection errors.
* Internal: Added a welcome comment to contributions PRs.
* Fixed metadata dependencies dumping in **prepare-content** command.
* Fixed an issue where the TagParser didn't work properly on all edge cases.

1.22.0

* Added Docker Hook support to **pre-commit**; for details see https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/pre_commit/README.md#docker-hooks
* Removed **-use-local-import** flag to **graph update** command.
* Perfomance improvements to **graph** commands.
* Adjust graph structure to accommodate anticipated changes in infrastructure for the **validate** command.
* Fixed an issue where the **lint** command with docker, would not give unique container names to different image runs.
* Added a new `display_name` field to `Pack` entity in graph.

1.21.0

* Added the argument `--commited-only` to **pre-commit** to skip collecting on staged files.
* Fixed an issue where the **pre-commit** command runs even in the case of deprecated or powershell integrations or scripts.
* Fixed an issue where **validate** falsely failed with error `PB101` and `PB123` due to condition names discrepancy
* Fixed an issue where the **modeling-rules test** command failed report and error when test data didn't exist.
* Changed the table print for **modeling-rules test** command.
* Updated the **prepare-content** to add contributor details to the `detaileddescription` field based on **supportlevelheader** key.
* Added a new validation (`IN162`) to ensure that each event collector under partner supported packs have the *xsoar* value for the **supportlevelheader** key in its yml.
* A rewrite for the **download** command, with many improvements and fixes, including:
* Large optimizations: reducing the runtime and CPU usage by a significant amount when there's a considerable amount of custom content items on the server.
* Improved error handling and messages, logs, and documentation (`demisto-sdk download --help`) for the command.
* Fixed an issue where custom PowerShell-based integrations and automations would not download properly.
* Fixed an issue where names of the following custom content items would not have their IDs replaced from UUIDs:
* Classifiers
* Dashboards
* Indicator Types
* Reports
* Widgets
* Fixed an issue where the download would fail when using the '-r' / '--regex' flag when there were multiple custom content items on the server matching the pattern, having the same name.
* Fixed an issue where integrations / automations with a dot in their name would be saved with an incorrect file name (For example: `Test v1.1.py` would be named `Test v1.py`)
* Fixed the **Link to Jira** Github flow to match the Jira-dc.

**Note:** Due to the optimization changes made to the **download** command, playbooks might be formatted a bit differently than before when downloaded from the server using the new version. The playbooks should however function and work the same.
* Fixed an issue where the **pre-commit** command, now correctly gathers the associated python file when a yml file is provided as input.
* Internal: Added a new GitHub action that will automatically assign the contribution TL and add the `Contribution` label in contributions PRs.

1.20.8

* Internal: Fixed an issue where the `tools.get_id` function would not find the ID for layout content items in some cases.
* Internal: Fixed an issue where the `tools.get_display_name` function would return incorrect values for "Indicator Type" content items.
* Changed the error code of the **validate** check for deprecated display names from `IN157` (duplicated a code used by a `nativeimage` check) to `IN160` (new code).
* Changed the error code of the **validate** check for invalid SIEM marketplace values from `IN151` (duplicated a code used by a check for empty command arguments) to `IN161` (new code).
* Added JUnit XML output support for **test-content** command.
* Updated the **run-unit-tests** command to not fail on JavaScript items, but skip them instead.
* Updated the `validate` pre-commit hook to run before the `run-unit-tests` hook. This will prevent `validate` from falling on errors about temporary files that are sometimes created when running unit-tests.
* Added the *auto-replace-uuids* flag to the **download** command. set this flag to False to avoid UUID replacements when downloading using download command.
* Added a new key **supportlevelheader** to the integration schema.
* **format** command will run without the content graph if graph creation fails.
* Updated the `GENERAL_DEFAULT_FROMVERSION` variable from **6.9.0** to **6.10.0**.
* Internal: Replaced the `tools._read_file` function with a more generic `tools.safe_read_unicode` function.
* Internal: Added `pathlib.Path` support to the `tools.get_yml_paths_in_dir` and `tools.get_child_directories` functions.
* Fixed an issue in the **test-modeling-rule** command, where possible exceptions were not caught.
* Added the *--delete_existing_dataset/-dd* flag to the **modeling-rules test** command to delete an existing dataset in the tenant.
* Added a new validation (`IN159`) which validates that reputation commands context outputs are spelled according to standards.
* Internal: Added a `loaded_data` parameter to `YmlSplitter` to allow passing preloaded YAML data.

1.20.7

* Fixed an issue where unified integrations / scripts with a period in their name would not split properly.
* Fixed an issue where the documentation was out of date with the current structure of **demisto-sdk** which does not support command auto-completion.
* Improved logging for **lint** and **prepare-content** commands.
* Internal: Added the `CI_SERVER_HOST`, `CI_PROJECT_ID` environment variables.

1.20.6

* Added the *--mode* argument to the **pre-commit** command, to run pre-commit with special mode (to run with different settings), supported mode are: 'nightly'.
* Modified the `validate` and `format` pre-commit hooks to run with the `--all` flag only when the `--mode=nightly` argument and `--all` flag were given.
* Modified the `ruff` pre-commit hook to run with `--config=nightly_ruff.toml` argument when running **pre-commit** command wite the `--mode=nightly` argument.
* Fixed an issue where deprecating parsing rules or modeling rules using **format** failed due to schema discrepancies.
* Fixed an issue where kebab-case arguments were not parsed correctly.
* Fixed an issue where **validate** falsely failed with error `RN115` on release notes with linefeed at the end of the file.
* Fixed an issue where **validate** falsely failed with error `DS108` on descriptions ending with new lines followed by square/curly brackets.
* Fixed an issue where **graph** commands would not clean their temporary files properly, causing successive commands to fail.
* Fixed an issue where an error log message changed the terminal color.

Page 4 of 31

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.