Skip to content

Commit

Permalink
Update dependency-submission.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kruplm authored Dec 13, 2024
1 parent 6370fbe commit 74bdedf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/dependency-submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<Project>', '<Project Sdk="Microsoft.NET.Sdk">'
} 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/[email protected]
with:
Expand Down

0 comments on commit 74bdedf

Please sign in to comment.