Skip to content

Commit 8bfdd22

Browse files
Create validate-provenance
Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
1 parent c32f593 commit 8bfdd22

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.githooks/validate-provenance

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
echo "Validating provenance manifests..."
4+
5+
for file in $(git ls-files | grep -E '\.(adoc|txt)$'); do
6+
if ! grep -qi "provenance" "$file"; then
7+
echo "WARNING: Missing provenance reference in $file"
8+
fi
9+
done
10+
11+
exit 0

0 commit comments

Comments
 (0)