Skip to content

Releases: demisto/demisto-sdk

v1.26.2

11 Feb 14:45
Compare
Choose a tag to compare
  • Added support to check the health status when initialing a client for xsoar-on-prem/xsoar-saas by default, will throw exception if server is not healthy. #3985
  • The create-content-graph command is now deprecated and will be removed in future releases. Use the demisto-sdk graph create command instead. #4027
  • The update-content-graph command is now deprecated and will be removed in future releases. Use the demisto-sdk graph update command instead. #4027
  • Fixed an issue where downloading custom content items with special YAML characters (like :) in their names would cause an error during UUID ID replacement when using the download command. #3990
  • Fixed an issue where validate failed on _data.json, when saved in a folder under Lists (rather than directly under Lists). #3997
  • Fixed an issue where the pre-commit pycln hook failed when the repo name contained hypens. #3998
  • Fixed an issue with prepare-content where partner event collectors which are supported by PANW add irrelevant suffixes to their display names. #4021
  • Fixed an issue in setup-environment command where .env files were not loaded correctly. #4029
  • Fixed an issue where upload failed when trying to upload a content item that was missing a description or type fields. #4020
  • Update the lock_integrations in test-content command to check if the current job still running (and not the pipeline). #4016
  • Fixed an issue where some unit-tests failed in github-actions CI. #4023

v1.26.1

31 Jan 19:38
Compare
Choose a tag to compare
  • Added retry mechanism for create docker container. As default, will attempt three times. #3988
  • Fixed the init command to successfully create event collector integration #3995
  • Fixes an issue where running pre-commit with the run-hook argument didn't execute the hook in some cases. #3999
  • Fixed an issue where fetching from a git remote would cause a failure in cases where fetching is not necessary. #3878
  • Added support for DOCKER_REGISTRY_URL environment variable. #3975

v1.26.0

28 Jan 15:47
Compare
Choose a tag to compare
  • Log file path (can be set by the --log-file-path flag or the DEMISTO_SDK_LOG_FILE_PATH environment variable) can now only accept directory values. Setting it to a file path is no longer supported (file name is now constantly demisto_sdk_debug.log and cannot be changed). The path will now be automatically generated if it doesn't exist. #3912
  • Log files will now be saved by default to $HOME/.demisto-sdk/logs. This behavior can be overridden by the --log-file-path flag, or the DEMISTO_SDK_LOG_FILE_PATH environment variable. #3912
  • Added warning when running on Windows (not supported) #3950
  • Fixed an issue where the validate command failed on pre-processing rules. #3977
  • Fixed an issue in upload where customFields with explicitly defined values (e.g., ${}) caused the command to fail. #3970
  • Fixed an issue where validate command failed with Lists folder containing a data json file. #3971
  • Added graph capabilities in TestSuite. #3932

v1.25.3

15 Jan 18:48
Compare
Choose a tag to compare

v1.25.2

14 Jan 15:22
Compare
Choose a tag to compare
  • Fixed an issue in the prepare-content and the upload commands where the unified YAML/JSON file was parsed instead of the original file.
  • Fixed an issue where lint command didn't work on detached heads.
  • Added the DockerHubClient class to allow interaction with the dockerhub-api efficiency and easily.
  • Added support to check the version of the modeling rule against the demisto version of the XSIAM tenant when running the modeling-rule test command, and skip incompatible modeling rules.
  • Added support for JetBrains IDEs (PyCharm, IDEA, etc.) to the setup-env command, and added a new --ide flag.
  • Internal: Fixed an issue where nativeimage tags were not uploaded to buckets.
  • Fixed an issue where lint -g crashed when comparing changes against branches which are not master.
  • Fixed an issue in prepare-content command where the incident to alert process was not triggered when the playbook is set to only XSIAM.
  • Fixed an issue where validate -g command crashed when comparing changes against branches when in detached head state.
  • Add support for tests to run on specified marketplaces.

v1.25.1

31 Dec 18:44
3d75656
Compare
Choose a tag to compare
  • Added the clean flag to setup-env to delete temp files that were created by lint from the repo.
  • Fixed an issue in validate where there is a specific value for marketplace in isFetch parameter.
  • Fixed an issue where the build number was incorrectly shown in XSOAR marketplace when using the upload command on external repositories via GitLab Pipelines.
  • Added support for excluding_support_level property in pre-commit command to exclude specific support level from running hooks.
  • Added support for the List content-item to prepare-content and split.
  • Breaking change: The download command will no longer download the content-item List in a unified file but instead will split the content-item List into two files (metadata and data).
  • Fixed an issue in generate-docs where the description field was missing from an argument.
  • Changed the log level of some pre-commit DockerHook messages from info to debug.

v1.25.0

18 Dec 15:28
Compare
Choose a tag to compare
  • Added support to detect automatically the playground-id when running cli commands in xsoar-6.
  • Added support to return war-room entries when running cli commands.
  • Added support to automatically detect the correct file model by file path when reading files.
  • Fixed an issue where run-playbook command didn't work if the url argument was not provided.
  • Fixed an issue where validate command failed on valid complex layout rules and triggers.
  • Fixed an issue where validate command failed with release notes files for assets modeling rules folder.
  • Added support for skip property in pre-commit hooks.
  • generate-unit-tests command will require installation with pip install demisto-sdk[generate-unit-tests].
  • added the IN150 and IN161 errors to allowed ignore errors list.
  • Added support for env, copy_files property in pre-commit docker hooks.
  • Added support to run specific hooks in pre-commit. Use with demisto-sdk pre-commit <hook>.
  • Breaking change: Removed the command run-unit-tests. Use demisto-sdk pre-commit pytest-in-docker instead.
  • Breaking change: Removed the --unit-test argument in pre-commit. To skip unit tests, run with --no-docker or with skip=pytest-in-docker,
  • Fixed an issue where SDK commands were failing to execute correctly when supplied a path outside the Content repository.

v1.24.0

03 Dec 14:27
ab83025
Compare
Choose a tag to compare
  • Fixed an issue where the error was not clear when trying to retrieve the server version.
  • Fixed an issue in prepare-content where tags were added to metadata because of test scripts.
  • Fixed an issue in coverage-analyze to exit gracefully in case that the .coverage file doesn't exist.
  • Breaking change: ValidateManager was renamed to OldValidateManager and can now be found at the following path.
  • Fixed an issue where to_id_set_entity method failed on id extraction due to missing pack.
  • Fixed an issue where run-playbook command did not work.
  • Fixed an issue in setup-env command where the virtual environment failed to set up.
  • Fixed an issue in pre-commit command where False properties were deleted.
  • Fixed an issue in coverage-analyze command where the report_dir does not exist.
  • Added support for json5 file, allowing to write files and read files from specific git branches, local file system, or from any remote api .
  • Fixed an issue in upload command where the marketplace field was not taken into consideration when uploading single content-items.
  • Added support for Assets Modeling Rule new content item in all demisto-sdk commands.

v1.23.0

19 Nov 10:01
Compare
Choose a tag to compare
  • 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.

v1.22.0

12 Nov 07:09
Compare
Choose a tag to compare
  • 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.