Uh oh!
There was an error while loading. Please reload this page.
Add Sighthound-gated agentic workflow with artifacted scan output - #45120
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Hey One thing that would help push this over the finish line:
If you would like a hand, you can assign this prompt to your coding agent:
|
There was a problem hiding this comment.
Pull request overview
Adds a Sighthound security workflow that scans repositories before agent triage.
Changes:
- Runs Sighthound on PR and manual triggers.
- Artifacts scan results and gates agent execution on findings.
- Routes triage to comments, issues, or no-op output.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/sighthound-security-scan.md | Defines scanning, artifact transfer, gating, and triage. |
.github/workflows/sighthound-security-scan.lock.yml | Compiled GitHub Actions workflow. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/2 changed files
- Comments generated: 3
- Review effort level: Medium
| - name: Install Sighthound | ||
| run: | | ||
| cargo install --locked --git https://github.com/Corgea/Sighthound --bin sighthound |
| set +e | ||
| sighthound --output-format json . > "$RESULTS_JSON" | ||
| SCAN_EXIT=$? | ||
| set -e | ||
| if [ ! -s "$RESULTS_JSON" ]; then | ||
| echo "[]" > "$RESULTS_JSON" | ||
| fi | ||
| FINDINGS_COUNT="$(jq 'if type=="array" then length else 0 end' "$RESULTS_JSON" 2>/dev/null || echo 0)" |
| target: "*" | ||
| create-issue: | ||
| max: 1 | ||
| labels: [security, sighthound] |
🎉 This pull request is included in a new release. Release: |
This adds an agentic workflow that runs Corgea/Sighthound in a dedicated pre-agent job, persists scan output as an artifact, and only activates the agent when findings exist. The workflow keeps detection deterministic and triage conditional.
Workflow added
.github/workflows/sighthound-security-scan.md(and compiled.lock.yml).pull_request(opened,synchronize,reopened) andworkflow_dispatch.Separate Sighthound scan job
jobs.sighthound_scanto install and runsighthoundbefore agent execution.findings_detectedfindings_countartifact_nameArtifacted results for downstream analysis
/tmp/gh-aw/agent/sighthound/.sighthound-results-${{ github.run_id }}) for reproducible triage context.Agent execution is findings-gated
if:gates the agent path on:needs.sighthound_scan.outputs.findings_detected == 'true'add_commentcreate_issuenoop