Releases: demisto/demisto-sdk
Releases · demisto/demisto-sdk
v1.27.1
- Updated the validate command (
PA114
) to verify the "currentVersion" field was raised in the pack_metadata when changing specific fields in the pack_metadata file. #3972 - Added support for update-release-notes command to update release notes when changing specific fields in the pack_metadata file. #3972
- Added support to load the correct file content when reading remote files according to its URL. #4050
- Added to the pre-commit command a new hook
validate-deleted-files
which validates it is not possible to delete certain files. #4050 - Added support for
hybrid
field in pack_metadata.json and the integration YAML. #4087 - Improved error handling when reading files locally, remotely or from git. #4081
- Added README to the xsoar-lint command #4043
- Fixed an issue where SDK would crash when running on repoitories which do not have git configured. #4088
- Fixed an issue where reading files on repositories which are not git repositories failed when the path provided was relative path. #4088
- Fixed an issue where lint would crash without internet connectivity. #4098
- Fixed an issue where SDK would crash when trying to read files which are not encoded with utf-8 directly from memory. #4081
- Added description field to Assets Modeling Rules content item. #4005
- Added the
validate-conf-json
pre-commit hook, checking for structure and linked content. #4051
v1.27.0
- Added the graph get-dependencies command. #3992
- Added a new command xsoar-lint and added it as a hook to pre-commit. #3962
- Fixed an issue where lint created containers with the same name leading the command to crash. #4019
- Fixed an issue where secrets command failed in case of detached head git state #4041
- Fixed an issue where a few USES relationships between playbooks were not collected by the playbook parser. #4032
- Fixed an issue where validate failed pre-processing rule id-set file validation. #4042
- Fixed an issue where validate would not mention the reason when failing to connect to MDX. #4048
- Fixed an issue where reading files from git could not be read when a commit did not exist locally. #4052
- Fixed an issue where the upload command failed when using the
DEMISTO_SDK_OFFLINE_ENV
environment variable. #4034 - Fixed an issue where setup-env crashed when trying to upload an instance of an integration into xsoar. #4044
- Fixed an issue where the init command sometimes failed in the dialogue when enter was pressed and not explicitly written false. #4058
- Fixed an issue where validate would state that it failed, even though it shouldn't, and then it would display an empty list of content items when running on specific validations. #4006
- Fixed an issue where reading files from git failed when sending file paths as absolute. #4060
- Code readability improvements in the error-code command. #3322
- Update
update_content_graph
function to create the graph from scratch ifDEMISTO_SDK_GRAPH_FORCE_CREATE
env is set to true. #4037 - Updated the path of the
neo4j
directory, generated & used by thegraph
commands, to project's directory ($HOME/.demisto-sdk
). #4010 - Added a
DEMISTO_SDK_NEO4J_VERSION
environment variable to set a custom Docker tag to pull for theneo4j
image instead of the default one. #4010 - Added
comment:marketplacev2
to the script schema. #4077 - Sped up the way validate checks for deprecated content items. #3578
- Sped up the way validate reads pack_metadata.json files. #3578
- Added support for SVG image files in the validate command. #4047
- Added support to set
deprecated
field for specific marketplaces in content items. #4078 - Added a new step in the validate-changelog to comment the changelog description in PR comments. #4040
- Added support to query the pull request number automatically when running sdk-changelog --init command. #4040
- Modified the logging level of a few messages accross the SDK. #3301
v1.26.2
- 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 thedemisto-sdk graph create
command instead. #4027 - The
update-content-graph
command is now deprecated and will be removed in future releases. Use thedemisto-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 underLists
). #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
- 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
- Log file path (can be set by the
--log-file-path
flag or theDEMISTO_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 constantlydemisto_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 theDEMISTO_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
- Fixed false positives in validate in
GR103
validations https://github.com/demisto/demisto-sdk/pull/3873|#3873 - Add command
sdk-changelog
for creating a yml file to describe the development changes in the SDK https://github.com/demisto/demisto-sdk/pull/3177|#3177 - Locking the
CHANGELOG.md
file for changes when the PR is not a release process https://github.com/demisto/demisto-sdk/pull/3177|#3177
v1.25.2
- 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
- Added the
clean
flag to setup-env to delete temp files that were created bylint
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-itemList
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 frominfo
todebug
.
v1.25.0
- 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 withskip=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
- 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.