Refactor code structure for improved readability and maintainability; removed redundant code blocks and optimized function calls.
This commit is contained in:
31
docs/policy/fixtures/policy-auth-signal-reachability.json
Normal file
31
docs/policy/fixtures/policy-auth-signal-reachability.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"id": "ulid-01J000REACH000000000000000",
|
||||
"tenant": "urn:tenant:demo",
|
||||
"subject": "service://demo-api",
|
||||
"signal_type": "reachability",
|
||||
"source": "signals",
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "runtime",
|
||||
"uri": "cas://runtime-facts/123",
|
||||
"digest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
},
|
||||
{
|
||||
"kind": "attestation",
|
||||
"uri": "cas://attestations/abc",
|
||||
"digest": "sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd"
|
||||
}
|
||||
],
|
||||
"provenance": {
|
||||
"pipeline": "build:reachability-001",
|
||||
"inputs": [
|
||||
"sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
|
||||
],
|
||||
"signer": "sigkey:runtime",
|
||||
"transparency": {
|
||||
"rekor_uuid": "a1b2c3d4",
|
||||
"skip_reason": null
|
||||
}
|
||||
},
|
||||
"created": "2025-11-19T12:00:00Z"
|
||||
}
|
||||
26
docs/policy/fixtures/policy-auth-signal-sample.json
Normal file
26
docs/policy/fixtures/policy-auth-signal-sample.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"id": "ulid-01J00000000000000000000000",
|
||||
"tenant": "urn:tenant:00000000-0000-0000-0000-000000000000",
|
||||
"subject": "purl:pkg:maven/org.example/app@1.2.3",
|
||||
"signal_type": "reachability",
|
||||
"source": "signals",
|
||||
"confidence": 0.92,
|
||||
"evidence": [
|
||||
{
|
||||
"kind": "linkset",
|
||||
"uri": "cas://linksets/advisory-ghsa-1234",
|
||||
"digest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
||||
"scope": "tenant:default"
|
||||
}
|
||||
],
|
||||
"provenance": {
|
||||
"pipeline": "git:abcd1234",
|
||||
"inputs": ["sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"],
|
||||
"signer": "sigkey:policy",
|
||||
"transparency": {
|
||||
"rekor_uuid": null,
|
||||
"skip_reason": "offline"
|
||||
}
|
||||
},
|
||||
"created": "2025-11-19T00:00:00Z"
|
||||
}
|
||||
Reference in New Issue
Block a user