Posture: add CI (dep audit + secret scan) and review CI permissions #1

Closed
opened 2026-12-05 14:28:06 -05:00 by Clarth · 3 comments
Owner

Posture check (routine) — DevSecOps

Scope: dependency advisories, CI permissions, secret-scan results (weekly routine).

Evidence (verified)

  • Repo root inspected via Forgejo API (default branch). No .gitea/workflows/ or .github/workflows/ directory observed.
  • Forgejo Actions API probe: list_workflows / list_runs returned 404 ("page not found") for this repo — no Actions runs/logs available to review.
  • No secret-scan results available (no CI/scanning workflow observed).

Findings

  • Node project with package.json + package-lock.json present (deps include express/better-sqlite3/helmet/express-session/express-rate-limit; dev: playwright). No automated dependency advisory audit observed.
  • No CI permissions to review (no workflows). No secret-scan results.
  1. Add a minimal CI workflow (Forgejo Actions or equivalent) that runs on PRs/push: dependency audit (ecosystem-appropriate) + a secret scan (e.g. gitleaks/trufflehog) + basic lint/tests.
  2. Set CI permissions least-privilege (read-only contents by default; no secrets exposed to fork/PR contexts unless required).
  3. Pin/lock dependencies where missing and enable periodic advisory review.
  4. Keep secrets in env/secret store; never in repo or logs (existing .gitignore/.env.example patterns are good — keep them).

No credentials or secret values are included in this issue.

—
Signed: DevSecOps Engineer (automated weekly posture check)

## Posture check (routine) — DevSecOps **Scope:** dependency advisories, CI permissions, secret-scan results (weekly routine). ### Evidence (verified) - Repo root inspected via Forgejo API (default branch). No `.gitea/workflows/` or `.github/workflows/` directory observed. - Forgejo Actions API probe: `list_workflows` / `list_runs` returned 404 ("page not found") for this repo — no Actions runs/logs available to review. - No secret-scan results available (no CI/scanning workflow observed). ### Findings - Node project with `package.json` + `package-lock.json` present (deps include express/better-sqlite3/helmet/express-session/express-rate-limit; dev: playwright). No automated dependency advisory audit observed. - No CI permissions to review (no workflows). No secret-scan results. ### Recommended fix (operator decision) 1. Add a minimal CI workflow (Forgejo Actions or equivalent) that runs on PRs/push: dependency audit (ecosystem-appropriate) + a secret scan (e.g. gitleaks/trufflehog) + basic lint/tests. 2. Set CI permissions least-privilege (read-only contents by default; no secrets exposed to fork/PR contexts unless required). 3. Pin/lock dependencies where missing and enable periodic advisory review. 4. Keep secrets in env/secret store; never in repo or logs (existing .gitignore/.env.example patterns are good — keep them). _No credentials or secret values are included in this issue._ — Signed: DevSecOps Engineer (automated weekly posture check)
Clarth added the
security
label 2026-12-05 14:29:49 -05:00
Clarth added this to the Backlog milestone 2026-12-05 14:29:49 -05:00
Author
Owner

Weekly check 2026-12-05 (DevSecOps Engineer): still open.

  • CI/workflows: none found. Actions enabled=true, repo secrets=0, vars=0, branch protections=none observed.
  • Secret scan: no config/workflow detected; no tracked .env/key/credential files in spot check.
  • Deps (npm): npm audit --package-lock-only (2026-12-05, local) => 0 vulns (info/low/moderate/high/critical = 0). Package-lock present. Still no CI audit gate.
    Signed: DevSecOps Engineer
Weekly check 2026-12-05 (DevSecOps Engineer): still open. - CI/workflows: none found. Actions enabled=true, repo secrets=0, vars=0, branch protections=none observed. - Secret scan: no config/workflow detected; no tracked .env/key/credential files in spot check. - Deps (npm): `npm audit --package-lock-only` (2026-12-05, local) => 0 vulns (info/low/moderate/high/critical = 0). Package-lock present. Still no CI audit gate. Signed: DevSecOps Engineer
Author
Owner

Weekly posture rerun (2026-12-05 19:56:00 UTC (scheduled one-off rerun; authoritative)) — DevSecOps Engineer

Scope checked: dependency advisories, CI permissions, secret-scan results.

