From 0d93045550859a1e6f83f96cf2a35c5fd52dc5ae Mon Sep 17 00:00:00 2001 From: Ilya <79799415+St-Ilya@users.noreply.github.com> Date: Fri, 5 Jul 2024 12:51:45 +0300 Subject: [PATCH] Sec 24, 32 (#71) --- .github/workflows/semgrep-scan.yml | 14 ++++++++++++-- README.md | 6 ++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/semgrep-scan.yml b/.github/workflows/semgrep-scan.yml index 2195afb..0bd1410 100644 --- a/.github/workflows/semgrep-scan.yml +++ b/.github/workflows/semgrep-scan.yml @@ -20,7 +20,7 @@ jobs: --config="p/default" - name: Save report - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: semgrep.sarif path: semgrep.sarif @@ -29,4 +29,14 @@ jobs: uses: github/codeql-action/upload-sarif@v3.25.7 with: sarif_file: semgrep.sarif - category: semgrep \ No newline at end of file + category: semgrep + + - name: Mattermost Notification + if: always() + uses: rtCamp/action-slack-notify@v2.2.0 + env: + SLACK_USERNAME: ${{ github.event.repository.name }} + SLACK_WEBHOOK: ${{ secrets.mm-sa-wh-url }} + SLACK_COLOR: ${{ job.status }} + SLACK_LINK_NAMES: true + SLACK_FOOTER: "" \ No newline at end of file diff --git a/README.md b/README.md index fc6670d..08e4df9 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,8 @@ on: - '*' jobs: - build: - uses: valitydev/java-workflow/.github/workflows/semgrep-scan.yml@v3.0.3 + scan: + uses: valitydev/java-workflow/.github/workflows/semgrep-scan.yml@v3.0.5 + secrets: + mm-sa-wh-url: ${{ secrets.MATTERMOST_SA_WH_URL}} ```