chore(sec): add dependabot + codeql configs (admin toggles required in Settings)#370
Open
Adiz4415 wants to merge 1 commit into
Open
chore(sec): add dependabot + codeql configs (admin toggles required in Settings)#370Adiz4415 wants to merge 1 commit into
Adiz4415 wants to merge 1 commit into
Conversation
Adds the code-level pieces of GitHub-side hardening that do not require admin on geevapp/geev to land: a Dependabot config for the app/ npm workspace and GitHub Actions at the repo root (weekly cadence, grouped minor/patch updates, conventional-commits prefix), and a CodeQL Analysis workflow for the Next.js app/ workspace (weekly cron + on-push/on-PR triggers, least-privilege permissions, security-and-quality queries). The actual platform toggles (Dependabot alerts, Code Scanning, Secret Scanning + push protection, Private Vulnerability Reporting) require admin access and must be flipped by a maintainer under repo Settings → Code security and analysis. See SECURITY.md for the full checklist.
|
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:
For more information about GitHub Code Scanning, check out the documentation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds the code-level pieces of the GitHub-side hardening referenced in SECURITY.md ("GitHub-Side Hardening" section). The contributing token on
geevapp/geevispull: trueonly (no admin / push), so the actual feature toggles cannot be flipped via API — they must be enabled by a maintainer under repo Settings once this PR merges.Changes
.github/dependabot.yml— Dependabot version updates for theapp/npm workspace and for GitHub Actions at the repo root. Weekly cadence, group minor/patch to reduce PR noise, conventional-commits prefix, auto-rebase. Cargo /contracts/workspace intentionally not covered (no first-class Dependabot support for cargo today)..github/workflows/codeql.yml— CodeQL Analysis workflow for the Next.jsapp/workspace. Weekly cron + on-push-to-main + on-PR-to-main triggers, least-privilege permissions (security-events: write,contents: read),queries: security-and-quality,build-mode: none(JS/TS only).Reviewer feedback has been incorporated —
area: applabel was kept (Dependabot gracefully skips unknown labels) and CodeQL action is pinned to@v3major (locking to commit hashes can come in a follow-up via Dependabot itself).Maintainer Action Required
Settings → Code security and analysis (admin-only):
.github/dependabot.yml)enabled: falseAfter enabling:
pnpm audit/cargo auditshould start informing Dependabot PRs.CodeQL Analysisworkflow will begin posting SARIF runs into the Security tab.gh api /repos/geevapp/geev/vulnerability-alertswill return 200 once alerts are on.Out of scope (intentional follow-ups)
cargo auditworkflow for thecontracts/workspace — Dependabot does not cover Cargo reliably today; we will add a separate CI job.Test / verify
No automated test for this PR — code-land is config files only. After Settings toggles are on, expect dependabot.yml + codeql workflow to fire Monday morning (or sooner if manually triggered).