Skip to content

ci: add CodeQL and dependency security scanning - #265

Merged
TheCodeHeist-Coder merged 2 commits into
TheCodeHeist-Coder:mainfrom
divyanshAgarwal123:codex/nsoc-security-scanning-242
Nov 26, 2026
Merged

TheCodeHeist-Coder merged 2 commits into
TheCodeHeist-Coder:mainfrom
divyanshAgarwal123:codex/nsoc-security-scanning-242

Conversation

@divyanshAgarwal123

@divyanshAgarwal123 divyanshAgarwal123 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Adds the missing source/dependency security checks for assigned #242. The first dependency audit is deliberately report-only, as requested; existing build, test and secret-scan gates remain in place.

Refs #242. This is the workflows/configuration and initial dependency-triage stage the maintainer allowed to be delivered separately. Keep #242 open for the stored CodeQL baseline triage.

  • CodeQL advanced setup scans JavaScript/TypeScript, Python and Actions on PRs/pushes to main and weekly, with per-job permissions and no dependency installation.
  • Dependabot checks the root npm/pnpm workspace and GenAI pip requirements weekly, grouping development updates and limiting version-update PR noise.
  • CI runs pnpm audit --audit-level=high against the committed lockfile without install scripts. Its nonzero finding result is visible but nonblocking.
  • .github/security-baseline.md records the actual initial dependency triage: 216 advisory records across 39 modules; registry metadata reports 1 critical / 86 high affected entries. The --prod selection still reports 1 critical / 54 high, and includes some tooling declared as regular dependencies. These are installed-version matches, not demonstrated application exploits.

Validation at 5184afa: Actionlint 1.7.12, YAML parsing, staged Gitleaks and git diff --check pass. Both real pnpm 9.0.0 audit commands exited 1 with advisory results, as expected. No package manifest or lockfile was changed. All 15 hosted checks now pass on 5184afad78a0eee667de4850dfaa48cc15178473, including all three CodeQL languages, five Docker image builds, schema/migrations, tests/types and the dependency report. The audit step reports findings as configured; its successful job is not a clean-baseline claim.

Owner confirmation: advanced setup is allowed, default setup is off, and Dependabot alerts/security updates are enabled. Dependabot has actually opened npm updates #263 and #264; I am not duplicating them. Python requirements remain unpinned, so this PR does not claim resolved pip coverage or a future pip update. Follow-up #266 tracks remediation, Python baseline verification and making the audit a gate once the baseline is agreed.

Exploitable source findings will follow SECURITY.md privately. #243 remains separate and its frontend files are untouched. Issue #242 has maintainer-applied nsoc26 / level3. Please classify/carry the supported labels for this delivered stage after review; no score is claimed before that decision.

Remaining source-triage limitation: GitHub returned HTTP 403 (not authorized to read code-scanning alerts) for the current login when reading analyses and branch alerts. The public CodeQL check says only “No new alerts in code changed by this pull request”; that does not prove the whole source baseline clean. A maintainer needs to review the stored branch findings privately or provide appropriate read access before the source-triage part of #242 can be marked complete. No exploitable source details are included here.

@github-advanced-security

Copy link
Copy Markdown

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:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@TheCodeHeist-Coder
TheCodeHeist-Coder merged commit 2bdaf7e into TheCodeHeist-Coder:main Nov 26, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file help wanted Extra attention is needed level3 nsoc26

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants