Repository navigation
ci: add CI workflow and grouped Dependabot config - #23
Merged
Merged
Conversation
- CI on PRs and main: CDK type check, jest, cdk synth (cdk-nag), Python pytest - Dependabot: weekly grouped npm minor/patch PR, grouped security PR, monthly actions updates - Auto-merge Dependabot patch/minor only after all CI jobs pass; majors stay manual - Actions pinned to commit SHAs; workflow token read-only except the merge job
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.
What
Adds the repo's first CI workflow and a Dependabot config.
CI (
.github/workflows/ci.yml) runs on every PR and on pushes tomain:cdk:npm ci,tsc --noEmit,jest, andcdk synthof all stacks (cdk-nag checks run during synth). Synth uses a placeholder account ID and makes no AWS calls.python:pytestfor each Python component that has tests.dependabot-auto-merge: squash-merges Dependabot patch and minor PRs, and only after the jobs above pass in the same run. Major updates stay manual.Dependabot (
.github/dependabot.yml):/cdknpm: one grouped weekly PR for minor and patch updates, plus one grouped PR for security fixes, replacing one PR per transitive package.Security notes
contents: write/pull-requests: write, and it runs only on Dependabot PRs.pull_request, notpull_request_target, so fork PRs never get a write token or secrets.Verified locally
npm ci,tsc,jest,cdk synthandpytestall pass onmainas of this branch.actionlintreports no issues.Not included
Python
requirements.txtfiles use>=ranges with no lockfile, so Dependabot can't propose pip updates or raise pip alerts for them. Pinning or adding a lockfile is a separate change.