From e7b9508889b99b22296dcbddda039550f9bbe8a4 Mon Sep 17 00:00:00 2001 From: tushar-mahalya Date: Thu, 3 Dec 2026 22:17:18 +0530 Subject: [PATCH 1/3] chore: point project links at the kdev-cli organization The repository moved from tushar-mahalya/kdev to kdev-cli/kdev. GitHub redirects the old URLs, but the package metadata, badges, docs and site should name the real home. References to the maintainer as a person (CODEOWNERS, CITATION alias, CLA, governance) stay as they are. Releases up to 0.2.0 carry provenance for the old name, so SECURITY.md says how to verify those. --- .github/ISSUE_TEMPLATE/config.yml | 4 +-- .github/ISSUE_TEMPLATE/documentation.yml | 2 +- CHANGELOG.md | 3 ++ CITATION.cff | 2 +- CLA.md | 2 +- CONTRIBUTING.md | 14 ++++---- README.md | 24 ++++++------- SECURITY.md | 9 +++-- SUPPORT.md | 6 ++-- pyproject.toml | 6 ++-- website/src/components/Architecture.astro | 2 +- website/src/components/Faq.astro | 2 +- website/src/content/docs/commands.md | 2 +- website/src/content/docs/contributing.md | 42 +++++++++++------------ website/src/content/docs/index.md | 2 +- website/src/data/site.ts | 2 +- website/src/pages/disclaimer.astro | 2 +- 17 files changed, 66 insertions(+), 60 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 56226df..5d35695 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,8 +1,8 @@ blank_issues_enabled: false contact_links: - name: Ask a question - url: https://github.com/tushar-mahalya/kdev/discussions/categories/q-a + url: https://github.com/kdev-cli/kdev/discussions/categories/q-a about: How do I…? Is this expected? Ask in Discussions. - name: Report a security vulnerability - url: https://github.com/tushar-mahalya/kdev/security/advisories/new + url: https://github.com/kdev-cli/kdev/security/advisories/new about: Privately, please, never in a public issue. diff --git a/.github/ISSUE_TEMPLATE/documentation.yml b/.github/ISSUE_TEMPLATE/documentation.yml index a012ecc..4775331 100644 --- a/.github/ISSUE_TEMPLATE/documentation.yml +++ b/.github/ISSUE_TEMPLATE/documentation.yml @@ -6,7 +6,7 @@ body: - type: markdown attributes: value: | - For a question about using kdev, ask in [Q&A](https://github.com/tushar-mahalya/kdev/discussions/categories/q-a) instead. + For a question about using kdev, ask in [Q&A](https://github.com/kdev-cli/kdev/discussions/categories/q-a) instead. - type: input id: location attributes: diff --git a/CHANGELOG.md b/CHANGELOG.md index acd29bc..1ce3735 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ All notable changes are recorded here. The format follows ## [Unreleased] ### Changed +- The repository moved to the kdev-cli organization: it is now + . Old links, clones and + `uv tool install git+https://github.com/tushar-mahalya/kdev` redirect. - The minimum versions of two dependencies are now the ones kdev works with: typer 0.27.2 (0.27.0 and 0.27.1 crash when a command fails) and questionary 2.1 (2.0 fails on every numbered list prompt). CI now runs the tests against the diff --git a/CITATION.cff b/CITATION.cff index 3a80b42..793446a 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -11,7 +11,7 @@ authors: - given-names: Tushar family-names: Sharma alias: tushar-mahalya -repository-code: https://github.com/tushar-mahalya/kdev +repository-code: https://github.com/kdev-cli/kdev url: https://kdev-cli.pages.dev license: MIT keywords: diff --git a/CLA.md b/CLA.md index 5209192..26d4ffc 100644 --- a/CLA.md +++ b/CLA.md @@ -10,7 +10,7 @@ > > You sign it once, by following the link that the CLA Assistant bot posts on > your first pull request. It does not change the project's -> [MIT License](https://github.com/tushar-mahalya/kdev/blob/main/LICENSE). +> [MIT License](https://github.com/kdev-cli/kdev/blob/main/LICENSE). Thank you for your interest in kdev (the "Project"), maintained by Tushar Sharma (GitHub: [tushar-mahalya](https://github.com/tushar-mahalya)) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1d97190..933c715 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,15 +16,15 @@ in [SUPPORT.md](SUPPORT.md). ## Ways to help -- **Ask a question** in [Discussions](https://github.com/tushar-mahalya/kdev/discussions): +- **Ask a question** in [Discussions](https://github.com/kdev-cli/kdev/discussions): how to do something, or whether what you see is expected. - **Report a bug.** Open an issue with what you ran, what you expected and what happened. The output of the same command with `-v` (`kdev -v up …`) helps most. It logs every Kaggle API call; check it for anything you would rather not share before you paste it. - **Fix something.** Issues labelled - [`good first issue`](https://github.com/tushar-mahalya/kdev/labels/good%20first%20issue) - are small and well described; [`help wanted`](https://github.com/tushar-mahalya/kdev/labels/help%20wanted) + [`good first issue`](https://github.com/kdev-cli/kdev/labels/good%20first%20issue) + are small and well described; [`help wanted`](https://github.com/kdev-cli/kdev/labels/help%20wanted) ones are bigger. Say in the issue that you are on it, so two people don't fix the same thing. - **Improve the docs.** If something was unclear when you set up, it will @@ -38,7 +38,7 @@ in [SUPPORT.md](SUPPORT.md). You need Python 3.11+ and [uv](https://docs.astral.sh/uv/). ```bash -git clone https://github.com/tushar-mahalya/kdev && cd kdev +git clone https://github.com/kdev-cli/kdev && cd kdev uv sync uv run pre-commit install # hooks on commit and commit message, tests on push uv run basedpyright # basic-mode type check, also on every commit @@ -191,12 +191,12 @@ not required checks. The files are not applied by themselves. A maintainer applies a changed one with the GitHub CLI, `POST` for a ruleset that does not exist yet and `PUT` -with its ID to update one (`gh api repos/tushar-mahalya/kdev/rulesets` lists +with its ID to update one (`gh api repos/kdev-cli/kdev/rulesets` lists the IDs): ```bash -gh api repos/tushar-mahalya/kdev/rulesets --method POST --input .github/rulesets/main-integrity.json -gh api repos/tushar-mahalya/kdev/rulesets/ --method PUT --input .github/rulesets/main.json +gh api repos/kdev-cli/kdev/rulesets --method POST --input .github/rulesets/main-integrity.json +gh api repos/kdev-cli/kdev/rulesets/ --method PUT --input .github/rulesets/main.json ``` ## Releasing diff --git a/README.md b/README.md index 0b1e98d..b185a4e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- kdev + kdev

