-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.6 KB
/
code-analysis-evidence.yml
File metadata and controls
46 lines (39 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: code-analysis-evidence
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
jobs:
code-analysis-evidence:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Setup .NET
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4
with:
dotnet-version: |
8.0.x
10.0.102
- name: Verify code analysis evidence
run: bash tools/audit/verify-code-analysis-evidence.sh
- name: Validate result schema
if: always()
run: dotnet restore --locked-mode tools/ci/checks/ResultSchemaValidator/ResultSchemaValidator.csproj && dotnet build -c Release tools/ci/checks/ResultSchemaValidator/ResultSchemaValidator.csproj && dotnet tools/ci/checks/ResultSchemaValidator/bin/Release/net10.0/ResultSchemaValidator.dll --schema tools/ci/schema/result.schema.json --result artifacts/ci/code-analysis-evidence/result.json
- name: Upload Artifact
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: ci-code-analysis-evidence
path: |
artifacts/ci/code-analysis-evidence/
artifacts/audit/code_inventory.json
artifacts/audit/callgraph_inventory.json
artifacts/audit/dead_code_candidates.json
artifacts/audit/redundancy_candidates.json
artifacts/audit/hardening_candidates.json
if-no-files-found: error