-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
552 changed files
with
59,824 additions
and
17,182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Content Validations | ||
run-name: Content Validation running on ${{ github.ref_name }} | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
# Allows to run workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
ContentValidations: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: npm install -g npm@6.14.15;which npm;npm -v | ||
- name: npm install | ||
run: npm install | ||
- name: File Content Validations | ||
run: npm run tsc && node .script/contentValidator.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Data Connector Validations | ||
run-name: Data Connector running on ${{ github.ref_name }} | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
# Allows to run workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
DataConnectorValidations: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: npm install -g npm@6.14.15;which npm;npm -v | ||
- name: npm install | ||
run: npm install | ||
- name: Data Connector Validations | ||
run: npm run tsc && node .script/dataConnectorValidator.js |
24 changes: 24 additions & 0 deletions
24
.github/workflows/detection-template-schema-validations.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Detection Template Schema Validations | ||
run-name: Detection Template Schema Validations running on ${{ github.ref_name }} | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
# Allows to run workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
DetectionTemplateSchemaValidation: | ||
runs-on: ubuntu-latest | ||
env: | ||
buildConfiguration: Release | ||
dotnetSdkVersion: 3.1.401 | ||
PRNUM: ${{ github.event.pull_request.number }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use .NET Core SDK ${{ env.dotnetSdkVersion }} | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: ${{ env.dotnetSdkVersion }} | ||
- name: Run Detection template structure validation tests | ||
run: dotnet test .script/tests/detectionTemplateSchemaValidation/DetectionTemplateSchemaValidation.Tests.csproj --configuration ${{ env.buildConfiguration }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Detection Validations | ||
run-name: Detection Validations running on ${{ github.ref_name }} | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
# Allows to run workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
DetectionsValidations: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: npm install -g npm@6.14.15;which npm;npm -v | ||
- name: npm install | ||
run: npm install | ||
- name: Id Change Validation | ||
run: npm run tsc && node .script/idChangeValidator.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Documents Broken Link Validation | ||
run-name: Documents Broken Link Validation running on ${{ github.ref_name }} | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
# Allows to run workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
DocumentsLinkValidation: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: npm install -g npm@6.14.15;which npm;npm -v | ||
- name: npm install | ||
run: npm install | ||
- name: Documents link locale validation | ||
run: npm run tsc && node .script/documentsLinkValidator.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: JSON File Syntax Validation | ||
run-name: JSON File Syntax Validation running on ${{ github.ref_name }} | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
# Allows to run workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
JsonFileValidation: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: npm install -g npm@6.14.15;which npm;npm -v | ||
- name: npm install | ||
run: npm install | ||
- name: Json File Syntax Validation | ||
run: npm run tsc && node .script/jsonFileValidator.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: KQL Validations | ||
run-name: KQL Validations running on ${{ github.ref_name }} | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
# Allows to run workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
KqlValidations: | ||
runs-on: ubuntu-latest | ||
env: | ||
buildConfiguration: Release | ||
dotnetSdkVersion: 6.0.x | ||
PRNUM: ${{ github.event.pull_request.number }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use .NET Core SDK ${{ env.dotnetSdkVersion }} | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: ${{ env.dotnetSdkVersion }} | ||
- name: Run KQL Validation tests | ||
run: dotnet test .script/tests/KqlvalidationsTests/Kqlvalidations.Tests.csproj --configuration ${{ env.buildConfiguration }} | ||
env: | ||
GITHUBAPPID: ${{ secrets.APPLICATION_ID }} | ||
GITHUBAPPINSTALLATIONID: ${{ secrets.APPLICATION_INSTALLATION_ID }} | ||
GITHUBAPPPRIVATEKEY: ${{ secrets.APPLICATION_PRIVATE_KEY }} | ||
SYSTEM_PULLREQUEST_ISFORK: ${{ github.event.pull_request.head.repo.fork }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Logo Validation | ||
run-name: Logo Validation running on ${{ github.ref_name }} | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
# Allows to run workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
logoValidator: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: npm install -g npm@6.14.15;which npm;npm -v | ||
- name: npm install | ||
run: npm install | ||
- name: Logo File Validation | ||
run: npm run tsc && node .script/logoValidator.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Playbook Validations | ||
run-name: Playbook Validations running on ${{ github.ref_name }} | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
# Allows to run workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
PlaybooksValidations: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: npm install -g npm@6.14.15;which npm;npm -v | ||
- name: npm install | ||
run: npm install | ||
- name: Playbook Validations | ||
run: npm run tsc && node .script/playbooksValidator.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Sample Data Validation | ||
run-name: Sample Data Validation running on ${{ github.ref_name }} | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
# Allows to run workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
sampleDataValidator: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: npm install -g npm@6.14.15;which npm;npm -v | ||
- name: npm install | ||
run: npm install | ||
- name: Sample Data Validator | ||
run: npm run tsc && node .script/sampleDataValidator.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Solution Validations | ||
run-name: Solution Validations running on ${{ github.ref_name }} | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
# Allows to run workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
SolutionValidations: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: npm install -g npm@6.14.15;which npm;npm -v | ||
- name: npm install | ||
run: npm install | ||
- name: Solution Validations | ||
run: npm run tsc && node .script/SolutionValidations/solutionValidator.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Workbook Metadata Validations | ||
run-name: Workbook Metadata Validations running on ${{ github.ref_name }} | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
# Allows to run workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
WorkbooksValidations: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: npm install -g npm@6.14.15;which npm;npm -v | ||
- name: npm install | ||
run: npm install | ||
- name: Workbooks Metadata Validations | ||
run: npm run tsc && node .script/workbooksMetadataValidator.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Workbook Template Validations | ||
run-name: Workbook Template Validations running on ${{ github.ref_name }} | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
# Allows to run workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
WorkbooksTemplateValidations: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: npm install -g npm@6.14.15;which npm;npm -v | ||
- name: npm install | ||
run: npm install | ||
- name: Workbooks Template Validations | ||
run: npm run tsc && node .script/workbooksTemplateValidator.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: YAML File Syntax Validation | ||
run-name: YAML File Syntax Validation running on ${{ github.ref_name }} | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
# Allows to run workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
YamlFileValidation: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: npm install -g npm@6.14.15;which npm;npm -v | ||
- name: npm install | ||
run: npm install | ||
- name: YAML File Syntax Validation | ||
run: npm run tsc && node .script/yamlFileValidator.js | ||
|
20 changes: 20 additions & 0 deletions
20
.script/tests/KqlvalidationsTests/CustomFunctions/DataverseSharePointSites.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"FunctionName": "DataverseSharePointSites", | ||
"FunctionParameters": [ | ||
{ | ||
"Name": "MSBizAppsConfigurationWatchlistAlias", | ||
"Type": "string", | ||
"Default": "'MSBizApps-Configuration'" | ||
} | ||
], | ||
"FunctionResultColumns": [ | ||
{ | ||
"Name": "InstanceUrl", | ||
"Type": "string" | ||
}, | ||
{ | ||
"Name": "SharePointUrl", | ||
"Type": "string" | ||
} | ||
] | ||
} |
24 changes: 24 additions & 0 deletions
24
.script/tests/KqlvalidationsTests/CustomFunctions/MSBizAppsNetworkAddresses.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"FunctionName": "MSBizAppsNetworkAddresses", | ||
"FunctionParameters": [ | ||
{ | ||
"Name": "NetworkAddressesWatchlistAlias", | ||
"Type": "string", | ||
"Default": "'NetworkAddresses'" | ||
} | ||
], | ||
"FunctionResultColumns": [ | ||
{ | ||
"Name": "IPSubnet", | ||
"Type": "string" | ||
}, | ||
{ | ||
"Name": "RangeName", | ||
"Type": "string" | ||
}, | ||
{ | ||
"Name": "Tags", | ||
"Type": "string" | ||
} | ||
] | ||
} |
18 changes: 18 additions & 0 deletions
18
.script/tests/KqlvalidationsTests/CustomFunctions/MSBizAppsOrgSettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"FunctionName": "MSBizAppsOrgSettings", | ||
"FunctionParameters": [], | ||
"FunctionResultColumns": [ | ||
{ | ||
"Name": "FieldName", | ||
"Type": "string" | ||
}, | ||
{ | ||
"Name": "DisplayName", | ||
"Type": "string" | ||
}, | ||
{ | ||
"Name": "Description", | ||
"Type": "string" | ||
} | ||
] | ||
} |
Oops, something went wrong.