Merge branch 'linode:develop' into develop #295
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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@v4 | |
# 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 |