- Introduced multiple guides for workflows including Evidence Pack Validation, Incident Response, Model Validation, Performance & HIL, Release Signing, SBOM Validation, Secret Scanning, and Supply Chain Attestation. - Created dynamic badges for each workflow to reflect their status and compliance. - Implemented a checklist for validating CI/CD workflows and evidence packs. - Developed scripts for building firmware, testing, collecting evidence, and generating audit reports. - Added tools for generating community, documentation, quality, and security badges based on various reports. - Established endpoints for dynamic badges to be integrated into documentation and README files. - Enhanced the overall structure and traceability of CI/CD processes with evidence packs and automated checks.
23 lines
926 B
Python
23 lines
926 B
Python
import subprocess
|
|
|
|
def check_all_targets(targets):
|
|
results = {}
|
|
for target in targets:
|
|
print(f"\n--- Vérification {target} ---")
|
|
try:
|
|
subprocess.run(["python", "tools/build_firmware.py", target], check=True)
|
|
subprocess.run(["python", "tools/test_firmware.py", target], check=True)
|
|
subprocess.run(["python", "tools/collect_evidence.py", target], check=True)
|
|
evidence = subprocess.run(["python", "tools/verify_evidence.py", target], capture_output=True, text=True)
|
|
results[target] = evidence.stdout.strip()
|
|
except subprocess.CalledProcessError as e:
|
|
results[target] = f"Erreur: {e}"
|
|
return results
|
|
|
|
if __name__ == '__main__':
|
|
targets = ["esp", "stm", "linux"]
|
|
report = check_all_targets(targets)
|
|
print("\n=== Rapport de vérification ===")
|
|
for tgt, res in report.items():
|
|
print(f"{tgt}: {res}")
|