Annotate exec bit

This commit is contained in:
Roxedus 2022-07-21 22:25:59 +02:00
parent 4df1c8c537
commit 75218de62a
No known key found for this signature in database
GPG key ID: EBC13557C4D91D7B

View file

@ -29,8 +29,9 @@ jobs:
EXECUTABLE_BIT=$(find . -not -path '*/\.*' -type f -executable)
EXECUTABLE_BIT_COUNT=$(echo "${EXECUTABLE_BIT}" | wc -w)
if (( EXECUTABLE_BIT_COUNT > 0 )); then
echo "The following files have executable permissions (not allowed):"
echo "${EXECUTABLE_BIT}"
for i in ${EXECUTABLE_BIT}; do
echo "::error file=${i},line=1,title=Executable Bit::This file is set as exectutable, which is not allowed"
done
exit 1
fi