Skip to content

Update sandbox-example.yml #2

Update sandbox-example.yml

Update sandbox-example.yml #2

name: SecDim Sandbox Example Workflow
on:
push:
branches:
- master
pull_request:
jobs:
secdim:
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read
steps:
- name: Clone repo
uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.7"
- name: Install Semgrep
run: pip install semgrep
- name: Run Semgrep
run: semgrep scan --config auto --sarif > findings.sarif
- name: Upload Semgrep SARIF results
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: findings.sarif
category: semgrep
- name: Run SecDim Sandbox Action
uses: secdim/[email protected]
with:
input_sarif_file: findings.sarif
output_sarif_file: findings.processed.sarif
- name: Upload SecDim Sanbox SARIF results
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: findings.processed.sarif
category: secdim-sandbox