mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 16:43:57 +00:00
ci: Check that non-scripts aren’t marked executable.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
761ca16d6d
commit
872f4b41c1
1
.github/workflows/zulip-ci.yml
vendored
1
.github/workflows/zulip-ci.yml
vendored
@@ -150,6 +150,7 @@ jobs:
|
||||
./tools/test-migrations
|
||||
./tools/setup/optimize-svg --check
|
||||
./tools/setup/generate_integration_bots_avatars.py --check-missing
|
||||
./tools/ci/check-executables
|
||||
|
||||
# Ban check-database-compatibility.py from transitively
|
||||
# relying on static/generated, because it might not be
|
||||
|
||||
0
static/images/integrations/logos/jotform.svg
Executable file → Normal file
0
static/images/integrations/logos/jotform.svg
Executable file → Normal file
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
0
static/images/store-badges/app-store-badge.svg
Executable file → Normal file
0
static/images/store-badges/app-store-badge.svg
Executable file → Normal file
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
0
templates/zerver/help/include/sidebar_index.md
Executable file → Normal file
0
templates/zerver/help/include/sidebar_index.md
Executable file → Normal file
0
templates/zerver/help/open-the-compose-box.md
Executable file → Normal file
0
templates/zerver/help/open-the-compose-box.md
Executable file → Normal file
9
tools/ci/check-executables
Executable file
9
tools/ci/check-executables
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
files="$(git ls-tree -r @ | sed -n 's/^100755 blob \S\+\t//p' | xargs -r grep -Lz '^#!' --)" || [ $? = 123 ]
|
||||
if [ "$files" ]; then
|
||||
echo 'error: non-scripts should not be marked executable (fix with chmod -x):'
|
||||
echo
|
||||
printf '%s\n' "$files"
|
||||
exit 1
|
||||
fi
|
||||
0
tools/documentation_crawler/documentation_crawler/spiders/check_documentation.py
Executable file → Normal file
0
tools/documentation_crawler/documentation_crawler/spiders/check_documentation.py
Executable file → Normal file
0
tools/droplets/cleanup.py
Executable file → Normal file
0
tools/droplets/cleanup.py
Executable file → Normal file
0
zerver/data_import/slack.py
Executable file → Normal file
0
zerver/data_import/slack.py
Executable file → Normal file
0
zerver/lib/mdiff.py
Executable file → Normal file
0
zerver/lib/mdiff.py
Executable file → Normal file
0
zerver/views/development/email_log.py
Executable file → Normal file
0
zerver/views/development/email_log.py
Executable file → Normal file
0
zerver/webhooks/github/fixtures/team__edited_description.json
Executable file → Normal file
0
zerver/webhooks/github/fixtures/team__edited_description.json
Executable file → Normal file
0
zerver/webhooks/github/fixtures/team__edited_name.json
Executable file → Normal file
0
zerver/webhooks/github/fixtures/team__edited_name.json
Executable file → Normal file
0
zerver/webhooks/github/fixtures/team__edited_privacy_closed.json
Executable file → Normal file
0
zerver/webhooks/github/fixtures/team__edited_privacy_closed.json
Executable file → Normal file
0
zerver/webhooks/github/fixtures/team__edited_privacy_secret.json
Executable file → Normal file
0
zerver/webhooks/github/fixtures/team__edited_privacy_secret.json
Executable file → Normal file
0
zerver/webhooks/sentry/fixtures/event_for_exception_js.json
Executable file → Normal file
0
zerver/webhooks/sentry/fixtures/event_for_exception_js.json
Executable file → Normal file
Reference in New Issue
Block a user