Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
e3f93cf
added a modeling rule (#22875)
guytamir10 Dec 15, 2022
c54e7d9
Update Docker Image To demisto/py42 (#23065)
content-bot Dec 15, 2022
2530c78
Update Docker Image To demisto/keeper-ksm (#23079)
content-bot Dec 15, 2022
d5f8c92
Update Docker Image To demisto/octoxlabs (#23082)
content-bot Dec 15, 2022
bedadb1
Update Docker Image To demisto/graphql (#23063)
content-bot Dec 15, 2022
63d4b6c
Update Docker Image To demisto/carbon-black-cloud (#23064)
content-bot Dec 15, 2022
57672d1
changes (#23046)
YuvHayun Dec 15, 2022
eb6b604
Update Docker Image To demisto/jmespath (#23057)
content-bot Dec 15, 2022
826027b
Update Docker Image To demisto/googleapi-python3 (#23075)
content-bot Dec 15, 2022
02b820b
Fix alibaba missing fiels in the schema (#23092)
evisochek Dec 15, 2022
e2ebc6a
Update Docker Image To demisto/taxii-server (#23068)
content-bot Dec 15, 2022
f14fa49
Update Docker Image To demisto/glpi (#23074)
content-bot Dec 15, 2022
cc97e63
Update Docker Image To demisto/python3 (#23055)
content-bot Dec 15, 2022
c39b00a
Update Docker Image To demisto/ntlm (#23080)
content-bot Dec 15, 2022
80bd00a
Update Docker Image To demisto/confluent-kafka (#23078)
content-bot Dec 15, 2022
f824242
Update Docker Image To demisto/python (#23059)
content-bot Dec 15, 2022
4ebbb46
Command-Line Analysis - added missing "else" path to playbook (#23096)
idovandijk Dec 15, 2022
03f65c7
Updated SymantecBlueCoatProxySG testdata.json (#23097)
eepstain Dec 15, 2022
6353834
Update Docker Image To demisto/cymruwhois (#23088)
content-bot Dec 15, 2022
fde5d66
DHS Feed v2 (#19760)
BEAdi Dec 15, 2022
cf48355
update docker native image reference (#23102)
GuyAfik Dec 15, 2022
0e55ab8
git-ignore **/collect_tests.log (#22209)
dorschw Dec 15, 2022
202fe71
Jira query add labels to issue_query command (#23054)
thefrieddan1 Dec 18, 2022
d724201
bug - MCAS multiple duplicates entries with raw-response=true (#22954)
MLainer1 Dec 18, 2022
9fa7d45
Microsoft ATA Modeling Rules (#23095)
eepstain Dec 18, 2022
5977e98
Mail Listener fix (#22753)
yucohen Dec 18, 2022
0798312
Update Docker Image To demisto/python3 (#23107)
content-bot Dec 18, 2022
b65c8da
ManageEngine ADAudit Modeling Rules (#22752)
nkanon Dec 18, 2022
ac693c7
Fix to MergeDictArray - wrong description (#23111)
bziser Dec 18, 2022
754d711
Fixed tests and regex for domain formatter (#23047)
Ni-Knight Dec 18, 2022
bb5aa96
Fix for xdr-blacklist-files and xdr-whitelist-files commands (#23040)
bziser Dec 18, 2022
81421e4
Update Docker Image To demisto/ippysocks-py3 (#23090)
content-bot Dec 18, 2022
ea29e57
Update Docker Image To demisto/opnsense (#23081)
content-bot Dec 18, 2022
5987bb2
maillistener v2 - general doc improvements (#23094)
bakatzir Dec 18, 2022
e50d7d8
Core packs change (#22585)
bakatzir Dec 18, 2022
d7d11ee
Fix Basic Auth for Security and Compliance V2 (#23038)
amshamah419 Dec 18, 2022
93ee72f
README update of scripts that use the REST API integration (#23114)
dansterenson Dec 18, 2022
1b2f2a7
Update graph build (#23015)
dantavori Dec 18, 2022
df5d955
Cs malware - fixing incidents flow issues (#23034)
ssokolovich Dec 19, 2022
13ef285
Add deletion in content managment (#20700)
DinaMeylakh Dec 19, 2022
081a650
mp_revamp_final (#23099)
GuyLibermanPA Dec 19, 2022
802cb72
Update Docker Image To demisto/boto3py3 (#23128)
content-bot Dec 19, 2022
b4ffd63
Update Docker Image To demisto/pyjwt3 (#23131)
content-bot Dec 19, 2022
383e4fd
Get tenant name remove dup (#23045)
dansterenson Dec 19, 2022
3b050ef
Email Formatter JSON bug fixed. (#23112)
Ni-Knight Dec 19, 2022
4445ed8
IP Enrichment v2 playbook - Bug Fixes (#23101)
ssokolovich Dec 19, 2022
d43ff3f
Malware fixes v3 (#22948)
ssokolovich Dec 19, 2022
36b5191
bug - ServiceNowV2 not changing num of fetched incidents (#23043)
MLainer1 Dec 19, 2022
f4e9e36
Codeowners update (#23142)
Shellyber Dec 19, 2022
5b8b0ae
Update Docker Image To demisto/duoadmin3 (#23133)
content-bot Dec 19, 2022
6144704
CI/CD - update demisto-api-install-packs command (#22991)
adi88d Dec 19, 2022
7859384
[VirusTotal] Fix domain relationships retrieval (#23103) (#23143)
content-bot Dec 19, 2022
e791c80
Adding credential support. (#23104) (#23139)
content-bot Dec 19, 2022
bac0cdf
Data Source Tag (#23014)
merit-maita Dec 19, 2022
2931acc
AHA integration, add support to idea get and edit. (#22730)
thefrieddan1 Dec 19, 2022
e77c087
Threat vault v2 (#21872)
israelpoli Dec 19, 2022
261d65c
Fix error in MicrosoftAPIModule in case `ExecutedCommands` is None (#…
MichaelYochpaz Dec 19, 2022
0059e37
1.8.1 (#23147)
dorschw Dec 19, 2022
10f0067
adding merge request playbook of gitlab (#22710)
maimorag Dec 19, 2022
f6f24ea
Added password complexity arguments to the IAMInitADUser script (#22420)
idovandijk Dec 20, 2022
d3b7bea
Enrichment for verdict (#23119)
melamedbn Dec 20, 2022
a37bf05
aws region fix (#23121)
yucohen Dec 20, 2022
1c3a179
Update Docker Image To demisto/python3 (#23127)
content-bot Dec 20, 2022
af2760c
Update Docker Image To demisto/cloaken (#23132)
content-bot Dec 20, 2022
f1fb8d9
update code owners (#23158)
GuyAfik Dec 20, 2022
ef55149
Bpa update the human readable headers (#23044)
MosheEichler Dec 20, 2022
8b25303
Akamai fetch fix (#22638)
MosheEichler Dec 20, 2022
fce03b8
Aws ec2 bug fix (#23162)
GuyAfik Dec 20, 2022
ae8d8a3
remove the prefix of marketplacev2: from the tag (#23154)
anara123 Dec 20, 2022
b676569
Updating-Readme-Round3 (#23165)
nkanon Dec 20, 2022
0b0ec43
fix Exemples and Readme (#23048) (#23170)
content-bot Dec 20, 2022
516d32c
ManageEngine ADManager Modeling Rules (#22985)
nkanon Dec 20, 2022
7138bb3
skip tests that using ews_mail_sender_srtest02 instance (#23171)
adi88d Dec 20, 2022
259f901
create modeling rules on google drive (#21247)
guytamir10 Dec 21, 2022
aa33188
MSDE vulnerability module (#22653)
sapirshuker Dec 21, 2022
b521c84
URL type regex hyphen bug (#23120)
Ni-Knight Dec 21, 2022
0279189
Update Docker Image To demisto/chromium (#23181)
content-bot Dec 21, 2022
b7b4731
Update Docker Image To demisto/graphql (#23180)
content-bot Dec 21, 2022
7332260
Update Docker Image To demisto/feed-performance-test (#23184)
content-bot Dec 21, 2022
76b60ce
Update Docker Image To demisto/pyjwt3 (#23179)
content-bot Dec 21, 2022
411a32d
Update Docker Image To demisto/fastapi (#23182)
content-bot Dec 21, 2022
fbe9220
Update Docker Image To demisto/btfl-soup (#23187)
content-bot Dec 21, 2022
6e3d1f6
Update Docker Image To demisto/opencti (#23188)
content-bot Dec 21, 2022
7c3b287
Update Docker Image To demisto/tesseract (#23194)
content-bot Dec 21, 2022
a4e7b1f
Update Docker Image To demisto/resilient (#23193)
content-bot Dec 21, 2022
0339aa3
Update Docker Image To demisto/crypto (#23178)
content-bot Dec 21, 2022
5361710
Netbox event collector (#22977)
mmhw Dec 21, 2022
a734db8
Update Docker Image To demisto/google-api-py3 (#23190)
content-bot Dec 21, 2022
8d1d7e8
Update Docker Image To demisto/pyotrs (#23195)
content-bot Dec 21, 2022
6c97031
Update Docker Image To demisto/python3 (#23177)
content-bot Dec 21, 2022
bdcd217
Update Docker Image To demisto/pan-os-python (#23196)
content-bot Dec 21, 2022
749a600
Fix to ServiceNow Ticket State Polling PB (#22946)
bziser Dec 21, 2022
3762750
AWS Api Module - Change parameter name (#23176)
mmhw Dec 21, 2022
6eaf907
Update Docker Image To demisto/sixgill (#23197)
content-bot Dec 21, 2022
4436893
Xsoar edl checker (#23146)
content-bot Dec 21, 2022
11f09e9
added pw (#23100)
JudahSchwartz Dec 21, 2022
25a7d47
SentinelOne (Deprecated) - Deprecated. Use the SentinelOne v2 integra…
bakatzir Dec 21, 2022
c095f4b
Added the template_type parameter to build data from a JSON text (#23…
content-bot Dec 21, 2022
702a15f
CrowdStrike Adding Pagination (#23198)
content-bot Dec 21, 2022
73ab19d
Threatconnect timeout bug fix (#23200)
gal-forer Dec 21, 2022
04511f7
SNOW comments and work notes without sys_journal_field (#22509)
darkushin Dec 22, 2022
5f016a6
ProxyNotShell Enhancement (#23210)
melamedbn Dec 22, 2022
9defe3c
Update Docker Image To demisto/py3-tools (#23212)
content-bot Dec 22, 2022
cb3e1f6
Update Docker Image To demisto/google-cloud-translate (#23217)
content-bot Dec 22, 2022
df6f2b2
fix devcontainer and introduced codespaces (#23169)
ilaner Dec 22, 2022
830aad7
Update Docker Image To demisto/flask-nginx (#23213)
content-bot Dec 22, 2022
b225720
Fix the feed api module service key error (#23113)
MosheEichler Dec 22, 2022
0a22074
Update Docker Image To demisto/genericsql (#23216)
content-bot Dec 22, 2022
3d09321
Update Docker Image To demisto/python3 (#23211)
content-bot Dec 22, 2022
03a4c67
Update Docker Image To demisto/googleapi-python3 (#23215)
content-bot Dec 22, 2022
0777543
add USER AGENT incident-filed to XSOAR (#22990)
MosheEichler Dec 22, 2022
dac9489
fix issue in microsoft-365-defender-incident-update command (#23222)
GuyAfik Dec 22, 2022
444cb83
[Saas security Event Collector] - missing events bug fix (#23141)
GuyAfik Dec 22, 2022
93c0346
separating d2 from developertools (#23122)
DinaMeylakh Dec 22, 2022
96016a1
adding redirect_std_out integration param to vmware (#23167)
YuvHayun Dec 22, 2022
6095716
config certifacte info only if needed (#23228)
ilaner Dec 22, 2022
2de73e4
removing the general readme in gitlab since it is not relevant to xsa…
maimorag Dec 22, 2022
5efe99c
QRadar - improvment in mirroring performance (#22980)
ilaner Dec 22, 2022
a9734f5
Microsoft Graph Mail Enhancement (#23041)
MichaelYochpaz Dec 22, 2022
64e2403
Updates RPR | Rbrowassrf (#23239)
altmannyarden Dec 22, 2022
8e97edb
remove .None from markdown files (#23221)
MosheEichler Dec 24, 2022
d927a5e
Fix the PytzUsageWarning (#23203)
MosheEichler Dec 25, 2022
5bd45b6
Microsoft graph security fix filters (#23148)
MosheEichler Dec 25, 2022
59a44a6
[PAN-OS] - fix bug in pan-os-platform-get-ha-state command (#23201)
GuyAfik Dec 25, 2022
c31f03a
update api to use v2 (#23238)
DeanArbel Dec 25, 2022
01f1566
Contrib/Google Chronicle Backstory Release 212 (#23126) (#23258)
content-bot Dec 25, 2022
0e261ac
[ServiceNow] Support custom state field (#22720)
michal-dagan Dec 25, 2022
b67301e
OWASSRF Updates (#23260)
melamedbn Dec 25, 2022
d34199e
Parse emails docker image (#23266)
daryakoval Dec 25, 2022
7061c8b
Update Docker Image To demisto/flask-nginx (#23246)
content-bot Dec 25, 2022
eb7ed05
Update Docker Image To demisto/py3-tools (#23245)
content-bot Dec 25, 2022
63814ff
Added createNewIndicatorsOnly script (creating only new indicators in…
content-bot Dec 26, 2022
5abb8d8
XDR entity investigation (#23161)
ArikDay Dec 26, 2022
451cb79
Delete stdout redirect opencti (#23227)
YuvHayun Dec 26, 2022
bdba8be
Pass arguments to SSLAdapter cstr in kwargs dict. (#23273)
thefrieddan1 Dec 26, 2022
ce531be
Remove download test json (#22603)
gal-forer Dec 26, 2022
4e60873
symantec endpoint protection modeling rules and parsing rule (#23226)
yasta5 Dec 26, 2022
6bf1a21
Delinea Secret Sever Modeling Rules (#23229)
nkanon Dec 26, 2022
7a8924e
TransformIndicatorToCS falcon IOC bug fix (#23223)
dansterenson Dec 26, 2022
178631e
Bump commander from 5.1.0 to 10.0.0
dependabot[bot] Jan 16, 2023
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
  •  
  •  
  •  
39 changes: 19 additions & 20 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,34 +1,33 @@
FROM python:3.10-slim-bullseye

ADD createCerts.sh .
RUN apt-get update && apt-get install dos2unix -y \
&& dos2unix /createCerts.sh \
&& chmod +x /createCerts.sh \
&& /createCerts.sh /usr/local/share/ca-certificates/certs.crt \
&& update-ca-certificates \
&& apt-get install python2 -y

ENV USERNAME demisto
ENV HOME /home/$USERNAME
ENV NODE_EXTRA_CA_CERTS /usr/local/share/ca-certificates/certs.crt
ENV PATH $PATH:$HOME/.local/bin:/root/.local/bin:/usr/local/share/nvm/current/bin

# This is a workaround for VSCode devcontainer features in self signed certificate

ADD https://raw.githubusercontent.com/devcontainers/features/main/src/common-utils/install.sh /install-common.sh
ADD https://raw.githubusercontent.com/devcontainers/features/main/src/git/install.sh /install-git.sh
ADD https://raw.githubusercontent.com/devcontainers/features/main/src/docker-in-docker/install.sh /install-dind.sh
ADD https://raw.githubusercontent.com/devcontainers/features/main/src/node/install.sh /install-node.sh
ADD createCerts.sh .
RUN apt-get update && apt-get install dos2unix git python2 curl -y \
&& dos2unix /createCerts.sh \
&& chmod +x /createCerts.sh \
&& /createCerts.sh $NODE_EXTRA_CA_CERTS \
&& update-ca-certificates \
&& rm -rf /features \
&& git clone https://github.com/devcontainers/features.git /features \
&& cd /features \
# locking to the latest master commit in this repo to prevent breaking changes
# We should update this commit hash from time to time to
&& git checkout 42e5a013cc914f87d0ff7bf613a1f80d9ff57579

RUN UID="1000" GID="1000" bash install-common.sh
RUN VERSION="os-provided" bash install-git.sh
RUN VERSION="latest" bash install-dind.sh
RUN VERSION="lts" bash install-node.sh
# This is a workaround for VSCode devcontainer features in self signed certificate
RUN UID="1000" GID="1000" bash /features/src/common-utils/install.sh
RUN VERSION="os-provided" bash /features/src/git/install.sh
RUN VERSION="latest" bash /features/src/docker-in-docker/install.sh
RUN VERSION="lts" bash /features/src/node/install.sh

# install poetry, configure certificate for git and tools for oh my zsh
RUN curl -sSL https://install.python-poetry.org | python3 - \
&& python -m pip install --user pipx \
RUN python -m pip install --user pipx \
&& python -m pipx ensurepath \
&& pipx install poetry \
&& git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $HOME/.zsh/zsh-syntax-highlighting \
&& echo "source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> $HOME/.zshrc \
&& git clone https://github.com/zsh-users/zsh-autosuggestions $HOME/.zsh/zsh-autosuggestions \
Expand Down
10 changes: 10 additions & 0 deletions .devcontainer/createCerts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
# It tries to connect to a server (for instance, github), show the local certificates and save it to a file.

# We connect to a random server and not paloaltonetworks.com to get external certificates.
# if command fails

if curl -I https://github.com > /dev/null; then
echo "No need to update certificate"
exit
fi

CONNECT_SERVER="github.com:443"

FILE=$1
Expand All @@ -21,3 +28,6 @@ if [ ! -f "$FILE" ]; then
exit
fi

git config --system http.sslCAInfo $FILE


11 changes: 4 additions & 7 deletions .devcontainer/createCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,19 @@ echo "Fixing permissions"

sudo chown demisto .venv
sudo chown demisto node_modules
sudo chown demisto /workspaces
sudo chown -R demisto $HOME
sudo chown -R demisto /workspaces

echo "Setting up git certificate"

sudo git config --system http.sslCAInfo /usr/local/share/ca-certificates/certs.crt

echo "Setting up VSCode paths"

cp .devcontainer/settings.json .vscode/settings.json
touch CommonServerUserPython.py
touch DemistoClassApiModule.py
path=$(printf '%s:' Packs/ApiModules/Scripts/*)
rm -f .env
echo "PYTHONPATH=""$path"":$PYTHONPATH" >> .env
echo "MYPYPATH=""$path"":$MYPYPATH" >> .env

echo "Setting up content dependencies"

NO_HOOKS=1 .hooks/bootstrap
poetry install
npm install
133 changes: 69 additions & 64 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,49 +14,8 @@
"source=node-modules,target=${containerWorkspaceFolder}/node_modules,type=volume",
"source=dind-var-lib-docker,target=/var/lib/docker,type=volume"
],
"containerUser": "demisto",
"remoteUser": "demisto",
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/bin/zsh"
}
},
"cSpell.words": [
"demisto",
"xsoar",
"xsiam",
"fromversion",
"toversion",
"marketplacev",
"ciac",
"whois",
]
},
"extensions": [
"cortexxsoarext.xsoar",
"ms-python.python",
"ms-vscode.PowerShell",
"ms-toolsai.jupyter",
"timonwong.shellcheck",
"GitHub.vscode-pull-request-github",
"eamodio.gitlens",
"ms-azuretools.vscode-docker",
"ms-vscode-remote.remote-containers",
"streetsidesoftware.code-spell-checker",
"njpwerner.autodocstring",
"VisualStudioExptTeam.vscodeintellicode",
"yzhang.markdown-all-in-one",
"shd101wyy.markdown-preview-enhanced",
"Gruntfuggly.todo-tree",
"redhat.vscode-yaml",
"PKief.material-icon-theme",
"mikestead.dotenv",
"KevinRose.vsc-python-indent",
"rangav.vscode-thunder-client",
"ms-python.black-formatter",
"LittleFoxTeam.vscode-python-test-adapter"
],
"remoteEnv": {
"LOCAL_WORKSPACE_PATH": "${localWorkspaceFolder}",
"PATH": "${containerWorkspaceFolder}/.venv/bin:${containerEnv:PATH}",
Expand All @@ -70,26 +29,72 @@
"DEMISTO_VERIFY_SSL": "${localEnv:DEMISTO_VERIFY_SSL}",
"DEMISTO_API_KEY": "${localEnv:DEMISTO_API_KEY}"
},
// this is commented out until VSCode will fix self signed certificate issues
// "features": {
// "ghcr.io/devcontainers/features/docker-in-docker:1": {
// "version": "latest"
// },
// "ghcr.io/devcontainers/features/git:1": {
// "version": "os-provided"
// },
// "ghcr.io/devcontainers/features/powershell:1": {
// "version": "latest"
// },
// "ghcr.io/devcontainers/features/common-utils:1": {
// "version": "latest"
// },
// "ghcr.io/devcontainers/features/node:1": {
// "version": "latest"
// }
// },
// "overrideFeatureInstallOrder": [
// "ghcr.io/devcontainers/features/common-utils:1"
// ],
"onCreateCommand": "dos2unix .devcontainer/createCommand.sh && chmod +x .devcontainer/createCommand.sh && bash .devcontainer/createCommand.sh",
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/bin/zsh"
}
},
"cSpell.words": [
"demisto",
"xsoar",
"xsiam",
"fromversion",
"toversion",
"marketplacev",
"ciac",
"whois",
]
},
"extensions": [
"cortexxsoarext.xsoar",
"ms-python.python",
"ms-vscode.PowerShell",
"ms-toolsai.jupyter",
"timonwong.shellcheck",
"GitHub.vscode-pull-request-github",
"eamodio.gitlens",
"ms-azuretools.vscode-docker",
"ms-vscode-remote.remote-containers",
"streetsidesoftware.code-spell-checker",
"njpwerner.autodocstring",
"VisualStudioExptTeam.vscodeintellicode",
"yzhang.markdown-all-in-one",
"shd101wyy.markdown-preview-enhanced",
"Gruntfuggly.todo-tree",
"redhat.vscode-yaml",
"PKief.material-icon-theme",
"mikestead.dotenv",
"KevinRose.vsc-python-indent",
"rangav.vscode-thunder-client",
"ms-python.black-formatter",
"LittleFoxTeam.vscode-python-test-adapter"
]
}
},
// this is commented out until VSCode will fix self signed certificate issues
// "features": {
// "ghcr.io/devcontainers/features/docker-in-docker:1": {
// "version": "latest"
// },
// "ghcr.io/devcontainers/features/git:1": {
// "version": "os-provided"
// },
// "ghcr.io/devcontainers/features/powershell:1": {
// "version": "latest"
// },
// "ghcr.io/devcontainers/features/common-utils:1": {
// "version": "latest"
// },
// "ghcr.io/devcontainers/features/node:1": {
// "version": "latest"
// }
// },
// "overrideFeatureInstallOrder": [
// "ghcr.io/devcontainers/features/common-utils:1"
// ],
"onCreateCommand": "dos2unix -n .devcontainer/createCommand.sh .devcontainer/createCommand_unix.sh && chmod +x .devcontainer/createCommand_unix.sh && bash .devcontainer/createCommand_unix.sh"
}
4 changes: 2 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/Tests/Marketplace/core_packs_mpv2_list.json @yaakovpraisler @bakatzir @GuyLibermanPA @demisto/content-leaders

# Docker native image
/Tests/native_image_config.json @GuyAfik @JudahSchwartz
/Tests/docker_native_image_config.json @GuyAfik @JudahSchwartz

# Marketplace & Upload-Flow
/Tests/scripts/create_artifacts_graph/create_artifacts.py @ilaner
Expand Down Expand Up @@ -39,7 +39,7 @@

# Important Integrations
/Packs/Jira/Integrations/JiraV2/* @demisto/content-leaders
/Packs/ServiceNow/Integrations/ServiceNowv2/* @demisto/content-leaders
/Packs/ServiceNow/Integrations/ServiceNowv2/* @demisto/content-leaders @Shellyber
/Packs/EWS/Integrations/EWSv2/* @demisto/content-leaders
/Packs/ArcSightESM/Integrations/ArcSightESMv2/* @demisto/content-leaders
/Packs/QRadar/Integrations/QRadar_v3/* @tkatzir
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/check-devcontainer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Check Devcontainer
on:
pull_request:
paths:
- .devcontainer/**
push:
branches:
- master
paths:
- .devcontainer/**
jobs:
Build-Devcontainer:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run demisto-sdk in devcontainer
uses: devcontainers/ci@v0.2
with:
push: never
runCmd: demisto-sdk --version
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ Scripts/**/__init__.py
Integrations/**/__init__.py
Packs/**/__init__.py
requirements.txt
Tests/scripts/infrastructure_tests/collect_tests.log
Tests/scripts/collect_tests.log
**/collect_tests.log

# Environment and reports
.demisto-sdk-conf
Expand All @@ -56,6 +55,7 @@ Packs/**/report_pytest.json

# devcontainer folders
.devcontainer/certs.crt
.devcontainer/createCommand_unix.sh
**/.devcontainer
!/.devcontainer

Expand Down
3 changes: 2 additions & 1 deletion .gitlab/ci/.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

default:
image: docker-io.art.code.pan.run/devdemisto/gitlab-content-ci:1.0.0.41253
image: docker-io.art.code.pan.run/devdemisto/gitlab-content-ci:1.0.0.41284
artifacts:
expire_in: 30 days
paths:
Expand All @@ -19,6 +19,7 @@ stages:
variables:
DONT_CACHE_LAST_RESPONSE: "true"
GCS_MARKET_BUCKET: "marketplace-dist"
GCS_MARKET_BUCKET_DEV: "marketplace-dist-dev"
GCS_MARKET_V2_BUCKET: "marketplace-v2-dist"
GCS_MARKET_XPANSE_BUCKET: "xpanse-dist"
STORAGE_BASE_PATH: ""
Expand Down
5 changes: 4 additions & 1 deletion .gitlab/ci/bucket-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ prepare-testing-bucket-xpanse-upload-flow:
- EXIT_CODE=0
- section_start "Download configuration"
- ./Tests/scripts/download_demisto_conf.sh >> $ARTIFACTS_FOLDER/logs/installations.log
- SECRET_CONF_PATH=$(cat secret_conf_path)
- python3 ./Tests/scripts/add_secrets_file_to_build.py -sa "$GSM_SERVICE_ACCOUNT" -sf "$SECRET_CONF_PATH" -u "$DEMISTO_USERNAME" -p "$DEMISTO_PASSWORD" -gpid "$GSM_PROJECT_ID"
- section_end "Download configuration"
- !reference [.open-ssh-tunnel]
- section_start "Get Instance Variables"
Expand Down Expand Up @@ -169,8 +171,9 @@ install-packs-in-server-master:
- EXIT_CODE=0
- section_start "Download configuration"
- ./Tests/scripts/download_demisto_conf.sh >> $ARTIFACTS_FOLDER/logs/installations.log
- SECRET_CONF_PATH=$(cat secret_conf_path)
- python3 ./Tests/scripts/add_secrets_file_to_build.py -sa "$GSM_SERVICE_ACCOUNT" -sf "$SECRET_CONF_PATH" -u "$DEMISTO_USERNAME" -p "$DEMISTO_PASSWORD" -gpid "$GSM_PROJECT_ID"
- section_end "Download configuration"

- section_start "Lock XSIAM Machine"
- echo "Authenticating GCP"
- gcloud auth activate-service-account --key-file="$GCS_ARTIFACTS_KEY" > auth.out 2>&1
Expand Down
17 changes: 12 additions & 5 deletions .gitlab/ci/global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
.download-demisto-conf:
- section_start "Download content-test-conf" --collapsed
- ./Tests/scripts/download_demisto_conf.sh >> $ARTIFACTS_FOLDER/logs/download_demisto_conf.log
- SECRET_CONF_PATH=$(cat secret_conf_path)
- python3 ./Tests/scripts/add_secrets_file_to_build.py -sa "$GSM_SERVICE_ACCOUNT" -sf "$SECRET_CONF_PATH" -u "$DEMISTO_USERNAME" -p "$DEMISTO_PASSWORD" -gpid "$GSM_PROJECT_ID"
- section_end "Download content-test-conf"

.open-ssh-tunnel:
Expand Down Expand Up @@ -143,6 +145,13 @@
- npm link jsdoc-to-markdown@5.0.3 | tee --append $ARTIFACTS_FOLDER/logs/installations.log # disable-secrets-detection
- section_end "Installing node modules"

.get_last_upload_commit: &get_last_upload_commit
- section_start "Getting last bucket upload commit"
- gcloud auth activate-service-account --key-file="$GCS_MARKET_KEY" > auth.out 2>&1
- gsutil cp "gs://$GCS_MARKET_BUCKET/content/packs/index.json" "$ARTIFACTS_FOLDER/previous_index.json"
- export LAST_UPLOAD_COMMIT=$(cat $ARTIFACTS_FOLDER/previous_index.json | jq -r ".\"commit\"")
- section_end "Getting last bucket upload commit"

.default-before-script:
before_script:
- *setup-network-certs
Expand All @@ -155,9 +164,10 @@
- *install_node_modules
- *install_venv
- *get_contribution_pack
- *get_last_upload_commit
- *install_ssh_keys
- section_start "Build Parameters"
- set | grep -E "^NIGHTLY=|^INSTANCE_TESTS=|^SERVER_BRANCH_NAME=|^ARTIFACT_BUILD_NUM=|^DEMISTO_SDK_NIGHTLY=|^TIME_TO_LIVE=|^CONTRIB_BRANCH=|^FORCE_PACK_UPLOAD=|^PACKS_TO_UPLOAD=|^BUCKET_UPLOAD=|^STORAGE_BASE_PATH=|^OVERRIDE_ALL_PACKS=|^GCS_MARKET_BUCKET=|^GCS_MARKET_V2_BUCKET=|^GCS_MARKET_XPANSE_BUCKET=|^SLACK_CHANNEL=|^NVM_DIR=|^NODE_VERSION=|^PATH=|^ARTIFACTS_FOLDER=|^ENV_RESULTS_PATH="
- set | grep -E "^NIGHTLY=|^INSTANCE_TESTS=|^SERVER_BRANCH_NAME=|^ARTIFACT_BUILD_NUM=|^DEMISTO_SDK_NIGHTLY=|^TIME_TO_LIVE=|^CONTRIB_BRANCH=|^FORCE_PACK_UPLOAD=|^PACKS_TO_UPLOAD=|^BUCKET_UPLOAD=|^STORAGE_BASE_PATH=|^OVERRIDE_ALL_PACKS=|^GCS_MARKET_BUCKET=|^GCS_MARKET_V2_BUCKET=|^GCS_MARKET_XPANSE_BUCKET=|^SLACK_CHANNEL=|^NVM_DIR=|^NODE_VERSION=|^PATH=|^ARTIFACTS_FOLDER=|^ENV_RESULTS_PATH=|^LAST_UPLOAD_COMMIT="
- python --version
- python2 --version
- python3 --version
Expand Down Expand Up @@ -242,10 +252,7 @@
demisto-sdk lint -vvv -p 10 -a --test-xml ./unit-tests --log-path $ARTIFACTS_FOLDER --failure-report $ARTIFACTS_FOLDER --coverage-report $ARTIFACTS_FOLDER/coverage_report -dt 120 --time-measurements-dir $ARTIFACTS_FOLDER
else
if [[ -n $BUCKET_UPLOAD ]]; then
gcloud auth activate-service-account --key-file="$GCS_MARKET_KEY" > auth.out 2>&1
gsutil cp "gs://$GCS_MARKET_BUCKET/content/packs/index.json" "$ARTIFACTS_FOLDER/previous_index.json"
export COMMIT_HASH_COMPARE_TO=$(cat $ARTIFACTS_FOLDER/previous_index.json | jq -r ".\"commit\"")
demisto-sdk lint -vvv -p 8 -g --no-mypy --prev-ver $COMMIT_HASH_COMPARE_TO -v --test-xml ./unit-tests --log-path $ARTIFACTS_FOLDER --failure-report $ARTIFACTS_FOLDER --coverage-report $ARTIFACTS_FOLDER/coverage_report -idp $ARTIFACTS_FOLDER/id_set.json -cdam
demisto-sdk lint -vvv -p 8 -g --no-mypy --prev-ver $LAST_UPLOAD_COMMIT -v --test-xml ./unit-tests --log-path $ARTIFACTS_FOLDER --failure-report $ARTIFACTS_FOLDER --coverage-report $ARTIFACTS_FOLDER/coverage_report -idp $ARTIFACTS_FOLDER/id_set.json -cdam
else
echo "Skipping, Should run on circleCi."
fi
Expand Down
Loading