@marinjursic/prc-linux-arm64 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +3 -0
- package/bin/LICENSE +21 -0
- package/bin/README.md +335 -0
- package/bin/THIRD_PARTY_NOTICES.md +74 -0
- package/bin/adapters/checkov-v3.3.8.yaml +50 -0
- package/bin/adapters/gitleaks-v8.30.0.yaml +63 -0
- package/bin/adapters/grype-v0.116.1.yaml +58 -0
- package/bin/adapters/syft-v1.51.0.yaml +54 -0
- package/bin/catalog/assertions/core-repository.yaml +625 -0
- package/bin/catalog/assertions/iac.yaml +24 -0
- package/bin/catalog/assertions/supply-chain.yaml +45 -0
- package/bin/catalog/control-contracts.json +1 -0
- package/bin/catalog/control-id-registry.json +110470 -0
- package/bin/catalog/objectives/core-repository.yaml +243 -0
- package/bin/catalog/objectives/iac.yaml +13 -0
- package/bin/catalog/objectives/supply-chain.yaml +13 -0
- package/bin/catalog/profiles/api.yaml +12 -0
- package/bin/catalog/profiles/core-repository.yaml +49 -0
- package/bin/catalog/profiles/iac.yaml +18 -0
- package/bin/catalog/profiles/kubernetes.yaml +15 -0
- package/bin/catalog/profiles/quick.yaml +27 -0
- package/bin/catalog/profiles/supply-chain.yaml +20 -0
- package/bin/docs/architecture/adapters.md +380 -0
- package/bin/docs/architecture/agent-providers.md +188 -0
- package/bin/docs/architecture/applicability.md +80 -0
- package/bin/docs/architecture/catalog-integrity.md +85 -0
- package/bin/docs/architecture/evidence-and-results.md +154 -0
- package/bin/docs/architecture/execution-plans.md +61 -0
- package/bin/docs/architecture/product-contract.md +76 -0
- package/bin/docs/architecture/publisher-trust.md +68 -0
- package/bin/docs/architecture/remediation-contract.md +113 -0
- package/bin/docs/architecture/trust-model.md +95 -0
- package/bin/docs/assets/hero.svg +37 -0
- package/bin/docs/assets/logo.svg +13 -0
- package/bin/docs/assets/production-readiness-scan-demo-poster.png +0 -0
- package/bin/docs/assets/production-readiness-scan-demo.gif +0 -0
- package/bin/docs/assets/production-readiness-scan-demo.mp4 +0 -0
- package/bin/docs/assets/social-card.png +0 -0
- package/bin/docs/assets/social-card.svg +40 -0
- package/bin/docs/checklists/00-readiness-principle.md +17 -0
- package/bin/docs/checklists/01-release-foundations.md +91 -0
- package/bin/docs/checklists/02-product-risk-architecture.md +136 -0
- package/bin/docs/checklists/03-source-build-supply-chain.md +97 -0
- package/bin/docs/checklists/04-environments-quality-experience.md +226 -0
- package/bin/docs/checklists/05-application-security.md +320 -0
- package/bin/docs/checklists/06-data-privacy-performance.md +166 -0
- package/bin/docs/checklists/07-reliability-operations.md +355 -0
- package/bin/docs/checklists/08-maintenance-vendors-compliance.md +112 -0
- package/bin/docs/checklists/09-conditional-modules.md +229 -0
- package/bin/docs/checklists/10-evidence-and-decision.md +111 -0
- package/bin/docs/engineering/00-overview.md +51 -0
- package/bin/docs/engineering/01-governance-and-foundations.md +919 -0
- package/bin/docs/engineering/02-product-and-requirements.md +186 -0
- package/bin/docs/engineering/03-user-experience-web-and-content.md +1352 -0
- package/bin/docs/engineering/04-architecture-and-design.md +387 -0
- package/bin/docs/engineering/05-code-quality-and-implementation.md +1103 -0
- package/bin/docs/engineering/06-application-services-and-apis.md +476 -0
- package/bin/docs/engineering/07-data-and-information-lifecycle.md +1009 -0
- package/bin/docs/engineering/08-security-and-cryptography.md +1215 -0
- package/bin/docs/engineering/09-privacy-and-data-protection.md +205 -0
- package/bin/docs/engineering/10-verification-and-testing.md +841 -0
- package/bin/docs/engineering/11-developer-experience-platform-and-delivery.md +1013 -0
- package/bin/docs/engineering/12-operations-sre-and-support.md +795 -0
- package/bin/docs/engineering/13-documentation-and-knowledge.md +349 -0
- package/bin/docs/engineering/14-trust-safety-and-ecosystems.md +330 -0
- package/bin/docs/engineering/15-ai-ml-and-ai-assisted-development.md +785 -0
- package/bin/docs/engineering/16-specialized-domains-and-release-assurance.md +775 -0
- package/bin/docs/engineering/source-manifest.md +479 -0
- package/bin/docs/guides/ai-assisted-review.md +61 -0
- package/bin/docs/guides/getting-started.md +78 -0
- package/bin/docs/index.md +66 -0
- package/bin/docs/prompts/evidence-challenge.md +26 -0
- package/bin/docs/prompts/full-readiness-review.md +34 -0
- package/bin/docs/prompts/release-diff-review.md +31 -0
- package/bin/docs/records/evidence-record.md +42 -0
- package/bin/docs/records/go-no-go-decision.md +63 -0
- package/bin/docs/records/release-assessment.md +124 -0
- package/bin/docs/records/risk-exception.md +64 -0
- package/bin/docs/references.md +52 -0
- package/bin/docs/scanner/ai-control-review.md +208 -0
- package/bin/docs/scanner/benchmarks.md +122 -0
- package/bin/docs/scanner/cli-contract.md +130 -0
- package/bin/docs/scanner/configuration.md +101 -0
- package/bin/docs/scanner/control-contracts.md +47 -0
- package/bin/docs/scanner/core-repository.md +62 -0
- package/bin/docs/scanner/diff-and-invalidation.md +79 -0
- package/bin/docs/scanner/doctor.md +71 -0
- package/bin/docs/scanner/getting-started.md +355 -0
- package/bin/docs/scanner/go-http-timeouts.md +96 -0
- package/bin/docs/scanner/infrastructure-policy.md +64 -0
- package/bin/docs/scanner/kubernetes-workloads.md +63 -0
- package/bin/docs/scanner/mcp-agent-integration.md +138 -0
- package/bin/docs/scanner/openapi-contracts.md +75 -0
- package/bin/docs/scanner/private-key-armor.md +44 -0
- package/bin/docs/scanner/releases.md +160 -0
- package/bin/docs/scanner/remediation.md +273 -0
- package/bin/docs/scanner/risk-exceptions.md +52 -0
- package/bin/docs/scanner/security-walkthrough.md +236 -0
- package/bin/docs/scanner/state-and-history.md +113 -0
- package/bin/docs/scanner/supply-chain.md +132 -0
- package/bin/docs/scanner/test-discovery.md +60 -0
- package/bin/docs/stylesheets/extra.css +183 -0
- package/bin/fixtures/benchmarks/core-native/suite-comprehensive.yaml +302 -0
- package/bin/fixtures/benchmarks/core-native/suite.yaml +59 -0
- package/bin/fixtures/benchmarks/core-native/targets/baseline/README.md +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/baseline/app.go +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/conflict-template/app.js +5 -0
- package/bin/fixtures/benchmarks/core-native/targets/container-risky-template/Dockerfile +2 -0
- package/bin/fixtures/benchmarks/core-native/targets/container-valid/Dockerfile +2 -0
- package/bin/fixtures/benchmarks/core-native/targets/dependency-lock-missing/package.json +5 -0
- package/bin/fixtures/benchmarks/core-native/targets/dependency-lock-present/package-lock.json +6 -0
- package/bin/fixtures/benchmarks/core-native/targets/dependency-lock-present/package.json +5 -0
- package/bin/fixtures/benchmarks/core-native/targets/empty-manifest-template/package.json +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/final-newline-template/app.py +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/.github/CODEOWNERS +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/.github/dependabot.yml +6 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/.github/workflows/validate.yml +15 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/CODE_OF_CONDUCT.md +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/CONTRIBUTING.md +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/LICENSE +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/README.md +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/SECURITY.md +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/package-lock.json +6 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/package.json +7 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/tests/example.test.js +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-server-timeout-risky-template/go.mod +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-server-timeout-risky-template/server.go +18 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-malformed-template/client.go +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-malformed-template/go.mod +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-risky-template/client.go +7 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-risky-template/go.mod +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-safe/client.go +22 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-safe/go.mod +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-safe/hazards_test.go +8 -0
- package/bin/fixtures/benchmarks/core-native/targets/kubernetes-risky-template/deployment.yaml +27 -0
- package/bin/fixtures/benchmarks/core-native/targets/kubernetes-valid/deployment.yaml +26 -0
- package/bin/fixtures/benchmarks/core-native/targets/openapi-operation-ids-risky-template/openapi.yaml +17 -0
- package/bin/fixtures/benchmarks/core-native/targets/openapi-operation-responses-risky-template/openapi.yaml +11 -0
- package/bin/fixtures/benchmarks/core-native/targets/openapi-root-malformed-template/openapi.yaml +5 -0
- package/bin/fixtures/benchmarks/core-native/targets/openapi-root-risky-template/openapi.yaml +5 -0
- package/bin/fixtures/benchmarks/core-native/targets/openapi-root-valid/openapi.yaml +17 -0
- package/bin/fixtures/benchmarks/core-native/targets/package-test-command/app.js +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/package-test-command/package.json +7 -0
- package/bin/fixtures/benchmarks/core-native/targets/package-test-placeholder/app.js +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/package-test-placeholder/package.json +7 -0
- package/bin/fixtures/benchmarks/core-native/targets/private-key-template/deploy.pem +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/readme-missing/fixture.txt +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/runtime-missing/package-lock.json +6 -0
- package/bin/fixtures/benchmarks/core-native/targets/runtime-missing/package.json +4 -0
- package/bin/fixtures/benchmarks/core-native/targets/terraform-locked/.terraform.lock.hcl +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/terraform-locked/main.tf +7 -0
- package/bin/fixtures/benchmarks/core-native/targets/terraform-unlocked-template/.terraform.lock.hcl +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/terraform-unlocked-template/main.tf +7 -0
- package/bin/fixtures/benchmarks/core-native/targets/test-declaration-valid/app.py +2 -0
- package/bin/fixtures/benchmarks/core-native/targets/test-declaration-valid/tests/test_app.py +5 -0
- package/bin/fixtures/benchmarks/core-native/targets/test-path-without-declaration/app.py +2 -0
- package/bin/fixtures/benchmarks/core-native/targets/test-path-without-declaration/tests/test_app.py +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/workflow-malformed/.github/workflows/validate.yml +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/workflow-no-jobs/.github/workflows/empty.yml +9 -0
- package/bin/fixtures/benchmarks/core-native/targets/workflow-risky/.github/workflows/risky.yml +10 -0
- package/bin/fixtures/benchmarks/core-native/targets/workflow-valid/.github/workflows/validate.yml +14 -0
- package/bin/packs/core-foundation.yaml +25 -0
- package/bin/packs/core-native.yaml +59 -0
- package/bin/prc +0 -0
- package/bin/schemas/adapter-execution-v0.1.schema.json +101 -0
- package/bin/schemas/adapter-execution-v0.2.schema.json +128 -0
- package/bin/schemas/adapter-execution.schema.json +145 -0
- package/bin/schemas/adapter-fixture-report.schema.json +59 -0
- package/bin/schemas/adapter-fixture-suite.schema.json +104 -0
- package/bin/schemas/adapter-manifest-v0.1.schema.json +55 -0
- package/bin/schemas/adapter-manifest-v0.2.schema.json +122 -0
- package/bin/schemas/adapter-manifest-v0.3.schema.json +172 -0
- package/bin/schemas/adapter-manifest.schema.json +299 -0
- package/bin/schemas/adapter-message.schema.json +136 -0
- package/bin/schemas/adapter-registry-report.schema.json +13 -0
- package/bin/schemas/adapter-registry.schema.json +47 -0
- package/bin/schemas/agent-execution-v0.1.schema.json +26 -0
- package/bin/schemas/agent-execution.schema.json +26 -0
- package/bin/schemas/agent-failure-v0.1.schema.json +102 -0
- package/bin/schemas/agent-failure.schema.json +102 -0
- package/bin/schemas/agent-output-v0.1.schema.json +36 -0
- package/bin/schemas/agent-output.schema.json +36 -0
- package/bin/schemas/agent-task-v0.1.schema.json +44 -0
- package/bin/schemas/agent-task.schema.json +46 -0
- package/bin/schemas/assertion-catalog.schema.json +69 -0
- package/bin/schemas/benchmark-report.schema.json +94 -0
- package/bin/schemas/benchmark-suite.schema.json +116 -0
- package/bin/schemas/catalog-bundle.schema.json +27 -0
- package/bin/schemas/catalog-manifest.schema.json +23 -0
- package/bin/schemas/checkov-iac-policy-report.schema.json +82 -0
- package/bin/schemas/control-contracts.schema.json +44 -0
- package/bin/schemas/control-review-output.schema.json +51 -0
- package/bin/schemas/doctor.schema.json +53 -0
- package/bin/schemas/evidence-v0.1.schema.json +21 -0
- package/bin/schemas/evidence.schema.json +21 -0
- package/bin/schemas/finding-v0.1.schema.json +70 -0
- package/bin/schemas/finding.schema.json +70 -0
- package/bin/schemas/fix-contract-v0.1.schema.json +35 -0
- package/bin/schemas/fix-contract-v0.2.schema.json +46 -0
- package/bin/schemas/fix-contract-v0.3.schema.json +49 -0
- package/bin/schemas/fix-contract.schema.json +49 -0
- package/bin/schemas/grype-vulnerability-report.schema.json +88 -0
- package/bin/schemas/history.schema.json +37 -0
- package/bin/schemas/invalidation.schema.json +86 -0
- package/bin/schemas/inventory-v0.1.schema.json +42 -0
- package/bin/schemas/inventory-v0.2.schema.json +95 -0
- package/bin/schemas/inventory-v0.3.schema.json +139 -0
- package/bin/schemas/inventory.schema.json +139 -0
- package/bin/schemas/objective-catalog.schema.json +62 -0
- package/bin/schemas/pack-report.schema.json +16 -0
- package/bin/schemas/pack.schema.json +53 -0
- package/bin/schemas/plan-v0.1.schema.json +31 -0
- package/bin/schemas/plan-v0.2.schema.json +32 -0
- package/bin/schemas/plan-v0.3.schema.json +44 -0
- package/bin/schemas/plan-v0.4.schema.json +48 -0
- package/bin/schemas/plan-v0.5.schema.json +49 -0
- package/bin/schemas/plan-v0.6.schema.json +137 -0
- package/bin/schemas/plan.schema.json +137 -0
- package/bin/schemas/profile.schema.json +42 -0
- package/bin/schemas/project-config.schema.json +128 -0
- package/bin/schemas/release-manifest-v0.1.schema.json +86 -0
- package/bin/schemas/release-manifest-v0.2.schema.json +146 -0
- package/bin/schemas/release-manifest-v0.3.schema.json +146 -0
- package/bin/schemas/release-manifest.schema.json +6 -0
- package/bin/schemas/remediation-candidate-v0.1.schema.json +51 -0
- package/bin/schemas/remediation-candidate-v0.2.schema.json +51 -0
- package/bin/schemas/remediation-candidate-v0.3.schema.json +51 -0
- package/bin/schemas/remediation-candidate-v0.4.schema.json +69 -0
- package/bin/schemas/remediation-candidate.schema.json +69 -0
- package/bin/schemas/remediation-run-v0.1.schema.json +69 -0
- package/bin/schemas/remediation-run-v0.2.schema.json +78 -0
- package/bin/schemas/remediation-run-v0.3.schema.json +86 -0
- package/bin/schemas/remediation-run-v0.4.schema.json +86 -0
- package/bin/schemas/remediation-run-v0.5.schema.json +131 -0
- package/bin/schemas/remediation-run-v0.6.schema.json +143 -0
- package/bin/schemas/remediation-run-v0.7.schema.json +160 -0
- package/bin/schemas/remediation-run-v0.8.schema.json +161 -0
- package/bin/schemas/remediation-run.schema.json +161 -0
- package/bin/schemas/risk-exception-verification.schema.json +17 -0
- package/bin/schemas/risk-exception.schema.json +137 -0
- package/bin/schemas/run-result-v0.1.schema.json +54 -0
- package/bin/schemas/run-result-v0.10.schema.json +64 -0
- package/bin/schemas/run-result-v0.11.schema.json +146 -0
- package/bin/schemas/run-result-v0.2.schema.json +60 -0
- package/bin/schemas/run-result-v0.3.schema.json +52 -0
- package/bin/schemas/run-result-v0.4.schema.json +52 -0
- package/bin/schemas/run-result-v0.5.schema.json +60 -0
- package/bin/schemas/run-result-v0.6.schema.json +61 -0
- package/bin/schemas/run-result-v0.7.schema.json +61 -0
- package/bin/schemas/run-result-v0.8.schema.json +61 -0
- package/bin/schemas/run-result-v0.9.schema.json +77 -0
- package/bin/schemas/run-result.schema.json +165 -0
- package/bin/schemas/signature-verification.schema.json +22 -0
- package/bin/schemas/signature.schema.json +18 -0
- package/bin/schemas/state-check-v0.1.schema.json +27 -0
- package/bin/schemas/state-check.schema.json +28 -0
- package/bin/schemas/trust-store.schema.json +50 -0
- package/bin/schemas/verification-execution-v0.1.schema.json +105 -0
- package/bin/schemas/verification-execution.schema.json +105 -0
- package/bin/schemas/version-v0.1.schema.json +27 -0
- package/bin/schemas/version.schema.json +27 -0
- package/manifest.json +9 -0
- package/package.json +28 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/adapter-manifest-v0.2.schema.json",
|
|
4
|
+
"title": "Production Readiness Adapter Manifest v0.2",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "id", "title", "description", "publisher", "owner", "maintenance", "protocol", "output_schema", "observation_kinds", "compatibility", "tool", "limitations", "runner", "image", "command", "capabilities", "resources"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.adapter-manifest/v0.2"},
|
|
10
|
+
"id": {"type": "string", "pattern": "^prc\\.adapter\\.[a-z0-9.-]+@[0-9]+\\.[0-9]+$"},
|
|
11
|
+
"title": {"type": "string", "minLength": 1},
|
|
12
|
+
"description": {"type": "string", "minLength": 1},
|
|
13
|
+
"publisher": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"required": ["id", "name"],
|
|
17
|
+
"properties": {
|
|
18
|
+
"id": {"type": "string", "pattern": "^[a-z0-9][a-z0-9.-]{0,127}$"},
|
|
19
|
+
"name": {"type": "string", "minLength": 1}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"owner": {"type": "string", "minLength": 1},
|
|
23
|
+
"maintenance": {"enum": ["active", "deprecated"]},
|
|
24
|
+
"protocol": {"const": "prc-adapter-jsonl-v1"},
|
|
25
|
+
"output_schema": {"const": "prc.adapter-message/v0.1"},
|
|
26
|
+
"observation_kinds": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"minItems": 1,
|
|
29
|
+
"uniqueItems": true,
|
|
30
|
+
"items": {"type": "string", "pattern": "^[a-z0-9][a-z0-9.-]{0,127}$"}
|
|
31
|
+
},
|
|
32
|
+
"compatibility": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"required": ["engine_apis"],
|
|
36
|
+
"properties": {
|
|
37
|
+
"engine_apis": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"minItems": 1,
|
|
40
|
+
"uniqueItems": true,
|
|
41
|
+
"items": {"type": "string", "pattern": "^prc\\.engine/v[0-9]+\\.[0-9]+$"}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"tool": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": ["name", "version", "upstream", "formats"],
|
|
49
|
+
"properties": {
|
|
50
|
+
"name": {"type": "string", "minLength": 1},
|
|
51
|
+
"version": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._+-]{0,127}$", "not": {"enum": ["latest", "LATEST", "Latest"]}},
|
|
52
|
+
"upstream": {"type": "string", "format": "uri", "pattern": "^https://"},
|
|
53
|
+
"formats": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"minItems": 1,
|
|
56
|
+
"uniqueItems": true,
|
|
57
|
+
"items": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"required": ["name", "versions"],
|
|
61
|
+
"properties": {
|
|
62
|
+
"name": {"type": "string", "pattern": "^[a-z0-9][a-z0-9.-]{0,127}$"},
|
|
63
|
+
"versions": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"minItems": 1,
|
|
66
|
+
"uniqueItems": true,
|
|
67
|
+
"items": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._+-]{0,127}$"}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"limitations": {
|
|
75
|
+
"type": "array",
|
|
76
|
+
"minItems": 1,
|
|
77
|
+
"uniqueItems": true,
|
|
78
|
+
"items": {"type": "string", "minLength": 1}
|
|
79
|
+
},
|
|
80
|
+
"runner": {"const": "oci"},
|
|
81
|
+
"image": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*@sha256:[0-9a-f]{64}$"
|
|
84
|
+
},
|
|
85
|
+
"command": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"minItems": 1,
|
|
88
|
+
"maxItems": 128,
|
|
89
|
+
"items": {"type": "string"}
|
|
90
|
+
},
|
|
91
|
+
"capabilities": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"required": ["read_workspace", "write_scratch", "network", "network_hosts", "secret_handles", "child_processes"],
|
|
95
|
+
"properties": {
|
|
96
|
+
"read_workspace": {"const": true},
|
|
97
|
+
"write_scratch": {"type": "boolean"},
|
|
98
|
+
"network": {"const": "deny"},
|
|
99
|
+
"network_hosts": {"type": "array", "maxItems": 0},
|
|
100
|
+
"secret_handles": {"type": "array", "maxItems": 0},
|
|
101
|
+
"child_processes": {"const": false}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"resources": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"additionalProperties": false,
|
|
107
|
+
"required": ["timeout_seconds", "memory_mb", "cpus", "pids", "tmpfs_mb", "max_line_bytes", "max_messages", "max_stdin_bytes", "max_stdout_bytes", "max_stderr_bytes"],
|
|
108
|
+
"properties": {
|
|
109
|
+
"timeout_seconds": {"type": "integer", "minimum": 1, "maximum": 3600},
|
|
110
|
+
"memory_mb": {"type": "integer", "minimum": 32, "maximum": 32768},
|
|
111
|
+
"cpus": {"type": "number", "exclusiveMinimum": 0, "maximum": 32},
|
|
112
|
+
"pids": {"type": "integer", "minimum": 1, "maximum": 4096},
|
|
113
|
+
"tmpfs_mb": {"type": "integer", "minimum": 1, "maximum": 4096},
|
|
114
|
+
"max_line_bytes": {"type": "integer", "minimum": 1, "maximum": 4194304},
|
|
115
|
+
"max_messages": {"type": "integer", "minimum": 1, "maximum": 1000000},
|
|
116
|
+
"max_stdin_bytes": {"type": "integer", "minimum": 1, "maximum": 16777216},
|
|
117
|
+
"max_stdout_bytes": {"type": "integer", "minimum": 1, "maximum": 268435456},
|
|
118
|
+
"max_stderr_bytes": {"type": "integer", "minimum": 1, "maximum": 16777216}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/adapter-manifest-v0.3.schema.json",
|
|
4
|
+
"title": "Production Readiness Adapter Manifest v0.3",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "id", "title", "description", "publisher", "owner", "maintenance", "protocol", "output_schema", "observation_kinds", "compatibility", "tool", "limitations", "runner", "image", "command", "capabilities", "resources"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.adapter-manifest/v0.3"},
|
|
10
|
+
"id": {"type": "string", "pattern": "^prc\\.adapter\\.[a-z0-9.-]+@[0-9]+\\.[0-9]+$"},
|
|
11
|
+
"title": {"type": "string", "minLength": 1},
|
|
12
|
+
"description": {"type": "string", "minLength": 1},
|
|
13
|
+
"publisher": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"required": ["id", "name"],
|
|
17
|
+
"properties": {
|
|
18
|
+
"id": {"type": "string", "pattern": "^[a-z0-9][a-z0-9.-]{0,127}$"},
|
|
19
|
+
"name": {"type": "string", "minLength": 1}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"owner": {"type": "string", "minLength": 1},
|
|
23
|
+
"maintenance": {"enum": ["active", "deprecated"]},
|
|
24
|
+
"protocol": {"enum": ["prc-adapter-jsonl-v1", "prc-adapter-gitleaks-json-v1"]},
|
|
25
|
+
"output_schema": {"enum": ["prc.adapter-message/v0.1", "gitleaks.report/v8.30.0"]},
|
|
26
|
+
"observation_kinds": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"minItems": 1,
|
|
29
|
+
"uniqueItems": true,
|
|
30
|
+
"items": {"type": "string", "pattern": "^[a-z0-9][a-z0-9.-]{0,127}$"}
|
|
31
|
+
},
|
|
32
|
+
"compatibility": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"required": ["engine_apis"],
|
|
36
|
+
"properties": {
|
|
37
|
+
"engine_apis": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"minItems": 1,
|
|
40
|
+
"uniqueItems": true,
|
|
41
|
+
"items": {"type": "string", "pattern": "^prc\\.engine/v[0-9]+\\.[0-9]+$"}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"tool": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": ["name", "version", "upstream", "formats"],
|
|
49
|
+
"properties": {
|
|
50
|
+
"name": {"type": "string", "minLength": 1},
|
|
51
|
+
"version": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._+-]{0,127}$", "not": {"enum": ["latest", "LATEST", "Latest"]}},
|
|
52
|
+
"upstream": {"type": "string", "format": "uri", "pattern": "^https://"},
|
|
53
|
+
"formats": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"minItems": 1,
|
|
56
|
+
"uniqueItems": true,
|
|
57
|
+
"items": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"required": ["name", "versions"],
|
|
61
|
+
"properties": {
|
|
62
|
+
"name": {"type": "string", "pattern": "^[a-z0-9][a-z0-9.-]{0,127}$"},
|
|
63
|
+
"versions": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"minItems": 1,
|
|
66
|
+
"uniqueItems": true,
|
|
67
|
+
"items": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._+-]{0,127}$"}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"limitations": {
|
|
75
|
+
"type": "array",
|
|
76
|
+
"minItems": 1,
|
|
77
|
+
"uniqueItems": true,
|
|
78
|
+
"items": {"type": "string", "minLength": 1}
|
|
79
|
+
},
|
|
80
|
+
"runner": {"const": "oci"},
|
|
81
|
+
"image": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*@sha256:[0-9a-f]{64}$"
|
|
84
|
+
},
|
|
85
|
+
"command": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"minItems": 1,
|
|
88
|
+
"maxItems": 128,
|
|
89
|
+
"items": {"type": "string"}
|
|
90
|
+
},
|
|
91
|
+
"capabilities": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"required": ["read_workspace", "write_scratch", "network", "network_hosts", "secret_handles", "child_processes"],
|
|
95
|
+
"properties": {
|
|
96
|
+
"read_workspace": {"const": true},
|
|
97
|
+
"write_scratch": {"type": "boolean"},
|
|
98
|
+
"network": {"const": "deny"},
|
|
99
|
+
"network_hosts": {"type": "array", "maxItems": 0},
|
|
100
|
+
"secret_handles": {"type": "array", "maxItems": 0},
|
|
101
|
+
"child_processes": {"type": "boolean"}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"resources": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"additionalProperties": false,
|
|
107
|
+
"required": ["timeout_seconds", "memory_mb", "cpus", "pids", "tmpfs_mb", "max_line_bytes", "max_messages", "max_stdin_bytes", "max_stdout_bytes", "max_stderr_bytes"],
|
|
108
|
+
"properties": {
|
|
109
|
+
"timeout_seconds": {"type": "integer", "minimum": 1, "maximum": 3600},
|
|
110
|
+
"memory_mb": {"type": "integer", "minimum": 32, "maximum": 32768},
|
|
111
|
+
"cpus": {"type": "number", "exclusiveMinimum": 0, "maximum": 32},
|
|
112
|
+
"pids": {"type": "integer", "minimum": 1, "maximum": 4096},
|
|
113
|
+
"tmpfs_mb": {"type": "integer", "minimum": 1, "maximum": 4096},
|
|
114
|
+
"max_line_bytes": {"type": "integer", "minimum": 1, "maximum": 4194304},
|
|
115
|
+
"max_messages": {"type": "integer", "minimum": 1, "maximum": 1000000},
|
|
116
|
+
"max_stdin_bytes": {"type": "integer", "minimum": 1, "maximum": 16777216},
|
|
117
|
+
"max_stdout_bytes": {"type": "integer", "minimum": 1, "maximum": 268435456},
|
|
118
|
+
"max_stderr_bytes": {"type": "integer", "minimum": 1, "maximum": 16777216}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"allOf": [
|
|
123
|
+
{
|
|
124
|
+
"if": {
|
|
125
|
+
"properties": {"protocol": {"const": "prc-adapter-jsonl-v1"}},
|
|
126
|
+
"required": ["protocol"]
|
|
127
|
+
},
|
|
128
|
+
"then": {
|
|
129
|
+
"properties": {
|
|
130
|
+
"output_schema": {"const": "prc.adapter-message/v0.1"},
|
|
131
|
+
"capabilities": {
|
|
132
|
+
"properties": {"child_processes": {"const": false}}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"if": {
|
|
139
|
+
"properties": {"protocol": {"const": "prc-adapter-gitleaks-json-v1"}},
|
|
140
|
+
"required": ["protocol"]
|
|
141
|
+
},
|
|
142
|
+
"then": {
|
|
143
|
+
"properties": {
|
|
144
|
+
"output_schema": {"const": "gitleaks.report/v8.30.0"},
|
|
145
|
+
"observation_kinds": {"const": ["secret-detection"]},
|
|
146
|
+
"image": {"const": "ghcr.io/gitleaks/gitleaks@sha256:691af3c7c5a48b16f187ce3446d5f194838f91238f27270ed36eef6359a574d9"},
|
|
147
|
+
"command": {"const": ["dir", "--no-banner", "--no-color", "--log-level=fatal", "--config=/dev/stdin", "--gitleaks-ignore-path=/dev/null", "--ignore-gitleaks-allow", "--max-archive-depth=0", "--max-decode-depth=0", "--max-target-megabytes=10", "--timeout=110", "--redact=100", "--report-format=json", "--report-path=-", "--exit-code=0", "/workspace"]},
|
|
148
|
+
"tool": {
|
|
149
|
+
"properties": {
|
|
150
|
+
"name": {"const": "gitleaks"},
|
|
151
|
+
"version": {"const": "8.30.0"},
|
|
152
|
+
"upstream": {"const": "https://github.com/gitleaks/gitleaks"},
|
|
153
|
+
"formats": {"const": [{"name": "gitleaks-json", "versions": ["8.30.0"]}]}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"capabilities": {
|
|
157
|
+
"properties": {
|
|
158
|
+
"write_scratch": {"const": false},
|
|
159
|
+
"child_processes": {"const": true}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"resources": {
|
|
163
|
+
"properties": {
|
|
164
|
+
"timeout_seconds": {"minimum": 111},
|
|
165
|
+
"pids": {"minimum": 16, "maximum": 256}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
}
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/adapter-manifest.schema.json",
|
|
4
|
+
"title": "Production Readiness Adapter Manifest v0.4",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "id", "title", "description", "publisher", "owner", "maintenance", "protocol", "output_schema", "observation_kinds", "compatibility", "tool", "limitations", "runner", "image", "command", "capabilities", "resources"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.adapter-manifest/v0.4"},
|
|
10
|
+
"id": {"type": "string", "pattern": "^prc\\.adapter\\.[a-z0-9.-]+@[0-9]+\\.[0-9]+$"},
|
|
11
|
+
"title": {"type": "string", "minLength": 1},
|
|
12
|
+
"description": {"type": "string", "minLength": 1},
|
|
13
|
+
"publisher": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"required": ["id", "name"],
|
|
17
|
+
"properties": {
|
|
18
|
+
"id": {"type": "string", "pattern": "^[a-z0-9][a-z0-9.-]{0,127}$"},
|
|
19
|
+
"name": {"type": "string", "minLength": 1}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"owner": {"type": "string", "minLength": 1},
|
|
23
|
+
"maintenance": {"enum": ["active", "deprecated"]},
|
|
24
|
+
"protocol": {"enum": ["prc-adapter-jsonl-v1", "prc-adapter-gitleaks-json-v1", "prc-adapter-syft-cyclonedx-json-v1", "prc-adapter-grype-json-v1", "prc-adapter-checkov-json-v1"]},
|
|
25
|
+
"output_schema": {"enum": ["prc.adapter-message/v0.1", "gitleaks.report/v8.30.0", "cyclonedx.bom/v1.7+syft-1.51.0", "grype.report/v0.116.1+prc-v1", "checkov.report/v3.3.8+prc-v1"]},
|
|
26
|
+
"observation_kinds": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"minItems": 1,
|
|
29
|
+
"uniqueItems": true,
|
|
30
|
+
"items": {"type": "string", "pattern": "^[a-z0-9][a-z0-9.-]{0,127}$"}
|
|
31
|
+
},
|
|
32
|
+
"compatibility": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"required": ["engine_apis"],
|
|
36
|
+
"properties": {
|
|
37
|
+
"engine_apis": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"minItems": 1,
|
|
40
|
+
"uniqueItems": true,
|
|
41
|
+
"items": {"type": "string", "pattern": "^prc\\.engine/v[0-9]+\\.[0-9]+$"}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"tool": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": ["name", "version", "upstream", "formats"],
|
|
49
|
+
"properties": {
|
|
50
|
+
"name": {"type": "string", "minLength": 1},
|
|
51
|
+
"version": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._+-]{0,127}$", "not": {"enum": ["latest", "LATEST", "Latest"]}},
|
|
52
|
+
"upstream": {"type": "string", "format": "uri", "pattern": "^https://"},
|
|
53
|
+
"formats": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"minItems": 1,
|
|
56
|
+
"uniqueItems": true,
|
|
57
|
+
"items": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"required": ["name", "versions"],
|
|
61
|
+
"properties": {
|
|
62
|
+
"name": {"type": "string", "pattern": "^[a-z0-9][a-z0-9.-]{0,127}$"},
|
|
63
|
+
"versions": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"minItems": 1,
|
|
66
|
+
"uniqueItems": true,
|
|
67
|
+
"items": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._+-]{0,127}$"}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"limitations": {
|
|
75
|
+
"type": "array",
|
|
76
|
+
"minItems": 1,
|
|
77
|
+
"uniqueItems": true,
|
|
78
|
+
"items": {"type": "string", "minLength": 1}
|
|
79
|
+
},
|
|
80
|
+
"runner": {"const": "oci"},
|
|
81
|
+
"image": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*@sha256:[0-9a-f]{64}$"
|
|
84
|
+
},
|
|
85
|
+
"command": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"minItems": 1,
|
|
88
|
+
"maxItems": 128,
|
|
89
|
+
"items": {"type": "string"}
|
|
90
|
+
},
|
|
91
|
+
"capabilities": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"required": ["read_workspace", "write_scratch", "network", "network_hosts", "secret_handles", "child_processes"],
|
|
95
|
+
"properties": {
|
|
96
|
+
"read_workspace": {"const": true},
|
|
97
|
+
"write_scratch": {"type": "boolean"},
|
|
98
|
+
"network": {"const": "deny"},
|
|
99
|
+
"network_hosts": {"type": "array", "maxItems": 0},
|
|
100
|
+
"secret_handles": {"type": "array", "maxItems": 0},
|
|
101
|
+
"child_processes": {"type": "boolean"}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"resources": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"additionalProperties": false,
|
|
107
|
+
"required": ["timeout_seconds", "memory_mb", "cpus", "pids", "tmpfs_mb", "max_line_bytes", "max_messages", "max_stdin_bytes", "max_stdout_bytes", "max_stderr_bytes"],
|
|
108
|
+
"properties": {
|
|
109
|
+
"timeout_seconds": {"type": "integer", "minimum": 1, "maximum": 3600},
|
|
110
|
+
"memory_mb": {"type": "integer", "minimum": 32, "maximum": 32768},
|
|
111
|
+
"cpus": {"type": "number", "exclusiveMinimum": 0, "maximum": 32},
|
|
112
|
+
"pids": {"type": "integer", "minimum": 1, "maximum": 4096},
|
|
113
|
+
"tmpfs_mb": {"type": "integer", "minimum": 1, "maximum": 4096},
|
|
114
|
+
"max_line_bytes": {"type": "integer", "minimum": 1, "maximum": 4194304},
|
|
115
|
+
"max_messages": {"type": "integer", "minimum": 1, "maximum": 1000000},
|
|
116
|
+
"max_stdin_bytes": {"type": "integer", "minimum": 1, "maximum": 16777216},
|
|
117
|
+
"max_stdout_bytes": {"type": "integer", "minimum": 1, "maximum": 268435456},
|
|
118
|
+
"max_stderr_bytes": {"type": "integer", "minimum": 1, "maximum": 16777216}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"data_mounts": {
|
|
122
|
+
"type": "array",
|
|
123
|
+
"maxItems": 16,
|
|
124
|
+
"items": {
|
|
125
|
+
"type": "object",
|
|
126
|
+
"additionalProperties": false,
|
|
127
|
+
"required": ["name", "destination", "max_files", "max_bytes"],
|
|
128
|
+
"properties": {
|
|
129
|
+
"name": {"type": "string", "pattern": "^[a-z0-9][a-z0-9.-]{0,127}$"},
|
|
130
|
+
"destination": {"type": "string", "pattern": "^/prc-inputs/[a-z0-9][a-z0-9.-]{0,127}$"},
|
|
131
|
+
"max_files": {"type": "integer", "minimum": 1, "maximum": 100000},
|
|
132
|
+
"max_bytes": {"type": "integer", "minimum": 1, "maximum": 4294967296}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"allOf": [
|
|
138
|
+
{
|
|
139
|
+
"if": {
|
|
140
|
+
"properties": {"protocol": {"const": "prc-adapter-jsonl-v1"}},
|
|
141
|
+
"required": ["protocol"]
|
|
142
|
+
},
|
|
143
|
+
"then": {
|
|
144
|
+
"properties": {
|
|
145
|
+
"output_schema": {"const": "prc.adapter-message/v0.1"},
|
|
146
|
+
"capabilities": {
|
|
147
|
+
"properties": {"child_processes": {"const": false}}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"if": {
|
|
154
|
+
"properties": {"protocol": {"const": "prc-adapter-gitleaks-json-v1"}},
|
|
155
|
+
"required": ["protocol"]
|
|
156
|
+
},
|
|
157
|
+
"then": {
|
|
158
|
+
"properties": {
|
|
159
|
+
"output_schema": {"const": "gitleaks.report/v8.30.0"},
|
|
160
|
+
"observation_kinds": {"const": ["secret-detection"]},
|
|
161
|
+
"image": {"const": "ghcr.io/gitleaks/gitleaks@sha256:691af3c7c5a48b16f187ce3446d5f194838f91238f27270ed36eef6359a574d9"},
|
|
162
|
+
"command": {"const": ["dir", "--no-banner", "--no-color", "--log-level=fatal", "--config=/dev/stdin", "--gitleaks-ignore-path=/dev/null", "--ignore-gitleaks-allow", "--max-archive-depth=0", "--max-decode-depth=0", "--max-target-megabytes=10", "--timeout=110", "--redact=100", "--report-format=json", "--report-path=-", "--exit-code=0", "/workspace"]},
|
|
163
|
+
"tool": {
|
|
164
|
+
"properties": {
|
|
165
|
+
"name": {"const": "gitleaks"},
|
|
166
|
+
"version": {"const": "8.30.0"},
|
|
167
|
+
"upstream": {"const": "https://github.com/gitleaks/gitleaks"},
|
|
168
|
+
"formats": {"const": [{"name": "gitleaks-json", "versions": ["8.30.0"]}]}
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"capabilities": {
|
|
172
|
+
"properties": {
|
|
173
|
+
"write_scratch": {"const": false},
|
|
174
|
+
"child_processes": {"const": true}
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"resources": {
|
|
178
|
+
"properties": {
|
|
179
|
+
"timeout_seconds": {"minimum": 111},
|
|
180
|
+
"pids": {"minimum": 16, "maximum": 256}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"if": {
|
|
188
|
+
"properties": {"protocol": {"const": "prc-adapter-syft-cyclonedx-json-v1"}},
|
|
189
|
+
"required": ["protocol"]
|
|
190
|
+
},
|
|
191
|
+
"then": {
|
|
192
|
+
"properties": {
|
|
193
|
+
"output_schema": {"const": "cyclonedx.bom/v1.7+syft-1.51.0"},
|
|
194
|
+
"observation_kinds": {"const": ["sbom-generation"]},
|
|
195
|
+
"image": {"const": "ghcr.io/anchore/syft@sha256:d2dc3ec86cb2b4e7ddb226ba0305c4523b7c0694c45d9f576b42b4c2f5ce7aa8"},
|
|
196
|
+
"command": {"const": ["scan", "--quiet", "--config=/workspace/.prc/syft-config.yaml", "--parallelism=1", "--output=cyclonedx-json", "dir:/workspace"]},
|
|
197
|
+
"tool": {
|
|
198
|
+
"properties": {
|
|
199
|
+
"name": {"const": "syft"},
|
|
200
|
+
"version": {"const": "1.51.0"},
|
|
201
|
+
"upstream": {"const": "https://github.com/anchore/syft"},
|
|
202
|
+
"formats": {"const": [{"name": "cyclonedx-json", "versions": ["1.7"]}]}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"capabilities": {
|
|
206
|
+
"properties": {
|
|
207
|
+
"write_scratch": {"const": false},
|
|
208
|
+
"child_processes": {"const": true}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"resources": {
|
|
212
|
+
"properties": {
|
|
213
|
+
"timeout_seconds": {"minimum": 30},
|
|
214
|
+
"pids": {"minimum": 16, "maximum": 256},
|
|
215
|
+
"max_stdout_bytes": {"minimum": 1048576}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"if": {
|
|
223
|
+
"properties": {"protocol": {"const": "prc-adapter-grype-json-v1"}},
|
|
224
|
+
"required": ["protocol"]
|
|
225
|
+
},
|
|
226
|
+
"then": {
|
|
227
|
+
"required": ["data_mounts"],
|
|
228
|
+
"properties": {
|
|
229
|
+
"output_schema": {"const": "grype.report/v0.116.1+prc-v1"},
|
|
230
|
+
"observation_kinds": {"const": ["dependency-vulnerability"]},
|
|
231
|
+
"image": {"const": "ghcr.io/anchore/grype@sha256:1e71065c0a4cff3e6bd3b8add525ffac4343eb4971694eb90a31cf6d4d3e85db"},
|
|
232
|
+
"command": {"const": ["dir:/workspace", "--quiet", "--config=/workspace/.prc/grype-config.yaml", "--output=json"]},
|
|
233
|
+
"tool": {
|
|
234
|
+
"properties": {
|
|
235
|
+
"name": {"const": "grype"},
|
|
236
|
+
"version": {"const": "0.116.1"},
|
|
237
|
+
"upstream": {"const": "https://github.com/anchore/grype"},
|
|
238
|
+
"formats": {"const": [{"name": "grype-json", "versions": ["0.116.1"]}]}
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"capabilities": {
|
|
242
|
+
"properties": {
|
|
243
|
+
"write_scratch": {"const": true},
|
|
244
|
+
"child_processes": {"const": true}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"resources": {
|
|
248
|
+
"properties": {
|
|
249
|
+
"timeout_seconds": {"minimum": 60},
|
|
250
|
+
"memory_mb": {"minimum": 1024},
|
|
251
|
+
"pids": {"minimum": 32, "maximum": 256},
|
|
252
|
+
"tmpfs_mb": {"minimum": 128},
|
|
253
|
+
"max_stdout_bytes": {"minimum": 16777216}
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"data_mounts": {"const": [{"name": "grype-db", "destination": "/prc-inputs/grype-db", "max_files": 16, "max_bytes": 3221225472}]}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"if": {
|
|
262
|
+
"properties": {"protocol": {"const": "prc-adapter-checkov-json-v1"}},
|
|
263
|
+
"required": ["protocol"]
|
|
264
|
+
},
|
|
265
|
+
"then": {
|
|
266
|
+
"properties": {
|
|
267
|
+
"output_schema": {"const": "checkov.report/v3.3.8+prc-v1"},
|
|
268
|
+
"observation_kinds": {"const": ["iac-policy"]},
|
|
269
|
+
"image": {"const": "docker.io/bridgecrew/checkov@sha256:c64ffb6d6fc8087c896341a2c697770a04a1cf558db04fa7b8129d8ca6bce336"},
|
|
270
|
+
"command": {"const": ["--config-file", "/workspace/.prc/checkov-config.json"]},
|
|
271
|
+
"tool": {
|
|
272
|
+
"properties": {
|
|
273
|
+
"name": {"const": "checkov"},
|
|
274
|
+
"version": {"const": "3.3.8"},
|
|
275
|
+
"upstream": {"const": "https://github.com/bridgecrewio/checkov"},
|
|
276
|
+
"formats": {"const": [{"name": "checkov-json", "versions": ["3.3.8"]}]}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"capabilities": {
|
|
280
|
+
"properties": {
|
|
281
|
+
"write_scratch": {"const": true},
|
|
282
|
+
"child_processes": {"const": true}
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"resources": {
|
|
286
|
+
"properties": {
|
|
287
|
+
"timeout_seconds": {"minimum": 60},
|
|
288
|
+
"memory_mb": {"minimum": 1024},
|
|
289
|
+
"pids": {"minimum": 32, "maximum": 256},
|
|
290
|
+
"tmpfs_mb": {"minimum": 128},
|
|
291
|
+
"max_stdout_bytes": {"minimum": 16777216}
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"data_mounts": {"maxItems": 0}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
]
|
|
299
|
+
}
|