@@ -9,14 +9,14 @@

- CI + CI PyPI Python versions - Latest release - MIT license - OpenSSF Scorecard + Latest release + MIT license + OpenSSF Scorecard Website - PRs welcome + PRs welcome

@@ -24,7 +24,7 @@ Docs · How it works · Commands · - Changelog + Changelog

## Why kdev @@ -135,15 +135,15 @@ Most messages name the command that fixes them. Common ones are listed in - [How it works](https://kdev-cli.pages.dev/docs/how-it-works/): the architecture, what `kdev up` does, how files persist, with diagrams - [Your files](https://kdev-cli.pages.dev/docs/files/) and [Several accounts, several machines](https://kdev-cli.pages.dev/docs/accounts/) - [Security and limits](https://kdev-cli.pages.dev/docs/security/) -- [Architecture for contributors](https://github.com/tushar-mahalya/kdev/blob/main/docs/ARCHITECTURE.md), including how the code is laid out +- [Architecture for contributors](https://github.com/kdev-cli/kdev/blob/main/docs/ARCHITECTURE.md), including how the code is laid out ## Contributing Bug reports, fixes, docs and features are welcome. For anything bigger than a fix, open an issue first. Questions go to -[Discussions](https://github.com/tushar-mahalya/kdev/discussions). How to set +[Discussions](https://github.com/kdev-cli/kdev/discussions). How to set up, test without spending GPU quota, and send a pull request: -[CONTRIBUTING.md](https://github.com/tushar-mahalya/kdev/blob/main/CONTRIBUTING.md). +[CONTRIBUTING.md](https://github.com/kdev-cli/kdev/blob/main/CONTRIBUTING.md). ## Security @@ -153,10 +153,10 @@ with Can Edit. Kaggle allows one account per person and restricts tunnelling out of notebooks; know the rules you are working under. Details are in [Security and limits](https://kdev-cli.pages.dev/docs/security/). Report a vulnerability privately, as -[SECURITY.md](https://github.com/tushar-mahalya/kdev/blob/main/SECURITY.md) +[SECURITY.md](https://github.com/kdev-cli/kdev/blob/main/SECURITY.md) describes. ## License -[MIT](https://github.com/tushar-mahalya/kdev/blob/main/LICENSE). kdev is an +[MIT](https://github.com/kdev-cli/kdev/blob/main/LICENSE). kdev is an independent project, not affiliated with Kaggle, Google or Cloudflare. diff --git a/SECURITY.md b/SECURITY.md index 7531eb2..fdfa863 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -13,7 +13,7 @@ Security fixes go into the latest release only. Upgrade with ## Reporting a vulnerability Please report it **privately** through GitHub's private vulnerability reporting: -****. Don't open +****. Don't open a public issue, discussion or pull request for it. Tell us, as far as you can: @@ -40,12 +40,15 @@ Sigstore-signed build provenance for its wheel and sdist. To check that a file was built from this repository by its release workflow: ```bash -gh attestation verify kdev_cli-0.2.0-py3-none-any.whl --repo tushar-mahalya/kdev +gh attestation verify kdev_cli--py3-none-any.whl --repo kdev-cli/kdev ``` The same signed provenance is attached to each GitHub release as `kdev_cli-.sigstore.json`, for checking without going to GitHub: -`gh attestation verify --repo tushar-mahalya/kdev --bundle kdev_cli-.sigstore.json`. +`gh attestation verify --repo kdev-cli/kdev --bundle kdev_cli-.sigstore.json`. +Releases up to 0.2.0 were built before the repository moved to the kdev-cli +organization, so their provenance names `tushar-mahalya/kdev`: check those with +`--repo tushar-mahalya/kdev`. The files on PyPI carry their own attestations, shown under "Verified details" on the project page. diff --git a/SUPPORT.md b/SUPPORT.md index fa0ac1b..68fd0b9 100644 --- a/SUPPORT.md +++ b/SUPPORT.md @@ -2,12 +2,12 @@ ## Get help -- **Questions and ideas:** use [GitHub Discussions](https://github.com/tushar-mahalya/kdev/discussions). +- **Questions and ideas:** use [GitHub Discussions](https://github.com/kdev-cli/kdev/discussions). Choose *Q&A* for how to do something or whether what you see is expected. -- **Bugs:** open a [bug report](https://github.com/tushar-mahalya/kdev/issues/new?template=bug_report.yml). +- **Bugs:** open a [bug report](https://github.com/kdev-cli/kdev/issues/new?template=bug_report.yml). Include the output of the same command with `-v`, the kdev version and your operating system. -- **Documentation problems:** open a [documentation issue](https://github.com/tushar-mahalya/kdev/issues/new?template=documentation.yml). +- **Documentation problems:** open a [documentation issue](https://github.com/kdev-cli/kdev/issues/new?template=documentation.yml). - **Security issues:** do not use a public issue. Follow [SECURITY.md](SECURITY.md). ## Before you ask diff --git a/pyproject.toml b/pyproject.toml index f04b3ed..95a04bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,9 +39,9 @@ dependencies = [ [project.urls] Homepage = "https://kdev-cli.pages.dev" Documentation = "https://kdev-cli.pages.dev/docs/" -Repository = "https://github.com/tushar-mahalya/kdev" -Issues = "https://github.com/tushar-mahalya/kdev/issues" -Changelog = "https://github.com/tushar-mahalya/kdev/blob/main/CHANGELOG.md" +Repository = "https://github.com/kdev-cli/kdev" +Issues = "https://github.com/kdev-cli/kdev/issues" +Changelog = "https://github.com/kdev-cli/kdev/blob/main/CHANGELOG.md" [project.scripts] kdev = "kdev.cli:main" diff --git a/website/src/components/Architecture.astro b/website/src/components/Architecture.astro index d9651f5..07fb059 100644 --- a/website/src/components/Architecture.astro +++ b/website/src/components/Architecture.astro @@ -192,7 +192,7 @@ const payload = JSON.stringify({ edges, flows, nodes: nodes.map(({ id, t, s, d, type Node = { id: string; t: string; s: string; d: string; facts?: string[]; src?: string }; const NS = 'http://www.w3.org/2000/svg'; - const REPO = 'https://github.com/tushar-mahalya/kdev/blob/main/'; + const REPO = 'https://github.com/kdev-cli/kdev/blob/main/'; function setup() { const dlg = document.querySelector('[data-arch]'); diff --git a/website/src/components/Faq.astro b/website/src/components/Faq.astro index 6de2bf4..c2c64a8 100644 --- a/website/src/components/Faq.astro +++ b/website/src/components/Faq.astro @@ -7,7 +7,7 @@ import { faq } from '../data/faq';
Questions

