forked from linode/manager
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 947 Bytes
/
security_scan.yml
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
# Perform Static Application Security Testing (SAST) scanning on Cloud Manager.
name: Security Scan
on:
push:
branches:
- develop
jobs:
security-scan:
runs-on: ubuntu-latest
container:
image: returntocorp/semgrep
steps:
- uses: actions/checkout@v3
# Perform scanning using Semgrep
# Pass even when it identifies issues or encounters errors.
- name: Run SAST scan
if: always()
run: semgrep ci || true
env:
SEMGREP_RULES: p/default
# Post results to Slack notification channel.
- name: slack-notify
uses: rtCamp/action-slack-notify@master
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_SAST_WEBHOOK }}
SLACK_MESSAGE: "Message: ${{ github.event.head_commit.message }} \nRepository: ${{ github.event.repository.url }}"
SLACK_COLOR: ${{ job.status }}
SLACK_FOOTER: ''
MSG_MINIMAL: event,actions url,commit