Skip to content

Commit a91e0da

Browse files
reeshika-hclaude
andcommitted
ci: restore .NET projects before SCA scan
The repo root has no project or solution file, so Snyk could not detect target files. Restore both projects first and scan with --all-projects. Refs DX-20927 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent b394ea2 commit a91e0da

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/workflows/sca-scan.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@ jobs:
1010
pull-requests: write
1111
steps:
1212
- uses: actions/checkout@master
13+
- name: Run Dotnet Restore
14+
run: |
15+
dotnet restore ./contentstack.model.generator/contentstack.model.generator.sln
16+
dotnet restore ./contentstack.model.generator.tests/contentstack.model.generator.tests.csproj
1317
- name: Run Snyk to check for vulnerabilities
1418
uses: snyk/actions/dotnet@master
1519
env:
1620
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
1721
with:
18-
args: --fail-on=all
22+
args: --fail-on=all --all-projects
1923
json: true
2024
continue-on-error: true
2125
- uses: contentstack/sca-policy@main

0 commit comments

Comments
 (0)