feat(sec-pipeline): implement unified container scanning architecture and SAST integration - #27
Merged
jdaln merged 19 commits intoAug 3, 2026
Conversation
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
moghit-eou
marked this pull request as draft
July 27, 2026 13:19
ci: add app-layer SAST scanning with Semgrep community ruleset
chore: align CI scripts and workflows for consistency
moghit-eou
marked this pull request as ready for review
July 31, 2026 10:31
There was a problem hiding this comment.
Pull request overview
This PR updates the repository’s security automation by refactoring the GitHub Actions security workflows and adding Python-based orchestrators for SCA/SAST and container scanning, alongside a small Docker hardening change and dependency override bumps.
Changes:
- Added new GitHub Actions workflows for SAST and container scanning; refactored SCA workflow to use the new tooling and naming.
- Refactored
.github/scripts/setup-tools.shto support modular tool installation and SBOM generation via flags, and introduced new orchestrator scripts (sca_scan.py,sast_scan.py,container_scan.py). - Hardened the runtime container by switching nginx to run as a non-root user and fixing ownership of required paths.
Reviewed changes
Copilot reviewed 11 out of 13 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Bumps overrides for shell-quote and webpack-dev-server. |
| package-lock.json | Lockfile updates aligned with override bumps and transitive dependency updates. |
| Dockerfile | Runs nginx as non-root and adjusts filesystem ownership for runtime writes. |
| .github/workflows/sca.yml | Renames SCA workflow and switches to new tool setup + sca_scan.py; uploads merged SARIF as artifact. |
| .github/workflows/sca_image.yml | Removes the old image SCA workflow in favor of the unified container scanning workflow. |
| .github/workflows/sast.yml | Adds a new SAST workflow that installs OpenGrep + rules and runs sast_scan.py. |
| .github/workflows/container-scan.yml | Adds a unified container scanning workflow (Docker build + SAST/SCA + SARIF merge). |
| .github/scripts/setup-tools.sh | Refactors tool setup into --install-tool / --sbom-ecosystem flags and adds new tools (OpenGrep, Hadolint, semgrep-rules). |
| .github/scripts/sca_scan.py | Renames merged SARIF env var/output and keeps CVSS-based gating via parse_sarif.evaluate. |
| .github/scripts/sast_scan.py | New app SAST orchestrator using OpenGrep and semgrep community rules. |
| .github/scripts/container_scan.py | New orchestrator for container SAST (Hadolint/OpenGrep) and SCA (Trivy/OSV) + SARIF merging. |
| .github/scripts/run_sca_image.py | Removes the legacy image SCA runner (replaced by container_scan orchestration). |
| .github/scripts/parse_sarif.py | Minor formatting change; still provides the CVSS gate evaluation helper. |
Suppressed comments (1)
.github/workflows/sca.yml:71
- PR description mentions unified SARIF merging for centralized GitHub Security tab reporting, but this workflow currently uploads the merged SARIF only as an Actions artifact (not via
github/codeql-action/upload-sarif). That means the merged report won’t appear as a consolidated entry in the Security tab.
Dockerfile and other files flagged in the SAST pipeline.
jdaln
approved these changes
Aug 1, 2026
Contributor
|
@moghit-eou Ready to merge :) |
jdaln
approved these changes
Aug 3, 2026
jdaln
approved these changes
Aug 3, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows OWASP DevSecOps guidelines for Dockerfile/container hardening.