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

Closed
opened 2026-12-05 14:28:08 -05:00 by Clarth · 2 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

  • Python project with requirements.txt (requests>=2.31, python-dotenv>=1.0) — minimum-only pins, no lockfile; harder to audit/reproduce.
  • No CI workflows, no secret-scan results, no CI permissions to review.
  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 - Python project with `requirements.txt` (`requests>=2.31`, `python-dotenv>=1.0`) — minimum-only pins, no lockfile; harder to audit/reproduce. - No CI workflows, no secret-scan results, no CI permissions to review. ### 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:45 -05:00
Clarth added this to the Backlog milestone 2026-12-05 14:29:46 -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: requirements.txt present (requests>=2.31, python-dotenv>=1.0) — unpinned ranges, no lockfile, no automated advisory scan/CI 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: requirements.txt present (requests>=2.31, python-dotenv>=1.0) — unpinned ranges, no lockfile, no automated advisory scan/CI 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 (Python): requirements.txt present (requests>=2.31, python-dotenv>=1.0), no lockfile. Floor requests>=2.31 allows 2.31.0 which is affected by CVE-2024-35195 (cert-verify behavior when verify=False; fixed in 2.32.0). Recommend bumping floor to requests>=2.32.0 (or latest verified) and adding lockfile + pip-audit in CI. No automated advisory audit/secret scan in place.

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 (Python): requirements.txt present (`requests>=2.31`, `python-dotenv>=1.0`), no lockfile. Floor `requests>=2.31` allows 2.31.0 which is affected by CVE-2024-35195 (cert-verify behavior when verify=False; fixed in 2.32.0). Recommend bumping floor to `requests>=2.32.0` (or latest verified) and adding lockfile + pip-audit in CI. No automated advisory audit/secret scan in place. Status: issue remains open. Needs human decision on CI/scanning rollout (see issue body recommendations). Signed: DevSecOps Engineer
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/fluxer-admin-alerts#1
No description provided.