Skip to content

Releases: demisto/demisto-sdk

v1.2.4

07 Oct 10:49
fc579d7
Compare
Choose a tag to compare
  • Updated detailed description for community integrations.

v1.2.3

04 Oct 16:05
ce8a1a0
Compare
Choose a tag to compare
  • Fixed an issue where running validate failed on playbook with task that adds tags to the evidence data.
  • Added the displaypassword field to the integration schema.
  • Added new code validations to XSOAR-linter.
    • As warnings messages:
      • demisto.params() should be used only inside main function.
      • demisto.args() should be used only inside main function.
      • Functions args should have type annotations.
  • Added fromversion field validation to test playbooks and scripts in validate command.

v1.2.2

01 Oct 05:53
4259577
Compare
Choose a tag to compare
  • Add support for warning msgs in the report and summary to lint command.
  • Fixed an issue where json-to-outputs determined bool values as int.
  • Fixed an issue where update-release-notes was crushing on --all flag.
  • Fixed an issue where running validate, update-release-notes outside of content repo crushed without a meaningful error message.
  • Added support for layoutscontainer in init contribution flow.
  • Added a validation for tlp_color param in feeds in validate command.
  • Added a validation for removal of integration parameters in validate command.
  • Fixed an issue where update-release-notes was failing with a wrong error message when no pack or input was given.
  • Improved formatting output of the generate-docs command.
  • Add support for env variable DEMISTO_SDK_ID_SET_REFRESH_INTERVAL. Set this env variable to the refresh interval in minutes. The id set will be regenerated only if the refresh interval has passed since the last generation. Useful when generating Script documentation, to avoid re-generating the id_set every run.
  • Added new code validations to XSOAR-linter.
    • As error messages:
      • Longer than 10 seconds sleep statements for non long running integrations.
      • exit() usage.
      • quit() usage.
    • As warnings messages:
      • demisto.log should not be used.
      • main function existence.
      • demito.results should not be used.
      • return_output should not be used.
      • try-except statement in main function.
      • return_error usage in main function.
      • only once return_error usage.
  • Fixed an issue where lint command printed logs twice.
  • Fixed an issue where suffix did not work as expected in the create-content-artifacts command.
  • Added support for prev-ver flag in lint and secrets commands.
  • Added support for text flag to update-release-notes command to add the same text to all release notes.
  • Fixed an issue where validate did not recognize added files if they were modified locally.
  • Added a validation that checks the fromversion field exists and is set to 5.0.0 or above when working or comparing to a non-feature branch in validate command.
  • Added a validation that checks the certification field in the pack_metadata file is valid in validate command.

v1.2.1

17 Sep 03:50
bf3668b
Compare
Choose a tag to compare
  • Added an additional linter XSOAR-linter to the lint command which custom validates py files. currently checks for:
    • Sys.exit usages with non zero value.
    • Any Print usages.
  • Fixed an issue where renamed files were failing on validate.
  • Fixed an issue where single changed files did not required release notes update.
  • Fixed an issue where doc_images required release-notes and validations.
  • Added handling of dependent packs when running update-release-notes on changed APIModules.
    • Added new argument --id-set-path for id_set.json path.
    • When changes to APIModule is detected and an id_set.json is available - the command will update the dependent pack as well.
  • Fixed an issue where the find_type function didn't recognize file types correctly.
  • Added support for indicator fields in update-release-notes command.
  • Fixed an issue where files in test dirs where being validated.

v1.2.0

09 Sep 11:27
5b28b91
Compare
Choose a tag to compare
  • Fixed an issue where format did not update the test playbook from its pack.
  • Fixed an issue where validate validated non integration images.
  • Fixed an issue where update-release-notes did not identified old yml integrations and scripts.
  • Added revision templates to the update-release-notes command.
  • Fixed an issue where update-release-notes crashed when a file was renamed.
  • Fixed an issue where validate failed on deleted files.
  • Fixed an issue where validate validated all images instead of packs only.
  • Fixed an issue where a warning was not printed in the format in case a non-supported file type is inputted.
  • Fixed an issue where validate did not fail if no release notes were added when adding files to existing packs.
  • Added handling of incorrect layout paths via the format command.
  • Refactor create-content-artifacts command - Efficient artifacts creation and better logging.
  • Fixed an issue where image and description files were not handled correctly by validate and update-release-notes commands.
  • Fixed an issue where the format command didn't remove all extra fields in a file.
  • Added an error in case an invalid id_set.json file is found while running the validate command.

v1.1.11

