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

Error in First method in GetPackages task when csproj file doesn't contain any packagereferences #143

Open
amolpatty opened this issue Aug 19, 2021 · 1 comment

Comments

@amolpatty
Copy link

SCANNING: XXXXX.csproj ...

INFO: due to OSS index rate limiting waiting 10 seconds before scanning ...
19:48:38<01> [AUDIT] [WARNING] The Docker host root directory is not mounted on the DevAudit Docker image at /hostroot so no chroot for executables is possible.
19:48:38<01> [AUDIT] [SUCCESS] Detected operating system of environment is debian.
19:48:39<01> [AUDIT] [SUCCESS] Detected operating system version of environment is buster/sid.
19:48:40<01> [AUDIT] [INFO] Using .NET Core package source configuration file /app/XXXXX.csproj.
19:48:40<01> [HOST] [INFO] Using OSS Index as default package vulnerabilities data source for .NET Core package source.
19:48:40<01> [AUDIT] [STATUS] Scanning .NET Core packages.
19:48:40<06> [AUDIT] [INFO] Reading packages from .NET Core C# .csproj file.
19:48:42<06> [AUDIT] [INFO] Scanning NuGet transitive dependencies for .NETCoreApp3.1...
19:48:42<01> [AUDIT] [ERROR] Error in First method in GetPackages task.
19:48:42<01> [AUDIT] [ERROR] Exception occurred.
DEBUG: Result from devaudit script: >252<

`

<PropertyGroup>
    <TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>    

<ItemGroup>        
    <FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

<ItemGroup>
  <ProjectReference Include="..\YYYYYYYYYYYY.csproj" />
</ItemGroup>
`
@mcallaghan-geotab
Copy link

The "verdict" here seems to be that devaudit explodes if there isn't a single PackageReference entry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants