Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Kusari Security Scan

on:
# Run on pull requests
pull_request:
types: [opened, synchronize, reopened]

# Run when triggered via API
workflow_dispatch:
inputs:
pr_number:
description: 'Pull request number'
required: false
sha:
description: 'Commit SHA to analyze'
required: false

permissions:
contents: read
pull-requests: write

jobs:
security-scan:
name: Run Security Scan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
# If triggered by workflow_dispatch with a SHA, use that SHA
ref: ${{ github.event.inputs.sha || github.sha }}

- name: Run Security Scanner
uses: Kusari-Sandbox/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Upload scan results as artifact
uses: actions/upload-artifact@v4
with:
name: security-scan-results
path: security-scan-results.json
retention-days: 3
Loading