-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1021 Bytes
/
semgrep-scan.yml
File metadata and controls
42 lines (36 loc) · 1021 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Run Semgrep
on:
workflow_call:
jobs:
semgrep:
runs-on: ubuntu-latest
container:
image: returntocorp/semgrep
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Semgrep
run: |
semgrep \
--sarif --output semgrep.sarif \
--metrics=off \
--config="p/default"
- name: Save report
uses: actions/upload-artifact@v4
with:
name: semgrep.sarif
path: semgrep.sarif
- name: Scanning alerts
uses: github/codeql-action/upload-sarif@v3.28.8
with:
sarif_file: semgrep.sarif
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: ""