diff --git a/.github/workflows/dependency-submission.yml b/.github/workflows/dependency-submission.yml index ad7eb56fb..940390e97 100644 --- a/.github/workflows/dependency-submission.yml +++ b/.github/workflows/dependency-submission.yml @@ -16,6 +16,20 @@ jobs: - uses: actions/checkout@v3 - name: Create csproj from props run: Copy-Item .\Directory.Packages.props -Destination .\Directory.Packages.csproj + - name: amend csproj + run: | + $file = Get-Content .\Directory.Packages.csproj + $file | ForEach-Object { + if($_.ReadCount -eq 1){ + $_ -replace '', '' + } else { + $_ + } + } | Set-Content .\Directory.Packages.csproj + - name: add csproj to a build-time temp solution + run: | + dotnet new sln --name cve-detection + dotnet sln .\cve-detection.sln add .\Directory.Packages.csproj - name: Component detection uses: advanced-security/component-detection-dependency-submission-action@v0.0.4 with: