From 3a5544e76311b221e20499502f28e557299b96f4 Mon Sep 17 00:00:00 2001 From: Fraser Tweedale Date: Wed, 9 Aug 2023 23:14:06 +1000 Subject: [PATCH] ci: don't syntax-check ID reservations --- .github/workflows/check-advisories.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/check-advisories.yml b/.github/workflows/check-advisories.yml index 5b505090..e0b06146 100644 --- a/.github/workflows/check-advisories.yml +++ b/.github/workflows/check-advisories.yml @@ -47,6 +47,7 @@ jobs: # Remove the begining of the README to extract the example. (echo '```toml'; sed -e '1,/```toml/d' README.md) > EXAMPLE_README.md while read FILE ; do + [ "$(dirname "$FILE")" != advisories/reserved ] || continue echo -n "$FILE: " docker run --rm -v $PWD:/repo --workdir /repo haskell/hsec-tools:latest /bin/hsec-tools check "$FILE" || RESULT=1 done < <([ ${#CHANGED_ADVISORIES[@]} -gt 0 ] && printf "%s\n" "${CHANGED_ADVISORIES[@]}" || find advisories EXAMPLE_README.md EXAMPLE_ADVISORY.md -type f -name "*.md")