Skip to content

SAST

SAST #3

Workflow file for this run

name: SAST
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
paths-ignore:
- '**.md'
- 'docs/**'
- 'design/**'
schedule:
- cron: '0 6 * * 1' # Weekly Monday 6am UTC
permissions:
contents: read
security-events: write
jobs:
semgrep:
name: Semgrep
runs-on: ubuntu-latest
container:
image: semgrep/semgrep
steps:
- uses: actions/checkout@v4
- name: Run Semgrep
run: |
semgrep scan \
--config auto \
--config p/rust \
--config p/typescript \
--config p/secrets \
--sarif \
--output semgrep.sarif \
--error
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
- name: Upload Semgrep SARIF
uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: semgrep.sarif
category: semgrep
codeql:
name: CodeQL
runs-on: ubuntu-latest
strategy:
matrix:
language: [javascript-typescript]
steps:
- uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: security-extended
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: codeql-${{ matrix.language }}