Asked before
you install.

-

Still unsure? Ask in Discussions.

+

Still unsure? Ask in Discussions.

{faq.map((f, i) => ( diff --git a/website/src/content/docs/commands.md b/website/src/content/docs/commands.md index 76a6aae..114c628 100644 --- a/website/src/content/docs/commands.md +++ b/website/src/content/docs/commands.md @@ -7,7 +7,7 @@ order: 6 > `kdev forward`, `kdev history` and the 15- and 5-minute end-of-session > warnings are on `main` and ship in the next release. To use them now: -> `uv tool install git+https://github.com/tushar-mahalya/kdev`. +> `uv tool install git+https://github.com/kdev-cli/kdev`. | command | what it does | |---|---| diff --git a/website/src/content/docs/contributing.md b/website/src/content/docs/contributing.md index 6ae9647..4e7561f 100644 --- a/website/src/content/docs/contributing.md +++ b/website/src/content/docs/contributing.md @@ -10,25 +10,25 @@ is small and opinionated, so for anything bigger than a fix, open an issue first and say what you want to change and why. It saves you writing code that goes a different way than the project. -How decisions are made is in [GOVERNANCE.md](https://github.com/tushar-mahalya/kdev/blob/main/GOVERNANCE.md); where to get help is -in [SUPPORT.md](https://github.com/tushar-mahalya/kdev/blob/main/SUPPORT.md). +How decisions are made is in [GOVERNANCE.md](https://github.com/kdev-cli/kdev/blob/main/GOVERNANCE.md); where to get help is +in [SUPPORT.md](https://github.com/kdev-cli/kdev/blob/main/SUPPORT.md). ## Ways to help -- **Ask a question** in [Discussions](https://github.com/tushar-mahalya/kdev/discussions): +- **Ask a question** in [Discussions](https://github.com/kdev-cli/kdev/discussions): how to do something, or whether what you see is expected. - **Report a bug.** Open an issue with what you ran, what you expected and what happened. The output of the same command with `-v` (`kdev -v up …`) helps most. It logs every Kaggle API call; check it for anything you would rather not share before you paste it. - **Fix something.** Issues labelled - [`good first issue`](https://github.com/tushar-mahalya/kdev/labels/good%20first%20issue) - are small and well described; [`help wanted`](https://github.com/tushar-mahalya/kdev/labels/help%20wanted) + [`good first issue`](https://github.com/kdev-cli/kdev/labels/good%20first%20issue) + are small and well described; [`help wanted`](https://github.com/kdev-cli/kdev/labels/help%20wanted) ones are bigger. Say in the issue that you are on it, so two people don't fix the same thing. - **Improve the docs.** If something here was unclear when you set up, it will be unclear to the next person too. -- **Report a vulnerability** privately, as [SECURITY.md](https://github.com/tushar-mahalya/kdev/blob/main/SECURITY.md) +- **Report a vulnerability** privately, as [SECURITY.md](https://github.com/kdev-cli/kdev/blob/main/SECURITY.md) describes, never in a public issue. ## Set up @@ -36,7 +36,7 @@ in [SUPPORT.md](https://github.com/tushar-mahalya/kdev/blob/main/SUPPORT.md). You need Python 3.11+ and [uv](https://docs.astral.sh/uv/). ```bash -git clone https://github.com/tushar-mahalya/kdev && cd kdev +git clone https://github.com/kdev-cli/kdev && cd kdev uv sync uv run pre-commit install # hooks on commit and commit message, tests on push uv run basedpyright # basic-mode type check, also on every commit @@ -71,7 +71,7 @@ When yours touches the box, the tunnel or the restore, try it for real: ## How the code is laid out The full picture, with diagrams, is in -[docs/ARCHITECTURE.md](https://github.com/tushar-mahalya/kdev/blob/main/docs/ARCHITECTURE.md). +[docs/ARCHITECTURE.md](https://github.com/kdev-cli/kdev/blob/main/docs/ARCHITECTURE.md). | layer | rule | |---|---| @@ -104,14 +104,14 @@ on-box restore against a temporary directory. pull request checks its title, because we squash-merge and the title becomes the commit on `main`. - **Record what users will notice** under `## [Unreleased]` in - [CHANGELOG.md](https://github.com/tushar-mahalya/kdev/blob/main/CHANGELOG.md), and update the README if a command or its + [CHANGELOG.md](https://github.com/kdev-cli/kdev/blob/main/CHANGELOG.md), and update the README if a command or its behaviour changes. ## AI-assisted contributions AI tools are welcome here, as long as a person is behind the pull request. Agent-assisted work is fine when you direct it, review every line, run the -tests and can explain every change. [AGENTS.md](https://github.com/tushar-mahalya/kdev/blob/main/AGENTS.md) tells agents how the +tests and can explain every change. [AGENTS.md](https://github.com/kdev-cli/kdev/blob/main/AGENTS.md) tells agents how the repository works. - **Fully agentic pull requests are not accepted.** If an agent wrote the code, @@ -133,7 +133,7 @@ repository works. surrounding code does not have, and abstractions nobody asked for. - **Submit only what you may license.** A model can reproduce code from other projects. Send only what you are allowed to license under the - [MIT license](https://github.com/tushar-mahalya/kdev/blob/main/LICENSE) and the [Contributor License Agreement](https://github.com/tushar-mahalya/kdev/blob/main/CLA.md). + [MIT license](https://github.com/kdev-cli/kdev/blob/main/LICENSE) and the [Contributor License Agreement](https://github.com/kdev-cli/kdev/blob/main/CLA.md). ## Automated review @@ -147,7 +147,7 @@ the pull request: mention `@coderabbitai` with a question, or ## Contributor License Agreement Before your first pull request can merge, you sign the kdev -[Contributor License Agreement](https://github.com/tushar-mahalya/kdev/blob/main/CLA.md). It says that you wrote what you +[Contributor License Agreement](https://github.com/kdev-cli/kdev/blob/main/CLA.md). It says that you wrote what you contribute (or have the right to submit it) and lets the project keep distributing it. You keep the copyright in your work. @@ -158,17 +158,17 @@ itself changes, the bot asks you to sign the new version. ## Labels -Labels are defined in [`.github/labels.yml`](https://github.com/tushar-mahalya/kdev/blob/main/.github/labels.yml). The "Sync +Labels are defined in [`.github/labels.yml`](https://github.com/kdev-cli/kdev/blob/main/.github/labels.yml). The "Sync labels" workflow applies that file when it changes on `main`: it creates and updates labels and never deletes one. A second workflow labels each pull request from the paths it changes (`area: cli`, `area: box`, `area: website` -and so on, in [`.github/labeler.yml`](https://github.com/tushar-mahalya/kdev/blob/main/.github/labeler.yml)) and from its branch +and so on, in [`.github/labeler.yml`](https://github.com/kdev-cli/kdev/blob/main/.github/labeler.yml)) and from its branch prefix (`feat/`, `fix/`, `docs/`). The labels also sort the notes GitHub -generates for a release ([`.github/release.yml`](https://github.com/tushar-mahalya/kdev/blob/main/.github/release.yml)). +generates for a release ([`.github/release.yml`](https://github.com/kdev-cli/kdev/blob/main/.github/release.yml)). ## Repository rulesets -Branch and tag protection is written down in [`.github/rulesets`](https://github.com/tushar-mahalya/kdev/tree/main/.github/rulesets), +Branch and tag protection is written down in [`.github/rulesets`](https://github.com/kdev-cli/kdev/tree/main/.github/rulesets), so a change to it is reviewed like any other: - `main.json`: a change reaches `main` only through a pull request that @@ -188,12 +188,12 @@ not required checks. The files are not applied by themselves. A maintainer applies a changed one with the GitHub CLI, `POST` for a ruleset that does not exist yet and `PUT` -with its ID to update one (`gh api repos/tushar-mahalya/kdev/rulesets` lists +with its ID to update one (`gh api repos/kdev-cli/kdev/rulesets` lists the IDs): ```bash -gh api repos/tushar-mahalya/kdev/rulesets --method POST --input .github/rulesets/main-integrity.json -gh api repos/tushar-mahalya/kdev/rulesets/ --method PUT --input .github/rulesets/main.json +gh api repos/kdev-cli/kdev/rulesets --method POST --input .github/rulesets/main-integrity.json +gh api repos/kdev-cli/kdev/rulesets/ --method PUT --input .github/rulesets/main.json ``` ## Releasing @@ -206,6 +206,6 @@ with the wheel and sdist attached. ## License -kdev is [MIT licensed](https://github.com/tushar-mahalya/kdev/blob/main/LICENSE). By contributing, you agree that your +kdev is [MIT licensed](https://github.com/kdev-cli/kdev/blob/main/LICENSE). By contributing, you agree that your contributions are licensed under the same terms, and you grant the rights -set out in the [Contributor License Agreement](https://github.com/tushar-mahalya/kdev/blob/main/CLA.md). +set out in the [Contributor License Agreement](https://github.com/kdev-cli/kdev/blob/main/CLA.md). diff --git a/website/src/content/docs/index.md b/website/src/content/docs/index.md index 1a5f69d..e57c5de 100644 --- a/website/src/content/docs/index.md +++ b/website/src/content/docs/index.md @@ -17,7 +17,7 @@ The package is `kdev-cli` (PyPI does not allow `kdev`); the command it installs is `kdev`. Upgrade with `uv tool upgrade kdev-cli`. To run what is on `main` but not released yet: -`uv tool install git+https://github.com/tushar-mahalya/kdev`. +`uv tool install git+https://github.com/kdev-cli/kdev`. `kdev setup` does only what is missing, so it is safe to run again at any time. It will: diff --git a/website/src/data/site.ts b/website/src/data/site.ts index 29ebc28..9b617f3 100644 --- a/website/src/data/site.ts +++ b/website/src/data/site.ts @@ -3,7 +3,7 @@ export const site = { title: 'kdev: SSH and VS Code into a Kaggle GPU notebook, with files that persist', description: 'kdev is a free, open-source CLI that turns a Kaggle notebook into a remote dev box: SSH or VS Code Remote-SSH into free T4, P100 or TPU machines, and get your files back on the next session, from any account or machine.', - repo: 'https://github.com/tushar-mahalya/kdev', + repo: 'https://github.com/kdev-cli/kdev', pypi: 'https://pypi.org/project/kdev-cli/', version: '0.2.0', install: 'uv tool install kdev-cli', diff --git a/website/src/pages/disclaimer.astro b/website/src/pages/disclaimer.astro index 762accb..fe56346 100644 --- a/website/src/pages/disclaimer.astro +++ b/website/src/pages/disclaimer.astro @@ -17,7 +17,7 @@ import { site, links } from '../data/site';

What kdev is

kdev is a command-line tool, released under the MIT licence, that uses Kaggle's public API and Cloudflare Tunnel to run a - Kaggle notebook session as a remote development machine. Its source is public at github.com/tushar-mahalya/kdev. It + Kaggle notebook session as a remote development machine. Its source is public at github.com/kdev-cli/kdev. It was built to study and document how notebook sessions, saved versions and outbound tunnels behave, and to teach the techniques involved.

From ed86e8ccbbe60512ce3d5022bdfbc37584d4d11f Mon Sep 17 00:00:00 2001 From: tushar-mahalya Date: Thu, 3 Dec 2026 22:22:59 +0530 Subject: [PATCH 2/3] ci: run the gitleaks cli instead of gitleaks-action gitleaks-action needs a licence key in a repository owned by an organization, so the 'no secrets in history' job failed once kdev moved to kdev-cli, and with it 'CI passed'. The CLI needs no key. It is pinned to 8.30.1 by version and SHA-256, taken from the release's checksums file and checked against the downloaded tarball. Scanning every commit with it finds one verified false positive, a placeholder next to a public session number in a test docstring, which .gitleaksignore now lists by fingerprint. --- .github/workflows/ci.yml | 14 ++++++++++++-- .gitleaksignore | 3 +++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .gitleaksignore diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2eb0a8..ec30e94 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -123,9 +123,19 @@ jobs: with: persist-credentials: false fetch-depth: 0 - - uses: gitleaks/gitleaks-action@e0c47f4f8be36e29cdc102c57e68cb5cbf0e8d1e # v3.0.0 + # The gitleaks CLI, not gitleaks-action, which needs a licence key in a + # repository owned by an organization. Bump the version and checksum + # together; the checksum is in the release's checksums file. + - name: gitleaks over every commit env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITLEAKS_VERSION: 8.30.1 + GITLEAKS_SHA256: 551f6fc83ea457d62a0d98237cbad105af8d557003051f41f3e7ca7b3f2470eb # pragma: allowlist secret + run: | + tarball="$RUNNER_TEMP/gitleaks.tar.gz" + curl -fsSL -o "$tarball" "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" + echo "${GITLEAKS_SHA256} ${tarball}" | sha256sum -c - + tar -xzf "$tarball" -C "$RUNNER_TEMP" gitleaks + "$RUNNER_TEMP/gitleaks" git --redact --no-banner --verbose . # One check for branch protection to require: the job names above change with # the test matrix, this one does not. diff --git a/.gitleaksignore b/.gitleaksignore new file mode 100644 index 0000000..8614db8 --- /dev/null +++ b/.gitleaksignore @@ -0,0 +1,3 @@ +# Verified false positives: the fingerprint of each gitleaks finding that is not a secret. +# A placeholder and a public Kaggle session number in a test docstring. +b479b6ed833d1ca78ef35beed525360ad0c7545a:tests/test_bootstrap.py:generic-api-key:223 From 0e20abe885bf4058030b7aa40a24bcc899f31630 Mon Sep 17 00:00:00 2001 From: tushar-mahalya Date: Thu, 3 Dec 2026 22:46:22 +0530 Subject: [PATCH 3/3] chore: unpin the license/cla check from the old CLA app install GitHub rejects integration id 128106 after the move to kdev-cli, so the ruleset now matches license/cla from any source, as the live ruleset does. --- .github/rulesets/main.json | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/.github/rulesets/main.json b/.github/rulesets/main.json index 7a2251e..e70abec 100644 --- a/.github/rulesets/main.json +++ b/.github/rulesets/main.json @@ -3,14 +3,29 @@ "target": "branch", "enforcement": "active", "conditions": { - "ref_name": { "include": ["~DEFAULT_BRANCH"], "exclude": [] } + "ref_name": { + "include": [ + "~DEFAULT_BRANCH" + ], + "exclude": [] + } }, "bypass_actors": [ - { "actor_id": 5, "actor_type": "RepositoryRole", "bypass_mode": "pull_request" }, - { "actor_id": 78840863, "actor_type": "User", "bypass_mode": "always" } + { + "actor_id": 5, + "actor_type": "RepositoryRole", + "bypass_mode": "pull_request" + }, + { + "actor_id": 78840863, + "actor_type": "User", + "bypass_mode": "always" + } ], "rules": [ - { "type": "required_linear_history" }, + { + "type": "required_linear_history" + }, { "type": "pull_request", "parameters": { @@ -20,7 +35,9 @@ "require_last_push_approval": true, "required_review_thread_resolution": true, "require_extra_approval_for_unattributed_changes": true, - "allowed_merge_methods": ["squash"] + "allowed_merge_methods": [ + "squash" + ] } }, { @@ -29,8 +46,13 @@ "strict_required_status_checks_policy": true, "do_not_enforce_on_create": false, "required_status_checks": [ - { "context": "CI passed", "integration_id": 15368 }, - { "context": "license/cla", "integration_id": 128106 } + { + "context": "CI passed", + "integration_id": 15368 + }, + { + "context": "license/cla" + } ] } }