Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
7652 commits
Select commit Hold shift + click to select a range
b0b3870
MSGraph - bug fix in entry context after deleting a mail
dantavori Oct 3, 2019
ee0a133
Catch incident create error
liorblob Oct 3, 2019
1539a70
removed search-mailboxes task from playbook
IkaDemisto Oct 3, 2019
6235a36
Merge pull request #4499 from demisto/Splunk-Prettify-Response
guykeller Oct 3, 2019
921295e
Merge pull request #4525 from demisto/ews_pyews_test_fix
IkaDemisto Oct 3, 2019
9f63f72
Rasterize - using Chrome instead of Phantom JS (#4124)
orenzohar Oct 3, 2019
c9e671d
Merge pull request #4475 from demisto/MSGraph
dantavori Oct 3, 2019
a16050f
Changed LogRhythm to LogRhythmRest
ShahafBenYakir Oct 3, 2019
26a404b
Hybrid Analysis - bug fix
dantavori Oct 3, 2019
484e0d5
Merge branch 'master' into rasterize-enhancements
orenzohar Oct 3, 2019
1bf05f6
Merge pull request #4524 from demisto/slack-incidents-error
liorblob Oct 3, 2019
7588046
default value for proxy
orenzohar Oct 3, 2019
623e391
Merge remote-tracking branch 'origin/rasterize-enhancements' into ras…
orenzohar Oct 3, 2019
70d6b9a
default value
orenzohar Oct 3, 2019
7f046b2
default value
orenzohar Oct 3, 2019
ec3e4fd
Merge pull request #4510 from demisto/PwnedV2-UnskippedTest
ronykoz Oct 3, 2019
1f959c4
Update conf.json
yaakovi Oct 4, 2019
24acb5a
Merge pull request #4533 from demisto/ExtendMcAfeeESMTimeout
yaakovi Oct 4, 2019
abfe049
Add the trace to content messages and update the docker tag
Oct 4, 2019
6e2cf42
Merge branch 'master' of github.com:demisto/content into update-sane-…
Oct 4, 2019
fe2acff
Add changelog
Oct 4, 2019
9cd4fd6
Remove the redundant variable
Oct 4, 2019
76edf11
Merge pull request #4530 from demisto/HybridAnalysisTestBug
ShahafBenYakir Oct 5, 2019
7649ba5
Merge branches 'build_shift' and 'master' of github.com:demisto/conte…
ShahafBenYakir Oct 5, 2019
fa8a235
Skipped FilterByList - Test and ThreatQ - Test
ShahafBenYakir Oct 5, 2019
88e2db6
Merge pull request #4527 from demisto/build_shift
ShahafBenYakir Oct 5, 2019
fe2cd4e
Added verification that no slashes exist in ID + tests
Oct 6, 2019
ec0b6c7
Fixing unit tests
Oct 6, 2019
e25ad95
Improved code, removed unnecessary var
Oct 6, 2019
1392cfb
Added final result from function
Oct 6, 2019
f4d2f8c
checking if path is needed
Oct 6, 2019
2be136f
checking if path is needed
Oct 6, 2019
7783ac5
checking if path is needed
Oct 6, 2019
bbfb32c
change validate regex
Oct 6, 2019
c65ccee
changed tests
Oct 6, 2019
489e8e4
fixed logic
Oct 6, 2019
44d0cf7
Added new tests and files for those tests
Oct 6, 2019
977f5ec
fixed tests
Oct 6, 2019
453bd9c
change guid and version
Oct 6, 2019
29a4164
multiline support for playbook update
Oct 6, 2019
428b124
Merge pull request #4509 from demisto/pagerduty-fixes
yaakovi Oct 6, 2019
e81d723
New Integration - SMIME Messaging
Shellyber Oct 6, 2019
f3360e0
Updated descriptions.
kirbles19 Oct 6, 2019
f9d272b
fixed regex
yaakovi Oct 6, 2019
c0560d0
fixed tests
yaakovi Oct 6, 2019
dc13d3b
change lints errors
Oct 6, 2019
28c3ac0
Fixed an issue where incident severity was not properly taken into ac…
idovandijk Oct 6, 2019
20162fc
Remove Archer from skipped
Oct 6, 2019
7634af0
Added European time support for Archer
Oct 6, 2019
56a6ced
removed unnecessary statements
Oct 6, 2019
68072d9
removed unnecessary command
Oct 6, 2019
cd38527
CR fixes
Oct 6, 2019
3ac70d7
updated tests
yaakovi Oct 6, 2019
bd1a571
Merge pull request #4534 from demisto/update-sane-doc-reports-automation
yaakovi Oct 6, 2019
325f154
Update base client (#4487)
jochman Oct 6, 2019
c804f07
updated tests
yaakovi Oct 6, 2019
c59d159
Merge pull request #4544 from demisto/Archer-European-Time-Support
guykeller Oct 6, 2019
815c55a
added unittests
Shellyber Oct 6, 2019
9cdecc9
fixing yml
Shellyber Oct 6, 2019
b14c860
Added print_error in case of an error
Oct 6, 2019
f9a2ad8
Merge pull request #4542 from demisto/Remove-Archer-From-Skipped
guykeller Oct 6, 2019
2b987b8
Fixing flake8
Shellyber Oct 6, 2019
e8b9815
added new command and improved ews-search-mailbox command.
IkaDemisto Oct 6, 2019
f21ed5d
added error handling in ews-get-items-as-eml command
IkaDemisto Oct 6, 2019
689f8fc
instructions on running kafka locally + example code (#4548)
glicht Oct 7, 2019
b3b9cde
Merge pull request #4538 from demisto/ConstantsFix
yaakovi Oct 7, 2019
1f748df
Fixed most of the cr issues.
Shellyber Oct 7, 2019
c2e9207
add integration logo standard (#4551)
Itay4 Oct 7, 2019
7c6f5b0
Merge pull request #4535 from demisto/Verify-No-Slashes-In-ID
guykeller Oct 7, 2019
f156f81
Updated descriptions.
kirbles19 Oct 7, 2019
5728c1a
added support for inbox multi-language
IkaDemisto Oct 7, 2019
67b6798
Process Email - Generic update
orenzohar Oct 7, 2019
fce9f32
added test_module and another unittest
Shellyber Oct 7, 2019
f0df199
Merge remote-tracking branch 'origin/m2crypto-signing' into m2crypto-…
Shellyber Oct 7, 2019
a0e1aaf
fixed test
Shellyber Oct 7, 2019
bc04d60
flake8
Shellyber Oct 7, 2019
eb024a1
fixed test
Shellyber Oct 7, 2019
a4fac5b
fixed test
Shellyber Oct 7, 2019
4be9913
Removed comments
Shellyber Oct 7, 2019
8c5514b
Added release notes
Oct 7, 2019
b6174ad
Changes to RN format
Oct 7, 2019
952e632
Added support in list for panorama-check-logs-status
ShahafBenYakir Oct 7, 2019
c839e37
Merge pull request #4513 from demisto/slack-docs
liorblob Oct 7, 2019
8b6a2c6
Merge pull request #4556 from demisto/Archer-European-Time-Support
guykeller Oct 7, 2019
9140db6
Updated formatting
yaron-libman Oct 7, 2019
69e8dcf
Merge branches 'calculate-severity-v2-inc-sev-fix' and 'master' of ht…
idovandijk Oct 7, 2019
627e310
Updated texts
yaron-libman Oct 7, 2019
e32e0eb
Fixed description fix (formatting needs to be kept correct for YML)
idovandijk Oct 7, 2019
e2353cc
Period
idovandijk Oct 7, 2019
21a3afb
Removed 2 fields that are on SA but won't be released
idovandijk Oct 7, 2019
0098749
Updates accommodating for Critical Assets field in Phishing (#4456)
idovandijk Oct 7, 2019
e7bbec7
Merge pull request #4557 from demisto/traps_new_integration
ShahafBenYakir Oct 7, 2019
49ca002
Added release notes
ShahafBenYakir Oct 7, 2019
f6d5abc
Merge branch 'master' of github.com:demisto/content into traps_new_in…
ShahafBenYakir Oct 7, 2019
209c997
ignoring beta files in structure validations
yaakovi Oct 7, 2019
3152adf
Update Integrations/PaloAltoNetworks_Traps/CHANGELOG.md
yaakovi Oct 7, 2019
005344b
Merge remote-tracking branch 'origin/traps_new_integration' into FixB…
yaakovi Oct 7, 2019
9c6eb16
Merge pull request #4560 from demisto/traps_new_integration
yaakovi Oct 7, 2019
9429ba4
Merge pull request #4562 from demisto/FixBuild
yaakovi Oct 7, 2019
84e23ae
update gmail password parameter docs
yaakovi Oct 7, 2019
6198121
Generated new keys for test_data
Shellyber Oct 8, 2019
891f443
Updated logo and changed keys handling in client
Shellyber Oct 8, 2019
c8da048
More keys handling
Shellyber Oct 8, 2019
3547b09
-
Shellyber Oct 8, 2019
323b1a8
Fixed test_module
Shellyber Oct 8, 2019
a5cc517
Fixed test_module
Shellyber Oct 10, 2019
9ed8832
Merge pull request #4540 from demisto/calculate-severity-v2-inc-sev-fix
michalgold Oct 10, 2019
c7ea98f
Fixed test_module
Shellyber Oct 10, 2019
89af7d0
TruSTAR - CR fixes
dantavori Oct 10, 2019
022cf65
Merge remote-tracking branch 'origin/TruSTAR_Bug' into TruSTAR_Bug
dantavori Oct 10, 2019
66f1778
Merge branch 'master' into TruSTAR_Bug
dantavori Oct 10, 2019
1f772ab
TruSTAR - CR fixes
dantavori Oct 10, 2019
9e32f89
required changes
Shellyber Oct 10, 2019
7b568b3
Merge pull request #4484 from demisto/TruSTAR_Bug
dantavori Oct 10, 2019
86a9010
ServiceNow - added validation to fetch_time parameter
dantavori Oct 10, 2019
700c8d6
ServiceNow - fixed changelog format
dantavori Oct 10, 2019
bd685e7
Update Integrations/IntSight/CHANGELOG.md
yaakovi Oct 10, 2019
189051a
fix not returning entries (#4565)
jochman Oct 10, 2019
869804f
Merge branches 'master' and 'rasterize-enhancements' of github.com:de…
orenzohar Oct 11, 2019
64ab9f3
itay cr
orenzohar Oct 11, 2019
d133449
fix zscaler-undo-blacklist naming bug
martinspielmann Oct 11, 2019
272c699
Reputation email fix (#4567)
glicht Oct 11, 2019
7cb0245
Merge pull request #4573 from demisto/ServiceNow_Bug
dantavori Oct 11, 2019
e21157f
ldap3 extended logging when debug mode is enabled (#4550)
glicht Oct 12, 2019
a2a82bd
fix typo (#4577)
Itay4 Oct 13, 2019
8ac47e3
Merge pull request #4537 from demisto/m2crypto-signing
Shellyber Oct 13, 2019
56a2149
Updated description.
kirbles19 Oct 14, 2019
795407c
Updated new parameter display name
kirbles19 Oct 14, 2019
20230c4
Updated descriptions
kirbles19 Oct 14, 2019
9fa97a6
Added automations EmailDomainWhitelist and EmailDomainBlacklist
Jul 23, 2019
ce27449
Split into package
Oct 14, 2019
075a27b
Redlock improvements (#4571)
glicht Oct 14, 2019
0e12068
Generic poll doc (#4555)
DeanArbel Oct 15, 2019
a3274a9
Update Integrations/IntSight/CHANGELOG.md
yaakovi Oct 15, 2019
082648c
cant skip test by instance so removing it completely. will be restore…
yaakovi Oct 15, 2019
54b0cce
Update IntSight.yml
richardbluestone Oct 15, 2019
1fda91f
Merge pull request #4512 from demisto/fix-intsights-bug
yaakovi Oct 15, 2019
7fcc8ef
Merge branch 'master' into Intsight-indicators2
orlichter1 Oct 15, 2019
d50f90d
Kafka integration - bug fix and enhancements (#4570)
Itay4 Oct 15, 2019
559d40a
Merge pull request #4581 from demisto/SkipMcAfeeESMv11
yaakovi Oct 15, 2019
97fc6d5
Merge pull request #4564 from demisto/GmailUpdatePasswordDocs
yaakovi Oct 15, 2019
100d3dd
Slack - Support changing display name/icon (#4569)
liorblob Oct 15, 2019
7d74c14
Skipped ThreatX
ShahafBenYakir Oct 15, 2019
2f5ff1f
fix devo test
liorblob Oct 15, 2019
eded470
Merge pull request #4483 from demisto/Intsight-indicators2
orlichter1 Oct 15, 2019
f707af3
Removed excluded SSL and proxy option
teizenman Oct 15, 2019
57abf75
Merge branch 'master' into DuoAdminNew
teizenman Oct 15, 2019
4b23c47
Merge pull request #4582 from demisto/fix-devo-test
liorblob Oct 15, 2019
85357b0
Add prismacloud playbook SG allows all traffic (#4471) (#4583)
Itay4 Oct 15, 2019
fadc9a0
Merge branch 'master' into guid_readable
Oct 15, 2019
7d6dcf7
Merge pull request #4221 from demisto/DuoAdminNew
teizenman Oct 15, 2019
9c86dec
New endpoint malware playbook, subplaybooks, mapping, fields & layout…
mayagoldb Oct 15, 2019
e1c888d
change readme to right syntax
Oct 15, 2019
b29f759
tests
orenzohar Oct 15, 2019
4d1b2cd
tests
orenzohar Oct 15, 2019
2031faf
Added printing of AWS machine to slack notification
ShahafBenYakir Oct 15, 2019
ccd5f82
removed unnecessary argument
ShahafBenYakir Oct 15, 2019
4f968ff
Merge pull request #4536 from demisto/guid_readable
GalRabin Oct 15, 2019
b27b68c
Description fix
orlichter1 Oct 15, 2019
098046c
WildFire-v2: fixed test-module
dantavori Oct 15, 2019
a325223
19.10.1 - clear release notes (#4588)
Itay4 Oct 15, 2019
6ed3a51
[Documentation] Update code conventions doc (#4433)
anara123 Oct 15, 2019
9d435f0
Description fix
orlichter1 Oct 15, 2019
d37cf48
Added list reference
ShahafBenYakir Oct 15, 2019
4b88b14
flake 8 issues
ShahafBenYakir Oct 15, 2019
bafa4b2
Merge pull request #4587 from demisto/add_AWS_server_adress_to_slack_…
ShahafBenYakir Oct 15, 2019
c77482a
Mail Sender new: ignore fqdn name which is empty or contains only whi…
glicht Oct 16, 2019
8ed5748
updated document with Type values (#4575)
tinder-marktsujihara Oct 16, 2019
6f110a0
flake 8 issues
ShahafBenYakir Oct 16, 2019
b9e9bdd
Merge branch 'master' into rasterize-enhancements
orenzohar Oct 16, 2019
4a528a6
DKIM Validation-results output+ nonempty outputs
orlichter1 Oct 16, 2019
306496c
Merge pull request #4593 from demisto/add_AWS_server_adress_to_slack_…
ShahafBenYakir Oct 16, 2019
d41ca05
Merge branches 'build_shift' and 'master' of github.com:demisto/conte…
ShahafBenYakir Oct 16, 2019
d785ca9
Changed SlackV2 to only run on nightly
ShahafBenYakir Oct 16, 2019
f726b23
Merge pull request #4584 from demisto/build_shift
ShahafBenYakir Oct 16, 2019
0ed6cec
Unskipped ThreatQ
ShahafBenYakir Oct 16, 2019
d2aeb9e
Merge pull request #4596 from demisto/build_shift
ShahafBenYakir Oct 16, 2019
021843d
Merge branch 'master' of https://github.com/demisto/content into emai…
Oct 16, 2019
b7160ae
Updated descriptions.
kirbles19 Oct 17, 2019
d877348
Fixed key error
ShahafBenYakir Oct 17, 2019
17ea2a5
Merge pull request #4576 from pingunaut/zscaler-undo-blacklist-bug
yaakovi Oct 17, 2019
cf931ef
Create integration-Zscaler_CHANGELOG.md
yaakovi Oct 17, 2019
a6a8f75
Google Docs Integration (#4494)
amit-davidson Oct 17, 2019
efefce7
Merge pull request #4602 from demisto/add_AWS_server_adress_to_slack_…
ShahafBenYakir Oct 17, 2019
975b16e
Skipped Slack due to rate limit
ShahafBenYakir Oct 17, 2019
6321dab
Removed comments from tests with an open issue
ShahafBenYakir Oct 17, 2019
3ea0d20
Merge from mater
ShahafBenYakir Oct 17, 2019
568d1ba
Merge pull request #4604 from demisto/build_shift
orenzohar Oct 17, 2019
b9db359
Merge branch 'master' into remove-comments-from-skipped-tests
ShahafBenYakir Oct 17, 2019
6ba8bbc
Updated description
kirbles19 Oct 17, 2019
1e42a91
Updated description
kirbles19 Oct 17, 2019
793ec69
Merge branches 'ews-enhancement' and 'master' of github.com:demisto/c…
IkaDemisto Oct 17, 2019
53b1369
fix Process Email Generic - Test
orenzohar Oct 17, 2019
df8ac77
Merge remote-tracking branch 'origin/rasterize-enhancements' into ras…
orenzohar Oct 17, 2019
a7a3dd1
changelog
orenzohar Oct 17, 2019
b7f0e3f
Updated description
kirbles19 Oct 17, 2019
7a6e29e
Update Integrations/Palo_Alto_Networks_WildFire_v2/CHANGELOG.md
yaakovi Oct 17, 2019
2daaf49
Merge pull request #4515 from demisto/rasterize-enhancements
orenzohar Oct 17, 2019
19eb1d7
Merge pull request #4603 from demisto/pingunaut_zscaler-undo-blacklis…
yaakovi Oct 17, 2019
393f96a
Merge pull request #4590 from demisto/WildFire_Bug_2
dantavori Oct 17, 2019
19dfdf3
Merge pull request #4605 from demisto/remove-comments-from-skipped-tests
ShahafBenYakir Oct 17, 2019
52b3648
fixed required changes
IkaDemisto Oct 17, 2019
47e617f
fixed error message
IkaDemisto Oct 17, 2019
b2ec9fe
updated change log docs
yaakovi Oct 17, 2019
fb5cec4
mypy fix
IkaDemisto Oct 17, 2019
568c889
mypy fix
IkaDemisto Oct 17, 2019
300ae7c
mypy type ignore added
IkaDemisto Oct 17, 2019
38e0eee
API Token param -> encrypted
orenzohar Oct 17, 2019
3ef53c2
Changelog
orenzohar Oct 17, 2019
e079c00
insecure
orenzohar Oct 17, 2019
23c67b1
fix docker image and secrets validation (#4612)
GalRabin Oct 18, 2019
a51bd08
Update description.
kirbles19 Oct 20, 2019
7f7bd95
Updated descriptions.
kirbles19 Oct 20, 2019
cf6d41d
Updated descriptions.
kirbles19 Oct 20, 2019
fcc0124
Updated descriptions.
kirbles19 Oct 20, 2019
4b0f109
Update type of values in last run dict
guyfreund Oct 20, 2019
014b136
File convert: convert files using Libre Office (#4578)
glicht Oct 21, 2019
aa6a5f6
SplunkPy - improved app parameter handling (#4592)
Itay4 Oct 21, 2019
ba05c6a
DMARC Tags fix
orlichter1 Oct 22, 2019
d7ec81d
Fixed array handling in Splunk notable to incident
Oct 22, 2019
28f550b
Fixed array handling in Splunk notable to incident
Oct 22, 2019
854c554
Merge pull request #4553 from demisto/ews-enhancement
IkaDemisto Oct 22, 2019
3b367cb
Merge pull request #4614 from demisto/api-mask-jira
orenzohar Oct 22, 2019
4685de5
Merge pull request #4589 from demisto/EmailAuthenticityCheck
orlichter1 Oct 22, 2019
83a070b
Fix first fetch default value (#4486)
Oct 22, 2019
4369eaf
proofpoint: fix fetch incidents (#4599)
jochman Oct 22, 2019
8423038
Updated descriptions.
kirbles19 Oct 22, 2019
f31b9f2
Merge branch 'master' of https://github.com/demisto/content into emai…
Oct 22, 2019
7678511
Fix for EmailDomainBlacklist id
Oct 22, 2019
0a28c08
Updated secrets_white_list.json to pass build checks
Oct 22, 2019
7b9f151
Merge branch 'emailDomainWhitelist_blacklist' of https://github.com/t…
Oct 22, 2019
5589f3b
update logrhythm test
Oct 22, 2019
9896869
Updated yml tests field to say "no test"
Oct 22, 2019
604677a
Updated to pass flake8 checks
Oct 22, 2019
cd5273c
Merge pull request #4637 from demisto/update-lr-test
adi88d Oct 22, 2019
b5b3e02
A few more fixes for linter
Oct 22, 2019
47dba72
Merge pull request #4635 from demisto/Splunk-Array-Handling-Fix
guykeller Oct 22, 2019
477c8f0
GitHub new commands (#4435)
avidan-H Oct 22, 2019
ad8d0f5
Merge pull request #3914 from tundisto/emailDomainWhitelist_blacklist
Oct 22, 2019
69a1073
add parse html (#4638)
GalRabin Oct 22, 2019
e1d6e88
Revert "add parse html (#4638)" (#4647)
Itay4 Oct 22, 2019
a62b9dd
SlashNext: Submitting SlashNextPhishingIR application to be reviewed …
content-bot Oct 22, 2019
259ff9a
Updated descriptions.
kirbles19 Oct 22, 2019
4837cab
handle proofpoint v3 (#4639)
avidan-H Oct 23, 2019
caff3fe
Merge pull request #4613 from demisto/ChangeLogDocsUpdate
yaakovi Oct 23, 2019
fa1fa79
Parse html (#4649)
GalRabin Oct 23, 2019
13d5ef0
Merge pull request #4632 from demisto/fetch-readme-update
guyfreund Oct 23, 2019
08ca398
Update how to recheck license cla (#4642)
glicht Oct 23, 2019
0260faa
Add Step to CircleCI Config
avidan-H Oct 23, 2019
2e1db78
get rid of cal command
avidan-H Oct 23, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
234 changes: 215 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,78 +1,274 @@
version: 2.0
version: 2
jobs:
build:
docker:
- image: ronykoz/content-build-node911:latest
- image: devdemisto/content-build-2and3:2.0.0.2832 # disable-secrets-detection
resource_class: medium+
environment:
CONTENT_VERSION: "18.11.2"
GIT_SHA1: "3ac083b891d2f146ffbad6c7ce0a3be9e4f94b92"
CONTENT_VERSION: "19.10.1"
SERVER_VERSION: "5.0.0"
GIT_SHA1: "8c2c76794ce844ded59c4c5e9484858c7c3c16d3" # guardrails-disable-line disable-secrets-detection
steps:
- run:
name: Look It's a New CircleCI Step
when: always
command: |
echo 'blah blah blah'
echo 'YAY go Content'
- checkout
- setup_remote_docker
- run:
name: Prepare Environment
when: always
command: |
echo 'export CIRCLE_ARTIFACTS="/home/circleci/project/artifacts"' >> $BASH_ENV
echo 'export PATH="/home/circleci/.pyenv/shims:/home/circleci/.local/bin:/home/circleci/.pyenv/bin:${PATH}"' >> $BASH_ENV # disable-secrets-detection
echo 'export PYTHONPATH="/home/circleci/project:${PYTHONPATH}"' >> $BASH_ENV
echo "=== sourcing $BASH_ENV ==="
source $BASH_ENV
sudo mkdir -p -m 777 $CIRCLE_ARTIFACTS
- run:
name: Install dependencies
command: |
chmod +x ./Tests/scripts/*
chmod +x ./Tests/lastest_server_build_scripts/*
pyenv versions
python --version
python3 --version
echo "Parameters: NIGHTLY: $NIGHTLY, NON_AMI_RUN: $NON_AMI_RUN, SERVER_BRANCH_NAME: $SERVER_BRANCH_NAME"
- add_ssh_keys:
fingerprints:
- "02:df:a5:6a:53:9a:f5:5d:bd:a6:fc:b2:db:9b:c9:47"
- "02:df:a5:6a:53:9a:f5:5d:bd:a6:fc:b2:db:9b:c9:47" # disable-secrets-detection
- "f5:25:6a:e5:ac:4b:84:fb:60:54:14:82:f1:e9:6c:f9" # disable-secrets-detection
- run:
name: Create ID Set
when: always
command: |
python ./Tests/scripts/update_id_set.py -r
- run:
name: Infrastucture testing
when: always
command: |
pytest ./Tests/scripts/hook_validations/tests/ -v
pytest ./Tests/scripts/infrastructure_tests/ -v
pytest ./Tests/scripts/test_configure_tests.py -v
- run:
name: Validate Files and Yaml
when: always
command: |
python ./Tests/scripts/validate_files_structure.py -c true
# Run flake8 on all excluding Integraions and Scripts (they will be handled in linting)
./Tests/scripts/pyflake.sh *.py
find . -maxdepth 1 -type d -not \( -path . -o -path ./Integrations -o -path ./Scripts -o -path ./Beta_Integrations \) | xargs ./Tests/scripts/pyflake.sh

[ -n "${BACKWARD_COMPATIBILITY}" ] && CHECK_BACKWARD=false || CHECK_BACKWARD=true
python ./Tests/scripts/validate_files.py -c true -b $CHECK_BACKWARD
- run:
name: Configure Test Filter
when: always
command: |
[ -n "${NIGHTLY}" ] && IS_NIGHTLY=true || IS_NIGHTLY=false
python ./Tests/scripts/configure_tests.py -n $IS_NIGHTLY
- run:
name: Spell Checks
command: |
python ./Tests/scripts/circleci_spell_checker.py $CIRCLE_BRANCH
- run:
name: Build Content Descriptor
command: ./setContentDescriptor.sh $CIRCLE_BUILD_NUM $GIT_SHA1 $CONTENT_VERSION
when: always
command: |
if [ -n "${GITHUB_TOKEN}" ] ;
then
python3 release_notes.py $CONTENT_VERSION $GIT_SHA1 $CIRCLE_BUILD_NUM $SERVER_VERSION --github-token $GITHUB_TOKEN

else
python3 release_notes.py $CONTENT_VERSION $GIT_SHA1 $CIRCLE_BUILD_NUM $SERVER_VERSION
fi
- run:
name: Common Server Documentation
when: always
command: ./Documentation/commonServerDocs.sh
- run:
name: Create Content Artifacts
when: always
command: python content_creator.py $CIRCLE_ARTIFACTS
- store_artifacts:
path: artifacts
destination: artifacts
- run:
name: Run Unit Testing and Lint
when: always
command: SKIP_GIT_COMPARE_FILTER=${NIGHTLY} ./Tests/scripts/run_all_pkg_dev_tasks.sh
- run:
name: Download Artifacts
when: always
command: |
if [[ $CIRCLE_BRANCH =~ pull/[0-9]+ ]]; then
echo "Skipping instance tests for forked PRs"
exit 0
fi
if ./Tests/scripts/is_ami.sh ;
then
echo "Using AMI - Not downloading artifacts"

else
./Tests/scripts/server_get_artifact.sh $SERVER_CI_TOKEN
cp demistoserver.sh ./Tests/scripts/awsinstancetool/ansibleinstall/demistoserver.sh
fi
- run:
name: Download Configuration
when: always
command: |
./Tests/scripts/download_demisto_conf.sh
if [[ $CIRCLE_BRANCH =~ pull/[0-9]+ ]]; then
echo "Skipping instance tests for forked PRs"
exit 0
fi
if ./Tests/scripts/is_ami.sh ;
then
./Tests/scripts/download_demisto_conf.sh

else
./Tests/lastest_server_build_scripts/download_demisto_conf.sh
fi
- run:
name: Create Instance
when: always
command: |
./Tests/scripts/create_instance.sh instance.json
if [[ $CIRCLE_BRANCH =~ pull/[0-9]+ ]]; then
echo "Skipping instance tests for forked PRs"
exit 0
fi
if ./Tests/scripts/is_ami.sh ;
then
if [ -n "${NIGHTLY}" ] ;
then
export IFRA_ENV_TYPE=Content-Master

else
export IFRA_ENV_TYPE=Content-Env
fi
python ./Tests/scripts/awsinstancetool/aws_instance_tool.py -envType $IFRA_ENV_TYPE -outfile ./env_results.json

else
python ./Tests/scripts/awsinstancetool/aws_instance_tool.py -envType CustomBuild -outfile ./env_results.json
fi
- run:
name: Setup Instance
when: always
command: |
if [[ $CIRCLE_BRANCH =~ pull/[0-9]+ ]]; then
echo "Skipping instance tests for forked PRs"
exit 0
fi
if ./Tests/scripts/is_ami.sh ;
then
python ./Tests/scripts/run_content_installation.py
python ./Tests/scripts/wait_until_server_ready.py -c $(cat secret_conf_path) -v $CONTENT_VERSION

else
./Tests/lastest_server_build_scripts/run_installer_on_instance.sh
python ./Tests/scripts/wait_until_server_ready.py -c $(cat secret_conf_path) -v $CONTENT_VERSION --non-ami
fi
- run:
name: Run Tests - Latest GA
shell: /bin/bash
when: always
command: |
if [[ $CIRCLE_BRANCH =~ pull/[0-9]+ ]]; then
echo "Skipping instance tests for forked PRs"
exit 0
fi
if ./Tests/scripts/is_ami.sh ;
then
./Tests/scripts/run_tests.sh "Demisto GA"

else
./Tests/lastest_server_build_scripts/run_tests.sh
fi
- run:
name: Run Tests - One Before GA
shell: /bin/bash
when: always
command: |
./Tests/scripts/run_installer_on_instance.sh
./Tests/scripts/wait_until_server_ready.sh
if [[ $CIRCLE_BRANCH =~ pull/[0-9]+ ]]; then
echo "Skipping instance tests for forked PRs"
exit 0
fi
if ./Tests/scripts/is_ami.sh ;
then
./Tests/scripts/run_tests.sh "Demisto one before GA"

else
echo "Not AMI run, can't run on this version"
fi
- run:
name: Run Tests
name: Run Tests - Two Before GA
shell: /bin/bash
command: ./Tests/scripts/run_tests.sh
when: always
command: |
if [[ $CIRCLE_BRANCH =~ pull/[0-9]+ ]]; then
echo "Skipping instance tests for forked PRs"
exit 0
fi
if ./Tests/scripts/is_ami.sh ;
then
./Tests/scripts/run_tests.sh "Demisto two before GA"

else
echo "Not AMI run, can't run on this version"
fi
- run:
name: Run Tests - Server Master
shell: /bin/bash
when: always
command: |
if [[ $CIRCLE_BRANCH =~ pull/[0-9]+ ]]; then
echo "Skipping instance tests for forked PRs"
exit 0
fi
if ./Tests/scripts/is_ami.sh ;
then
./Tests/scripts/run_tests.sh "Server Master"

else
echo "Not AMI run, can't run on this version"
fi
- run:
name: Slack Notifier
shell: /bin/bash
command: ./Tests/scripts/slack_notifier.sh
command: |
if [[ $CIRCLE_BRANCH =~ pull/[0-9]+ ]]; then
echo "Skipping instance tests for forked PRs"
exit 0
fi
./Tests/scripts/slack_notifier.sh ./env_results.json
when: always
- run:
name: Validate Docker Images
shell: /bin/bash
command: ./Tests/scripts/validate_docker_images.sh
when: always
- run:
name: Instance Test
command: ./Tests/scripts/instance_test.sh
command: |
if [[ $CIRCLE_BRANCH =~ pull/[0-9]+ ]]; then
echo "Skipping instance tests for forked PRs"
exit 0
fi
./Tests/scripts/instance_test.sh
when: always
- run:
name: Destroy Instances
command: ./Tests/scripts/destroy_instances.sh $CIRCLE_ARTIFACTS
command: |
if [[ $CIRCLE_BRANCH =~ pull/[0-9]+ ]]; then
echo "Skipping instance tests for forked PRs"
exit 0
fi
python ./Tests/scripts/destroy_instances.py $CIRCLE_ARTIFACTS ./env_results.json
when: always
- store_artifacts:
path: artifacts
destination: artifacts
when: always

workflows:
version: 2
commit:
jobs:
- build
6 changes: 6 additions & 0 deletions .github/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
newPRWelcomeComment: >
Hi and welcome to the Demisto Content project!
Thank you and congrats on your first pull request, we will review it soon!
Until then you can check out our [documentation](https://github.com/demisto/content/tree/master/docs) for more details.
We would be thrilled to see you get involved in our [Slack DFIR community](https://go.demisto.com/join-our-slack-community) for discussions.
Hope you have a great time here :)
13 changes: 13 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- REMINDER: THIS IS A PUBLIC REPO DO NOT POST HERE SECRETS/SENSITIVE DATA -->

## Status
Ready/In Progress/In Hold(Reason for hold)

Expand Down Expand Up @@ -30,5 +32,16 @@ x.x.x
- [ ] Documentation (with link to it)
- [ ] Code Review

## Dependencies
Mention the dependencies of the entity you changed as given from the precommit hooks in checkboxes, and tick after tested them.
- [ ] Dependency 1
- [ ] Dependency 2
- [ ] Dependency 3

## Additional changes
Describe additional changes done, for example adding a function to common server.

## Technical writer review
Mention and link to the files that require a technical writer review.
- [ ] [YAML file](link)
- [ ] [CHANGELOG](link)
20 changes: 19 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
.DS_Store
.idea
_site
.vscode
_site
TestData/EmailWithNonUnicodeAttachmentName.eml
TestData/EmailWithNonUnicodeSubject.eml
*.pyc
.pytest_cache

CommonServerPython.py
!Scripts/CommonServerPython/CommonServerPython.py
CommonServerUserPython.py
demistomock.py
Tests/filter_file.txt
Tests/id_set.json
.mypy_cache
Scripts/*/*_unified.yml
Integrations/*/*_unified.yml
Beta_Integrations/*/*_unified.yml
conftest.py
!Tests/scripts/dev_envs/pytest/conftest.py
1 change: 1 addition & 0 deletions .guardrails/ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Integrations/Active_Directory_Query/key.pem
32 changes: 28 additions & 4 deletions .hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,15 +1,37 @@
#!/bin/bash

# validating that each modified file has a valid schema, release notes, proper prefix & suffix
echo "Validating files"
python Tests/scripts/validate_files_structure.py
echo "Validating files..."
if [[ -z "${WINDIR}" ]]
then
PYTHONPATH="`pwd`:${PYTHONPATH}" python Tests/scripts/validate_files.py -t true
else
python Tests/scripts/validate_files.py
fi

RES=$?

echo ""
if [[ -n "$CONTENT_PRECOMMIT_RUN_DEV_TASKS" ]]; then
echo "Running content dev tasks (flake8, mypy, pylint, pytst) as env variable CONTENT_PRECOMMIT_RUN_DEV_TASKS is set."
./Tests/scripts/run_all_pkg_dev_tasks.sh
RES=$(($RES + $?))
else
echo "Skipping running dev tasks (flake8, mypy, pylint, pytest). If you want to run this as part of the precommit hook"
echo 'set CONTENT_PRECOMMIT_RUN_DEV_TASKS=1. You can add the following line to ~/.zshrc:'
echo 'echo "export CONTENT_PRECOMMIT_RUN_DEV_TASKS=1" >> ~/.zshrc'
echo ""
echo 'Or if you want to manually run dev tasks: ./Tests/scripts/pkg_dev_test_tasks.py -d <integration/script dir>'
echo 'Example: ./Tests/scripts/pkg_dev_test_tasks.py -d Scripts/ParseEmailFiles'
fi

if [[ $? -ne 0 ]]
then
if [[ $RES -ne 0 ]]
then
echo "Please fix the aforementioned errors and then commit again"
exit 1
fi


# prevent push to master
if [ -z "$1" ]; then
protected_branch='master'
Expand All @@ -19,3 +41,5 @@ if [ -z "$1" ]; then
exit 1
fi
fi

echo ""
Loading