Skip to content

Harden repo for OSS (LICENSE, CODEOWNERS, SECURITY, Dependabot, CodeQL, CONTRIBUTING)#1

Merged
adibhanna merged 2 commits into
mainfrom
chore/harden-repo
Apr 17, 2026
Merged

Harden repo for OSS (LICENSE, CODEOWNERS, SECURITY, Dependabot, CodeQL, CONTRIBUTING)#1
adibhanna merged 2 commits into
mainfrom
chore/harden-repo

Conversation

@adibhanna

@adibhanna adibhanna commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

Summary

End-to-end hardening pass for open-source posture.

Files in this PR

  • LICENSE — MIT
  • CONTRIBUTING.md — dev loop, PR requirements, style bar
  • SECURITY.md — private vulnerability reporting guidance
  • .github/CODEOWNERS@adibhanna auto-reviews everything
  • .github/dependabot.yml — weekly npm + GitHub Actions update PRs
  • .github/workflows/codeql.yml — CodeQL scan on push, PR, and weekly schedule

Applied outside of source control

  • Squash merges only; merge-commit and rebase disabled
  • Auto-delete head branches after merge
  • Secret scanning + push protection enabled
  • Automated Dependabot security fixes enabled
  • Private vulnerability reporting enabled
  • Branch protection on main: PR required, 1 code-owner approval, dismiss stale reviews, require last-push approval, all 3 Build (*) status checks required, linear history, no force-push, no deletion, conversation resolution required; admin bypass kept on

Org defaults tightened

  • Members cannot create repos; base permission stays Read
  • New repos inherit Dependabot alerts, security updates, dependency graph, secret scanning, and push protection

Test plan

  • CI green on this PR
  • CODEOWNERS auto-requests @adibhanna
  • Squash-merge option visible (merge-commit and rebase hidden)
  • After merge, branch auto-deletes

- MIT LICENSE
- CODEOWNERS pointing at @adibhanna for all paths
- SECURITY.md with private vulnerability reporting guidance
- Dependabot config for npm and github-actions updates
- CONTRIBUTING.md documents the dev loop, PR requirements, and style bar
- .github/workflows/codeql.yml adds weekly + per-PR CodeQL scans for
  javascript-typescript with the security-and-quality query pack
@adibhanna adibhanna changed the title Add repo-hardening foundation (LICENSE, CODEOWNERS, SECURITY, Dependabot) Harden repo for OSS (LICENSE, CODEOWNERS, SECURITY, Dependabot, CodeQL, CONTRIBUTING) Apr 17, 2026
@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.

@adibhanna
adibhanna merged commit 70648ac into main Apr 17, 2026
5 checks passed
@adibhanna
adibhanna deleted the chore/harden-repo branch April 17, 2026 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants