diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 17f88fac9..6d6c75910 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,6 +7,16 @@ on: branches: [ master ] jobs: + changelog_format: + runs-on: ubuntu-20.04 + steps: + - name: Checkout capa + uses: actions/checkout@v2 + # The sync GH action in capa-rules relies on a single '- *$' in the CHANGELOG file + - name: Ensure CHANGELOG has '- *$' + run: | + number=$(grep '\- *$' CHANGELOG.md | wc -l) + if [ $number != 1 ]; then exit 1; fi code_style: runs-on: ubuntu-20.04 steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index 79b610c5f..29bc72d45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -123,7 +123,7 @@ It includes many new rules, including all new techniques introduced in MITRE ATT ### Development - ci: add capa release link to capa-rules tag #517 @Ana06 -- ci, changelog: update `New Rules` section in CHANGELOG automatically https://github.com/fireeye/capa-rules/pull/374 #549 @Ana06 +- ci, changelog: update `New Rules` section in CHANGELOG automatically https://github.com/fireeye/capa-rules/pull/374 #549 #604 @Ana06 - ci, changelog: support multiple author in sync GH https://github.com/fireeye/capa-rules/pull/378 @Ana06 - ci, lint: check statements for single child statements #563 @mr-tz - ci: reject PRs without CHANGELOG update to ensure CHANGELOG is kept up-to-date. #584 @Ana06