Update sandbox-example.yml #2
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
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 |