Skip to content

Commit

Permalink
Attempt fix codeql init running (#669)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfs authored Nov 4, 2022
1 parent fffdc53 commit 9dddb7f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
3 changes: 3 additions & 0 deletions Lib/Objects/FileSystemObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ public override string Identity
/// </summary>
public bool? IsExecutable { get; set; }

/// <summary>
/// The type of the executable if it is one
/// </summary>
public EXECUTABLE_TYPE ExecutableType { get; set; } = EXECUTABLE_TYPE.UNKNOWN;

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion Pipelines/core-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ stages:
- template: templates/sdl-job.yml
parameters:
serviceTreeID: 'ac84de32-6898-4dad-ace3-78e8098175dc'

- stage: Build
dependsOn: Test
jobs:
Expand Down
4 changes: 3 additions & 1 deletion Pipelines/templates/nuget-build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
pool:
vmImage: 'windows-latest'
steps:
- task: CodeQL3000Init@0
- task: UseDotNet@2
displayName: Install Dotnet SDK
inputs:
Expand Down Expand Up @@ -91,4 +92,5 @@ jobs:
inputs:
PathtoPublish: 'Archives'
ArtifactName: '${{ parameters.artifactName }}'
publishLocation: 'Container'
publishLocation: 'Container'
- task: CodeQL3000Finalize@0
14 changes: 2 additions & 12 deletions analyses.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,8 @@
"MODIFIED"
],
"ResultType": "FILE",
"Expression": "(is_exe AND windows_exe AND NOT valid_windows_signature) OR (is_exe AND mac_binary AND null_mac_signature)",
"Expression": "(windows_exe AND NOT valid_windows_signature) OR (mac_binary AND null_mac_signature)",
"Clauses": [
{
"Label": "is_exe",
"Field": "IsExecutable",
"Operation": "IsTrue"
},
{
"Label": "windows_exe",
"Field": "ExecutableType",
Expand Down Expand Up @@ -88,13 +83,8 @@
"MODIFIED"
],
"ResultType": "FILEMONITOR",
"Expression": "(is_exe AND windows_exe AND NOT valid_windows_signature) OR (is_exe AND mac_binary AND null_mac_signature)",
"Expression": "(windows_exe AND NOT valid_windows_signature) OR (mac_binary AND null_mac_signature)",
"Clauses": [
{
"Label": "is_exe",
"Field": "FileSystemObject.IsExecutable",
"Operation": "IsTrue"
},
{
"Label": "windows_exe",
"Field": "FileSystemObject.ExecutableType",
Expand Down

0 comments on commit 9dddb7f

Please sign in to comment.