Skip to content

chore: branch-protection JSON + apply workflow + artifact cleanup + CodeQL #14

Description

@constk

Problem

Branch protection enforced by hand drifts. Artifact storage on a public repo grows without bound. SAST (CodeQL) is the cheapest static security signal.

Proposed solution

Port .github/branch-protection/{main,develop}.json (declarative protection: required status checks, no force-push, no deletions, conversation_resolution, 1 approving review). Port .github/workflows/branch-protection.yml (weekly + workflow_dispatch + on edits to JSON; applies via gh api). Port .github/workflows/artifact-cleanup.yml (weekly, prunes >7 days). Port .github/workflows/codeql.yml (Python + JS/TS, scheduled).

Acceptance criteria

Priority rationale

High: portfolio repos get scanned by recruiters and other engineers. Solid branch protection + SAST signal trust.

Depends on

#9, #10

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    choreMaintenance, tooling, infraciCI workflows and gatesharnessCross-cutting harness mechanics (controls, hooks, gates)securitySecurity scanning, secrets, vulns

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions