From 9d79baa96acfdfec33b755ae24541cce9f61aaee Mon Sep 17 00:00:00 2001 From: Ana Maria Martinez Gomez Date: Wed, 7 Apr 2021 18:35:23 +0200 Subject: [PATCH] ci: add capa release link to capa-rules tag GitHub displays the commit's message of the tag if no description is given, which is ugly. Use annotated tags which include a message. Use the release link as message, as this is useful information. --- .github/workflows/tag.yml | 7 ++++++- CHANGELOG.md | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 77c66d0e..a2d94315 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -15,7 +15,12 @@ jobs: repository: fireeye/capa-rules token: ${{ secrets.CAPA_TOKEN }} - name: Tag capa-rules - run: git tag ${{ github.event.release.tag_name }} + run: | + # user information is needed to create annotated tags (with a message) + git config user.email 'capa-dev@fireeye.com' + git config user.name 'Capa Bot' + name=${{ github.event.release.tag_name }} + git tag $name -m "https://github.com/fireeye/capa/releases/$name" - name: Push tag to capa-rules uses: ad-m/github-push-action@master with: diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f6c083b..882c6b4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ ### Development +- ci: add capa release link to capa-rules tag #517 @Ana06 + ### Raw diffs - [capa v1.6.1...master](https://github.com/fireeye/capa/compare/v1.6.1...master) - [capa-rules v1.6.1...master](https://github.com/fireeye/capa-rules/compare/v1.6.1...master)