Evidence (Forgejo API, default branch):

  • Workflows: no .github/workflows, .gitea/workflows, or .forgejo/workflows directory found.
  • Actions: no repo secrets, no repo variables configured (API list returned empty).
  • Secret scanning: no secret-scan workflow/config detected; no tracked .env/key/credential files spotted in root.
  • CI permissions: N/A (no workflows to review).
  • Dependency advisories (npm): package.json + package-lock.json present. npm audit --package-lock-only --json run 2026-12-05 UTC on lockfile fetched from default branch => 0 vulnerabilities (info=0 low=0 moderate=0 high=0 critical=0, total deps 112). No CI audit gate; result is point-in-time only.

Status: issue remains open. Needs human decision on CI/scanning rollout (see issue body recommendations).

Signed: DevSecOps Engineer

Weekly posture rerun (2026-12-05 19:56:00 UTC (scheduled one-off rerun; authoritative)) — DevSecOps Engineer Scope checked: dependency advisories, CI permissions, secret-scan results. Evidence (Forgejo API, default branch): - Workflows: no .github/workflows, .gitea/workflows, or .forgejo/workflows directory found. - Actions: no repo secrets, no repo variables configured (API list returned empty). - Secret scanning: no secret-scan workflow/config detected; no tracked .env/key/credential files spotted in root. - CI permissions: N/A (no workflows to review). - Dependency advisories (npm): package.json + package-lock.json present. `npm audit --package-lock-only --json` run 2026-12-05 UTC on lockfile fetched from default branch => 0 vulnerabilities (info=0 low=0 moderate=0 high=0 critical=0, total deps 112). No CI audit gate; result is point-in-time only. Status: issue remains open. Needs human decision on CI/scanning rollout (see issue body recommendations). Signed: DevSecOps Engineer
Author
Owner

Plain English

This is a routine safety check of this repo's basic setup. It lists what is in place, what is missing, and what should be fixed so people can trust and maintain the project.

DevSecOps Engineer baseline check (2026-12-06 UTC) (manual run)

Scope: active-repo baseline hygiene check (repo updated within last 7 days; cutoff 2026-11-29T03:57:01Z).

Evidence (Forgejo API + shallow clone/file inspection on host clay-ai):

  • Repo: https://git.claytonia.net/Clarth/oscar-web
  • Description: (missing)
  • README: README.md present
  • LICENSE: MISSING (public repo)
  • CI workflows (.github/.gitea/.forgejo workflows): none found
  • Manifests/lockfiles: package.json, package-lock.json
  • Dependency audit path: MISSING (manifests/lockfiles exist but no audit workflow/config found)
  • Secret-scan workflow/config: none found
  • Suspicious secret-like filenames: none found
  • Tracked-secret content scan (common patterns, redacted): none (pattern/filename scan)

Gaps relevant to this existing issue: missing CI workflow; missing secret-scan workflow/config; missing dependency audit path (manifests present); CI permissions should be reviewed when CI is added.
Extra baseline gap(s) noted (tracked separately if no existing issue): repo description missing; LICENSE missing;

No credentials or secret values are included in this comment.

— DevSecOps Engineer (automated baseline check)

## Plain English This is a routine safety check of this repo's basic setup. It lists what is in place, what is missing, and what should be fixed so people can trust and maintain the project. **DevSecOps Engineer baseline check (2026-12-06 UTC)** (manual run) Scope: active-repo baseline hygiene check (repo updated within last 7 days; cutoff 2026-11-29T03:57:01Z). Evidence (Forgejo API + shallow clone/file inspection on host clay-ai): - Repo: https://git.claytonia.net/Clarth/oscar-web - Description: (missing) - README: README.md present - LICENSE: MISSING (public repo) - CI workflows (.github/.gitea/.forgejo workflows): none found - Manifests/lockfiles: package.json, package-lock.json - Dependency audit path: MISSING (manifests/lockfiles exist but no audit workflow/config found) - Secret-scan workflow/config: none found - Suspicious secret-like filenames: none found - Tracked-secret content scan (common patterns, redacted): none (pattern/filename scan) Gaps relevant to this existing issue: missing CI workflow; missing secret-scan workflow/config; missing dependency audit path (manifests present); CI permissions should be reviewed when CI is added. Extra baseline gap(s) noted (tracked separately if no existing issue): repo description missing; LICENSE missing; No credentials or secret values are included in this comment. — DevSecOps Engineer (automated baseline check)
Sign in to join this conversation.
No labels
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Clarth/oscar-web#1
No description provided.