commit | 3590a1d81431713d283937ff3fe3267b69af844b | [log] [tgz] |
---|---|---|
author | Rupert Swarbrick <rswarbrick@lowrisc.org> | Tue Apr 06 17:46:48 2021 +0100 |
committer | Rupert Swarbrick <rswarbrick@gmail.com> | Wed Apr 07 10:52:53 2021 +0100 |
tree | af28a739b6eb892ddea6e7d698c644fef3e58e68 | |
parent | dd3eec78d3fac7a813bef7d1cb1b875919335db1 [diff] |
[ci] Switch from a blacklist to a whitelist for executable files And remove executable bits from everything that's not allowed. Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
diff --git a/ci/scripts/exec-check.sh b/ci/scripts/exec-check.sh index f36bf58..f0b7f17 100755 --- a/ci/scripts/exec-check.sh +++ b/ci/scripts/exec-check.sh
@@ -5,17 +5,13 @@ set -e -noexec_suffixes=( - c - cc - core - h - sv - tpl +allowed_suffixes=( + py + sh ) suff_re="" -for suff in "${noexec_suffixes[@]}"; do +for suff in "${allowed_suffixes[@]}"; do suff_re="${suff_re}$suff\\|" done suff_re="\\(${suff_re:0:-2}\\)" @@ -29,7 +25,9 @@ trap 'rm -f "$TMPFILE"' EXIT find -name vendor -prune -o \ - -type f -executable -regex "$path_re" -print >"$TMPFILE" + -name .git -prune -o \ + -type f -executable -name '*.*' -not -regex "$path_re" \ + -print >"$TMPFILE" if [ -s "$TMPFILE" ]; then echo -n "##vso[task.logissue type=error]" echo "One or more files have the executable bit set when they shouldn't."
diff --git a/doc/ug/dv_methodology/dv_method_multi_gate.svg b/doc/ug/dv_methodology/dv_method_multi_gate.svg old mode 100755 new mode 100644
diff --git a/doc/ug/dv_methodology/dv_method_single_gate.svg b/doc/ug/dv_methodology/dv_method_single_gate.svg old mode 100755 new mode 100644
diff --git a/hw/ip/edn/doc/dv/edn_tb.svg b/hw/ip/edn/doc/dv/edn_tb.svg old mode 100755 new mode 100644
diff --git a/hw/ip/spi_host/doc/spi_host_block_diagram.svg b/hw/ip/spi_host/doc/spi_host_block_diagram.svg old mode 100755 new mode 100644
diff --git a/hw/top_earlgrey/data/top_earlgrey.hjson b/hw/top_earlgrey/data/top_earlgrey.hjson old mode 100755 new mode 100644