Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0.0.499 - Security Update #24

Merged
merged 13 commits into from
Oct 14, 2024
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ name: "CodeQL"

on:
push:
branches: [ "master" ]
branches: [ "master", "dev" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
branches: [ "master", "dev" ]
schedule:
- cron: '45 5 * * 3'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: windows-latest
permissions:
actions: read
contents: read
Expand Down
115 changes: 0 additions & 115 deletions .github/workflows/dotnet-desktop.yml

This file was deleted.

30 changes: 22 additions & 8 deletions .github/workflows/virus-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,37 @@ on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev

jobs:
virus-scan:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

- name: Install ClamAV
run: sudo apt-get update && sudo apt-get install -y clamav clamav-daemon
- name: Install ClamAV
run: |
sudo apt-get update
sudo apt-get install -y clamav clamav-daemon

- name: Update ClamAV database
run: sudo freshclam
- name: Disable freshclam logging
run: |
sudo cp /etc/clamav/freshclam.conf /etc/clamav/freshclam.conf.bak
sudo sed -i 's/^UpdateLogFile/#UpdateLogFile/' /etc/clamav/freshclam.conf
# Ensure there is no logging defined
grep -q "^LogFile" /etc/clamav/freshclam.conf || echo "LogFile /dev/null" | sudo tee -a /etc/clamav/freshclam.conf

- name: Scan repository for viruses
run: sudo clamscan -r --bell -i .
- name: Update ClamAV database
run: sudo freshclam

- name: Restore freshclam logging (if needed)
run: sudo mv /etc/clamav/freshclam.conf.bak /etc/clamav/freshclam.conf

- name: Scan repository for viruses
run: sudo clamscan -r --bell -i .
1 change: 0 additions & 1 deletion vHC/HC_Reporting/Functions/Collection/CCollections.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using VeeamHealthCheck.Shared;
using Microsoft.Management.Infrastructure;
using VeeamHealthCheck.Functions.Collection.PSCollections;
using System.Web.Services.Description;
using System.Windows;

namespace VeeamHealthCheck.Functions.Collection
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Management.Automation;
using System.Text;
using System.Threading.Tasks;

namespace VeeamHealthCheck.Functions.Collection.PSCollections
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,6 @@ private List<CJobSummaryTypes> JobSessionSummaryToXml(CJobSessSummaryHelper help
maxBackupSize.Add(info.MaxBackupSize);


#if DEBUG
if(info.JobName == "win10trash")
{

}

#endif
if (info.AvgBackupSize != 0 && info.AvgDataSize != 0)
{
if(info.AvgDataSize > info.UsedVmSizeTB)
Expand Down
Binary file modified vHC/HC_Reporting/Health_Check_Icon.ico
Binary file not shown.
21 changes: 10 additions & 11 deletions vHC/HC_Reporting/VeeamHealthCheck.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,28 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0-windows</TargetFramework>
<TargetFramework>net8.0-windows7.0</TargetFramework>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<UseWPF>true</UseWPF>
<Platforms>AnyCPU;x64</Platforms>
<PackageIcon></PackageIcon>
<PackageIconUrl />
<Company>Veeam</Company>
<Authors>AdamC</Authors>
<ApplicationIcon>output.ico</ApplicationIcon>
<AssemblyVersion>2.0.0.487</AssemblyVersion>
<ApplicationIcon>Health_Check_Icon.ico</ApplicationIcon>
<AssemblyVersion>2.0.0.499</AssemblyVersion>
<SignAssembly>False</SignAssembly>
<AssemblyOriginatorKeyFile>vhc_keyfile2.pfx</AssemblyOriginatorKeyFile>
<DelaySign>false</DelaySign>
<FileVersion>2.0.0.487</FileVersion>
<FileVersion>2.0.0.499</FileVersion>
<DebugType>full</DebugType>
<SelfContained>true</SelfContained>
<!--These 2 lines are what produce the single file utility. Possibly doesn't work...-->
<!--<PublishSingleFile>true</PublishSingleFile>-->
<!--<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>-->
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<NeutralLanguage>en-US</NeutralLanguage>
<AnalysisLevel>none</AnalysisLevel>
<AssemblyOriginatorKeyFile>vhc_keyfile2.pfx</AssemblyOriginatorKeyFile>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down Expand Up @@ -94,7 +95,7 @@
</ItemGroup>

<ItemGroup>
<Content Include="output.ico" />
<Content Include="Health_Check_Icon.ico" />
<Content Include="Tools\Scripts\HealthCheck\VBR\Get-NasInfo.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
Expand All @@ -110,15 +111,13 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="CsvHelper" Version="30.0.1" />
<PackageReference Include="CsvHelper" Version="33.0.1" />
<PackageReference Include="DinkToPdf.Standard" Version="1.1.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
<PackageReference Include="Microsoft.Management.Infrastructure" Version="3.0.0" />
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.3.3" />
<PackageReference Include="Node.js" Version="5.3.0" />
<PackageReference Include="Npm" Version="3.5.2" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.6" />
<PackageReference Include="System.Management.Automation" Version="7.3.3" />
<PackageReference Include="System.Management.Automation" Version="7.4.5" />
<PackageReference Include="Tailwind.Extensions.AspNetCore" Version="1.0.0" />
</ItemGroup>

Expand Down Expand Up @@ -177,7 +176,7 @@
<LocalPostBuildBat Include="$(ProjectDir)Tools\build\BuildCopy.bat" Condition="Exists('$(ProjectDir)Tools\build\BuildCopy.bat')" />
</ItemGroup>
<!-- Calls the bat file, if the variable exists, if not this does nothing and silently continues -->
<Exec Command="call @(LocalPostBuildBat)" />
<Exec Command="call @(LocalPostBuildBat)&#xD;&#xA;" />
</Target>

<ItemGroup>
Expand Down
Binary file removed vHC/HC_Reporting/Veeam_HealthCheck_228x228.ico
Binary file not shown.
4 changes: 1 addition & 3 deletions vHC/HC_Reporting/VhcGui.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ private void SetUi()
{
SetImportRelease();

#if DEBUG
SetImportDebug();
#endif

this.Title = _functions.ModeCheck();
_functions.PreRunCheck();

Expand Down
Binary file removed vHC/HC_Reporting/output.ico
Binary file not shown.
32 changes: 16 additions & 16 deletions vHC/VhcXTests/CArgsParserTEST.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VeeamHealthCheck.Startup;
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;
//using VeeamHealthCheck.Startup;

namespace VhcXTests
{
public class CArgsParserTEST
{
[Fact]
public void ParseArgs_Default_Success()
{
}
}
}
//namespace VhcXTests
//{
// public class CArgsParserTEST
// {
// [Fact]
// public void ParseArgs_Default_Success()
// {
// }
// }
//}
Loading
Loading