Repository navigation
Update dependencies to avoid compromised versions #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
dbd02b8
Add 30-day npm min-release-age to TS template
jvdgoltz 1819961
Require patched Node and release-age delay for npm and pnpm
jvdgoltz 4639895
Pin template tooling and add security version floors
jvdgoltz 6b1e5a8
Upgrade TS template tooling to latest major versions
jvdgoltz 0a0cc26
Fix TS template checks that failed on a new project
jvdgoltz 8403cb9
Keep README security notes independent of specific releases
jvdgoltz 9628b5f
Apply batched suggestions from code review
jvdgoltz 53340cc
Point Dependabot at the repo root and type-check root config files
jvdgoltz 44a83fa
Add pre-commit workflow, changelog and template versions
jvdgoltz 613cf01
Rename workflow to validate and add the required validate check
jvdgoltz df9814e
Remove the validate gate job
jvdgoltz 28b4a13
Date the 0.2.0 changelog entry and link the security disclosures
jvdgoltz 9115412
Exempt patched zod and fast-uri from the release delay
jvdgoltz 99e9a61
Check release-age exemptions at the start of a session
jvdgoltz 35a62e2
Mark the certifi delay as permanent
jvdgoltz af2c70c
Correct the README description of the certifi delay
jvdgoltz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| name: validate | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: [main] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| python: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0 | ||
| with: | ||
| working-directory: templates/py | ||
| # deptry needs a [project] section, which only exists after get-started. | ||
| - run: uvx pre-commit@4.6.2 run --all-files --show-diff-on-failure --config templates/py/.pre-commit-config.yaml | ||
| env: | ||
| SKIP: deptry | ||
|
|
||
| typescript: | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: templates/ts | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 | ||
| with: | ||
| package_json_file: templates/ts/package.json | ||
| - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | ||
| with: | ||
| node-version: 26 | ||
| check-latest: true | ||
| - run: pnpm install | ||
| # The template has no source files; add one so tsc and knip have input. | ||
| - run: | | ||
| mkdir -p src | ||
| printf '/** Add two numbers. */\nexport function add(a: number, b: number): number {\n return a + b;\n}\n' > src/index.ts | ||
| - run: pnpm validate | ||
| - run: pnpm format:check |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| # Changelog | ||
|
|
||
| All notable changes to this project are recorded in this file. | ||
| The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project uses [Semantic Versioning](https://semver.org/). | ||
|
|
||
| ## [0.2.0] - 2026-10-27 | ||
|
|
||
| Pull request: [#8](https://github.com/Kickstart-AI/agent-ready-template/pull/8) | ||
|
|
||
| This release protects the templates against recent vulnerabilities and supply-chain attacks. It blocks tool versions with known vulnerabilities, delays new package releases, and pins all dependencies. | ||
|
|
||
| ### Security | ||
| - Require patched Node.js versions. See the [Node.js October 2026 security releases](https://nodejs.org/en/blog/vulnerability/october-2026-security-releases). | ||
| - Require a `uv` version that does not trust the compromised eMudhra/emSign CA certificates. See the [Python announcement on the eMudhra/emSign CA certificate incident](https://discuss.python.org/t/information-for-python-users-regarding-emudhra-emsign-ca-certificate-security-incident/109576). | ||
| - Exempt the patched `zod` 4.6.6 ([GHSA-mrhx-c7xc-m3w5](https://github.com/advisories/GHSA-mrhx-c7xc-m3w5)) and `fast-uri` 3.1.9 ([GHSA-w74x-v6f9-j3xg](https://github.com/advisories/GHSA-w74x-v6f9-j3xg)) from the 30-day release delay in the TypeScript template. | ||
| - Remove the `braces` vulnerability ([GHSA-vfj7-8cjw-p6xm](https://github.com/advisories/GHSA-vfj7-8cjw-p6xm)) from the TypeScript template tools. | ||
|
|
||
| ### Added | ||
| - A GitHub workflow (`.github/workflows/validate.yml`) that runs the Python and TypeScript template checks. | ||
| - A version in `templates/py/pyproject.toml` and `templates/ts/package.json`, and this changelog. | ||
| - A 30-day release delay for npm (`.npmrc`) and pnpm (`pnpm-workspace.yaml`). This matches the `uv` delay. | ||
| - Minimum versions for Node.js (`engines.node`) and `uv` (`required-version`) that block releases with known vulnerabilities. | ||
| - An exemption from the `uv` release delay for `certifi`, so that certificate revocations install quickly. | ||
| - `get-started` steps that adapt the workflow, the Dependabot configuration, and the version to the new project. | ||
|
|
||
| ### Changed | ||
| - The TypeScript template pins all direct dependencies and pnpm to exact versions. | ||
| - The TypeScript template uses the newest major versions of its tools that are at least 30 days old. | ||
| - The ESLint configuration uses `defineConfig` and does not use type-aware rules on `.mjs` files. | ||
| - `tsconfig.json` includes root `*.config.ts` files, so typed linting works for them. | ||
| - The Python template uses `pre-commit-hooks` v6.0.0. | ||
|
|
||
| ### Fixed | ||
| - secretlint did not find its configuration. It now uses `.secretlintrc.json`. | ||
| - Knip, ESLint, and Prettier failed on a new TypeScript project. | ||
| - Missing final newlines and trailing whitespace in the agent instruction files. | ||
|
|
||
| ### Removed | ||
| - The redundant `@typescript-eslint/parser` and `@typescript-eslint/eslint-plugin` packages. `typescript-eslint` supplies them. | ||
|
|
||
| ## [0.1.0] - 2026-05-22 | ||
|
|
||
| ### Added | ||
| - Agent instructions (`AGENTS.md`, `CLAUDE.md`) with coding, security, communication, and documentation rules. | ||
| - The `get-started` and `wrap-up` agent skills. | ||
| - A documentation structure for plans, decisions, and TODOs. | ||
| - Python and TypeScript starter templates with linting, type checks, dead-code and duplicate-code detection, and secret scanning. | ||
| - A Dependabot configuration for the template dependencies, with a 30-day cooldown and grouped updates. | ||
|
|
||
| ### Changed | ||
| - Dependency updates from Dependabot ([#6](https://github.com/Kickstart-AI/agent-ready-template/pull/6)). | ||
|
|
||
| [0.2.0]: https://github.com/Kickstart-AI/agent-ready-template/pull/8 | ||
| [0.1.0]: https://github.com/Kickstart-AI/agent-ready-template/commits/main |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| @AGENTS.md | ||
| @AGENTS.md |
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| engine-strict=true | ||
| min-release-age=30 | ||
| min-release-age-exclude[]=zod | ||
| min-release-age-exclude[]=fast-uri |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| pnpm-lock.yaml |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "rules": [{ "id": "@secretlint/secretlint-rule-preset-recommend" }] | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,38 +1,50 @@ | ||
| import js from "@eslint/js"; | ||
| import { defineConfig } from "eslint/config"; | ||
| import tseslint from "typescript-eslint"; | ||
|
|
||
| export default tseslint.config( | ||
| export default defineConfig( | ||
| js.configs.recommended, | ||
| ...tseslint.configs.strictTypeChecked, | ||
| ...tseslint.configs.stylisticTypeChecked, | ||
| tseslint.configs.strictTypeChecked, | ||
| tseslint.configs.stylisticTypeChecked, | ||
| { | ||
| languageOptions: { | ||
| parserOptions: { | ||
| projectService: true, | ||
| tsconfigRootDir: import.meta.dirname | ||
| } | ||
| tsconfigRootDir: import.meta.dirname, | ||
| }, | ||
| }, | ||
| rules: { | ||
| "@typescript-eslint/consistent-type-imports": "error", | ||
| "@typescript-eslint/no-floating-promises": "error", | ||
| "@typescript-eslint/no-misused-promises": "error", | ||
| "complexity": ["error", 10], | ||
| "max-lines": ["error", { "max": 300, "skipBlankLines": true, "skipComments": true }], | ||
| "max-lines-per-function": ["error", { "max": 50, "skipBlankLines": true, "skipComments": true }], | ||
| complexity: ["error", 10], | ||
| "max-lines": [ | ||
| "error", | ||
| { max: 300, skipBlankLines: true, skipComments: true }, | ||
| ], | ||
| "max-lines-per-function": [ | ||
| "error", | ||
| { max: 50, skipBlankLines: true, skipComments: true }, | ||
| ], | ||
| "no-restricted-imports": [ | ||
| "error", | ||
| { | ||
| "patterns": [ | ||
| patterns: [ | ||
| { | ||
| "group": ["**/internal/**", "**/_*/**"], | ||
| "message": "Import through the module's public boundary instead of private internals." | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| group: ["**/internal/**", "**/_*/**"], | ||
| message: | ||
| "Import through the module's public boundary instead of private internals.", | ||
| }, | ||
| ], | ||
| }, | ||
| ], | ||
| }, | ||
| }, | ||
| { | ||
| ignores: ["dist/**", "build/**", "coverage/**", "node_modules/**"] | ||
| } | ||
| files: ["**/*.mjs"], | ||
| extends: [tseslint.configs.disableTypeChecked], | ||
| }, | ||
| { | ||
| ignores: ["dist/**", "build/**", "coverage/**", "node_modules/**"], | ||
| }, | ||
| ); |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| minimumReleaseAge: 43200 | ||
| savePrefix: "" | ||
| minimumReleaseAgeExclude: | ||
| - zod@4.6.6 | ||
| - fast-uri@3.1.9 | ||
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.