Skip to content

ci: add SecKit scan workflow and badge - #27

Merged
segraef merged 2 commits into
mainfrom
seckit-ci
Aug 26, 2026
Merged

ci: add SecKit scan workflow and badge#27
segraef merged 2 commits into
mainfrom
seckit-ci

Conversation

@segraef

@segraef segraef commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Drop-in SecKit security scan (gitleaks, trufflehog, osv, semgrep, checkov) on push to main and pull requests. Soft-fail: findings become a warning plus a report artifact. Badge in README (renders once segraef/sec-kit#feat/ci-badge is merged).

Drop-in SecKit security scan (gitleaks, trufflehog, osv, semgrep, checkov) on push to main and pull requests. Soft-fail: findings become a warning plus a report artifact.
Copilot AI lite review requested due to automatic review settings August 26, 2026 10:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The workflow currently pulls unpinned external code at runtime and uses a hard-coded Homebrew path, creating avoidable security and reliability risks.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds a SecKit-based security scanning workflow to run on pushes to main and on pull requests, and exposes the scan status via a README badge.

Changes:

  • Added a new GitHub Actions workflow to install SecKit scanners and run scans, uploading a markdown report artifact.
  • Added a SecKit badge to the repository README.
File summaries
File Description
README.md Adds a “Scanned with SecKit” badge link.
.github/workflows/seckit-scan.yml New CI workflow to clone SecKit, install scanners, run scans (soft-fail), and upload the report artifact.
Review details

Suppressed comments (1)

.github/workflows/seckit-scan.yml:55

  • Same as above: avoid hard-coding the Homebrew path in the scan step; detect brew from PATH so the step remains portable across runner image updates.
        run: |
          eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" 2>/dev/null || true
          bash "$RUNNER_TEMP/sec-kit/seckit.sh" scan "$GITHUB_WORKSPACE" --skip=socket
  • Files reviewed: 2/2 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +42 to +43
- name: Get SecKit
run: git clone --depth 1 https://github.com/segraef/sec-kit.git "$RUNNER_TEMP/sec-kit"
Comment on lines +46 to +48
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" 2>/dev/null || true
bash "$RUNNER_TEMP/sec-kit/seckit.sh" install --all -y
Comment on lines +65 to +68
- name: Gate
if: steps.scan.outcome == 'failure'
run: |
echo "::warning::SecKit reported findings - download the seckit-report artifact to triage."
@segraef
segraef merged commit a343531 into main Aug 26, 2026
7 checks passed
@segraef
segraef deleted the seckit-ci branch August 26, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants