From bd0db77b2cd56ace180f2c83b73e51cce0fbecde Mon Sep 17 00:00:00 2001 From: Serein <2075337935@qq.com> Date: Mon, 29 Jul 2024 15:16:26 +0800 Subject: [PATCH] ci: send result message --- .github/workflows/codeql.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 14ff9c03..756a6e28 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -91,7 +91,7 @@ jobs: ${{ github.workspace }}/build/_deps ${{ github.workspace }}/build/cargo ${{ github.workspace }}/build/vcpkg_installed - key: ${{ runner.os }}-${{ steps.get-date.outputs.date }}-${{ hashFiles('**/lockfiles') }} + key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL @@ -122,3 +122,25 @@ jobs: uses: github/codeql-action/analyze@v3 with: category: "/language:${{matrix.language}}" + + - name: Send message to feishu + uses: foxundermoon/feishu-action@v2 + with: + url: ${{ secrets.WEBHOOK_URL }} + msg_type: post + content: | + post: + zh_cn: + title: sast-evento repo CodeQL analysis + content: + - - tag: text + text: "repository: ${{ github.repository }}" + - - tag: text + text: "committer: ${{ github.actor }}" + - - tag: text + text: 'compare: ' + - tag: a + text: "${{ github.event.compare }}" + href: ${{ github.event.compare }} + - - tag: text + text: "job status: ${{ job.status }}"