Skip to content

Commit

Permalink
Merge pull request #14100 from rawlingsj/lint_sts
Browse files Browse the repository at this point in the history
lint: check that policies have a suffix of `.sts.yaml`
  • Loading branch information
ajayk authored Mar 5, 2024
2 parents d8def7f + e29f355 commit fee0796
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,12 @@ for p in $(make list); do
yam ${fn}
fi
done

# New section to check for .sts.yaml files under ./.github/chainguard/
echo "Checking for .sts.yaml files in ./.github/chainguard/..."
for file in $(find .github/chainguard -type f); do
if [[ ! $file =~ \.sts\.yaml$ ]]; then
echo "ERROR: File $file does not have the required '.sts.yaml' suffix"
exit 1
fi
done

0 comments on commit fee0796

Please sign in to comment.