Prompt file imported from D13tr1ch/Infrastructure (
.github/prompts/sign-and-verify.prompt.md). Copyright stays with the author.
Sign all covered PowerShell scripts in this repository and verify full compliance.
Run these steps in order:
-
Sign all scripts:
.\scripts\Invoke-ScriptSigning.ps1 -
Verify compliance:
.\scripts\Test-SignatureCompliance.ps1 -
If compliance passes (exit 0), confirm all scripts are validly signed and the repo is ready to commit.
-
If any failures remain, identify each file, sign it individually, and re-run verification:
.\scripts\Invoke-ScriptSigning.ps1 -Path <relative-path-to-script> .\scripts\Test-SignatureCompliance.ps1 -
Report:
- Total files scanned
- Files signed in this run
- Final compliance status (PASS / FAIL)
- Any files that could not be signed and why
Do not proceed with a commit recommendation until Test-SignatureCompliance.ps1 exits with code 0.