02 Sep 05:04
2549358
Compare
Choose a tag to compare
  • Added line number to secrets' path in secrets command report.
  • Fixed an issue where init a community pack did not present the valid support URL.
  • Fixed an issue where init offered a non relevant pack support type.
  • Fixed an issue where lint did not pull docker images for powershell.
  • Fixed an issue where find-dependencies did not find all the script dependencies.
  • Fixed an issue where find-dependencies did not collect indicator fields as dependencies for playbooks.
  • Updated the validate and the secrets commands to be less dependent on regex.
  • Fixed an issue where lint did not run on circle when docker did not return ping.
  • Updated the missing release notes error message (RN106) in the Validate command.
  • Fixed an issue where Validate would return missing release notes when two packs with the same substring existed in the modified files.
  • Fixed an issue where update-release-notes would add duplicate release notes when two packs with the same substring existed in the modified files.
  • Fixed an issue where update-release-notes would fail to bump new versions if the feature branch was out of sync with the master branch.
  • Fixed an issue where a non-descriptive error would be returned when giving the update-release-notes command a pack which can not be found.
  • Added dependencies check for widgets in find-dependencies command.
  • Added a update-docker flag to format command.
  • Added a json-to-outputs flag to the run command.
  • Added a verbose (-v) flag to format command.
  • Fixed an issue where download added the prefix "playbook-" to the name of playbooks.

v1.1.10

20 Aug 13:16
Compare
Choose a tag to compare
  • Updated the init command. Relevant only when passing the --contribution argument.
    • Added the --author option.
    • The support field of the pack's metadata is set to community.
  • Added a proper error message in the Validate command upon a missing description in the root of the yml.
  • Format now works with a relative path.
  • Validate now fails when all release notes have been excluded.
  • Fixed issue where correct error message would not propagate for invalid images.
  • Added the --skip-pack-dependencies flag to validate command to skip pack dependencies validation. Relevant when using the -g flag.
  • Fixed an issue where Validate and Format commands failed integrations with defaultvalue field in fetch incidents related parameters.
  • Fixed an issue in the Validate command in which unified YAML files were not ignored.
  • Fixed an issue in generate-docs where scripts and playbooks inputs and outputs were not parsed correctly.
  • Fixed an issue in the openapi-codegen command where missing reference fields in the swagger JSON caused errors.
  • Fixed an issue in the openapi-codegen command where empty objects in the swagger JSON paths caused errors.
  • update-release-notes command now accept path of the pack instead of pack name.
  • Fixed an issue where generate-docs was inserting unnecessary escape characters.
  • Fixed an issue in the update-release-notes command where changes to the pack_metadata were not detected.

v1.1.9

12 Aug 14:50
Compare
Choose a tag to compare
  • Fixed an issue where update-release-notes command failed on invalid file types.

v1.1.8

11 Aug 12:18
Compare
Choose a tag to compare
  • Fixed a regression where upload command failed on test playbooks.
  • Added new githubUser field in pack metadata init command.
  • Support beta integration in the commands split-yml, extract-code, generate-test-playbook and generate-docs.
  • Fixed an issue where find-dependencies ignored toversion field in content items.
  • Added support for layoutscontainer, classifier_5_9_9, mapper, report, and widget in the Format command.
  • Fixed an issue where Format will set the ID field to be equal to the name field in modified playbooks.
  • Fixed an issue where Format did not work for test playbooks.
  • Improved update-release-notes command:
    • Write content description to release notes for new items.
    • Update format for file types without description: Connections, Incident Types, Indicator Types, Layouts, Incident Fields.
  • Added a validation for feedTags param in feeds in validate command.
  • Fixed readme validation issue in community support packs.
  • Added the openapi-codegen command to generate integrations from OpenAPI specification files.
  • Fixed an issue were release notes validations returned wrong results for CommonScripts pack.
  • Added validation for image links in README files in validate command.
  • Added a validation for default value of fetch param in feeds in validate command.
  • Fixed an issue where the Init command failed on scripts.

v1.1.7

24 Jul 12:45
Compare
Choose a tag to compare
  • Fixed an issue where running the format command on feed integrations removed the defaultvalue fields.
  • Playbook branch marked with skipunavailable is now set as an optional dependency in the find-dependencies command.
  • The feedReputation parameter can now be hidden in a feed integration.
  • Fixed an issue where running the unify command on JS package failed.
  • Added the --no-update flag to the find-dependencies command.
  • Added the following validations in validate command:
    • Validating that a pack does not depend on NonSupported / Deprecated packs.