From 4c49764020e316902a45015391f63e4683f70994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Fri, 28 Jun 2024 16:52:44 +0000 Subject: [PATCH] add Check file names step --- .github/workflows/reusable-integrity.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/reusable-integrity.yml b/.github/workflows/reusable-integrity.yml index 1bb06027..5c70cfe4 100644 --- a/.github/workflows/reusable-integrity.yml +++ b/.github/workflows/reusable-integrity.yml @@ -42,6 +42,12 @@ jobs: - name: "Checkout repository" uses: "actions/checkout@v4" + - + name: "Check file names" + run: | + ! git ls-tree -r -t -z --name-only HEAD \ + | xargs --null --max-args=1 -- basename \ + | grep --perl-regexp '[^-.0-9A-Z_a-z]|\.\.' - name: "Check file permissions" run: |