From 1250f196a0e4c71755da901ab0bc97021ec65e5b Mon Sep 17 00:00:00 2001 From: "smart-ssh-coder[bot]" <338317697+smart-ssh-coder[bot]@users.noreply.github.com> Date: Wed, 25 Nov 2026 13:01:57 +0000 Subject: [PATCH 1/2] docs(contributing): add CONTRIBUTING.md, CLA.md and CLA check workflow (#1576) Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/cla.yml | 46 ++++++++++++++++++++++++++++++++ CLA.md | 32 ++++++++++++++++++++++ CONTRIBUTING.md | 56 +++++++++++++++++++++++++++++++++++++++ README.md | 4 +++ 4 files changed, 138 insertions(+) create mode 100644 .github/workflows/cla.yml create mode 100644 CLA.md create mode 100644 CONTRIBUTING.md diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 000000000..7b94034eb --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,46 @@ +# CLA check for pull requests (see CLA.md and CONTRIBUTING.md). +# +# pull_request_target runs with the base repository's permissions so the bot can +# comment and set a status on pull requests from forks. This workflow never +# checks out or runs code from the pull request. +# +# Permissions: +# contents: write store signatures/cla.json on the cla-signatures branch +# pull-requests: write comment on the pull request asking for a signature +# actions: write re-run the check after a signature comment +# statuses: write set the commit status of the CLA check +name: CLA + +on: + pull_request_target: + types: [opened, synchronize, closed] + issue_comment: + types: [created] + +permissions: + contents: write + pull-requests: write + actions: write + statuses: write + +jobs: + cla: + name: CLA signature + runs-on: ubuntu-latest + if: >- + github.event_name == 'pull_request_target' || + github.event.issue.pull_request + steps: + - name: CLA Assistant + if: >- + github.event_name == 'pull_request_target' || + github.event.comment.body == 'recheck' || + github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA' + uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + path-to-signatures: signatures/cla.json + path-to-document: https://github.com/smart-ssh/smart_ssh/blob/develop/CLA.md + branch: cla-signatures + allowlist: brokoskokoli,*[bot] diff --git a/CLA.md b/CLA.md new file mode 100644 index 000000000..4b76e752a --- /dev/null +++ b/CLA.md @@ -0,0 +1,32 @@ +# Smart SSH Individual Contributor License Agreement + +Version 1.0 + +This agreement is based on the Apache Software Foundation Individual Contributor License Agreement (Apache License 2.0 terms apply to that template). + +Thank you for your interest in Smart SSH. "Project Owner" means the copyright holder named in the [NOTICE](NOTICE) file. "You" means the individual who submits a Contribution. "Contribution" means any work of authorship, including code, documentation and translations, that You intentionally submit to the Project Owner for inclusion in Smart SSH (for example as a pull request). You keep the copyright in Your Contributions; this agreement only grants the rights below. + +## 1. Copyright license + +You grant the Project Owner and recipients of software distributed by the Project Owner a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Your Contributions and such derivative works. This includes the right to sublicense and to relicense Your Contributions under other terms, including proprietary terms. + +## 2. Patent license + +You grant the Project Owner and recipients of software distributed by the Project Owner a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated here) patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Contribution, where such license applies only to those patent claims You can license that are necessarily infringed by Your Contribution alone or by combination of Your Contribution with the work to which it was submitted. If any entity brings patent litigation alleging that Your Contribution or the work it was submitted to constitutes patent infringement, the patent licenses granted to that entity under this agreement for that work end on the date the litigation is filed. + +## 3. Your representations + +You represent that: + +1. You are legally entitled to grant the above licenses. If Your employer has rights to intellectual property You create, You have received permission to make the Contribution on behalf of that employer, or Your employer has waived those rights for the Contribution. +2. Each Contribution is Your original work, or, if it includes third-party material, You identify it and its license terms when You submit it, and those terms allow its use in Smart SSH. +3. You are not expected to provide support for Your Contributions. They are provided "AS IS", without warranties of any kind, unless You state otherwise. +4. You will tell the Project Owner if any statement here becomes inaccurate. + +## 4. Scope + +This agreement covers all Contributions You submit after signing, until You withdraw in writing for future Contributions. Licenses already granted for earlier Contributions remain in force. + +## 5. How to sign + +Post the comment requested by the CLA bot in Your first pull request. The bot records Your GitHub account name and the date of the comment. One signature covers all later Contributions. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..c67215a47 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,56 @@ +# Contributing to Smart SSH + +Thanks for helping. This page is the short version; it links to the files that hold the details. + +## Before you start + +- Open an issue first, or find an existing one, and say you want to work on it. Use the forms in [`.github/ISSUE_TEMPLATE/`](.github/ISSUE_TEMPLATE/) (bug, feature, task). +- **Never report a security problem as an issue.** Follow [SECURITY.md](SECURITY.md). +- Product principles and architecture rules are in [AGENTS.md](AGENTS.md); [docs/codemap.md](docs/codemap.md) helps you find the right file. + +## How a change is made + +Spec first: a spec describes behaviour, and it ships in the **same pull request** as the code. Every change has a spec impact: + +- `new` — behaviour in an area no spec covers yet. +- `update NNNN` — behaviour of an existing spec changes or is added (preferred over a new spec). +- `none` — a bug fix of already specified behaviour, refactoring, tests, CI. + +Architecture decisions that cut across a single spec, or non-obvious implementation choices, get an ADR in the same pull request. Details: [docs/specs/README.md](docs/specs/README.md) and [docs/adr/README.md](docs/adr/README.md). After adding a spec or ADR, regenerate the indexes with `node scripts/check-spec-index.mjs --write-index`. Recurring change checklists (new command, new UI text, new migration): [docs/recipes/README.md](docs/recipes/README.md). UI rules: [docs/ui-guidelines.md](docs/ui-guidelines.md). + +## Local checks + +Run the gate before you push; it mirrors CI ([`community.yml`](.github/workflows/community.yml)): + +```bash +scripts/gate.sh # everything, in CI order +scripts/gate.sh rust # cargo fmt --check, clippy -D warnings, tests, build +scripts/gate.sh frontend # tsc, npm run lint, vitest, npm run build +``` + +The individual commands (`cargo fmt --all`, `cargo clippy --workspace --all-targets -- -D warnings`, `cargo test --workspace`, `npm run lint`, `npm test`) and the setup are in [README_DEV.md](README_DEV.md) and [docs/dev-environment.md](docs/dev-environment.md). CI also runs `cargo deny` and `cargo audit` and the browser tests (`npm run test:e2e` in `apps/smart-ssh-community/frontend`). A regression test must fail against the un-fixed code. + +## Changelog + +A user-visible change (new or changed behaviour, fix, security) adds one fragment in `changelog.d/`, written in English. Do not edit `CHANGELOG.md` directly. Naming and format: [changelog.d/README.md](changelog.d/README.md). + +## Pull requests + +- Base branch is `develop`. +- One issue per pull request; reference it (`Closes #`). +- Use [Conventional Commits](https://www.conventionalcommits.org/), scoped to the area, e.g. `fix(app-shell): … (#)`. +- CI must be green. +- Changes under `.github/` need a review by a code owner ([`.github/CODEOWNERS`](.github/CODEOWNERS)). +- A change that touches security-critical code updates [THREAT-MODEL.md](THREAT-MODEL.md), or says `Threat model: no change – ` in the description. + +## Translations + +German and English are maintained by hand; all other languages are machine-translated. Corrections are welcome as an issue or pull request. Terminology: [docs/i18n-glossary.md](docs/i18n-glossary.md). + +## Contribution terms + +Smart SSH is licensed under GPL-3.0-only ([LICENSE](LICENSE)). Every contributor signs the [Contributor License Agreement](CLA.md) once, in their first pull request, by posting the comment the CLA bot asks for; the signature covers all later contributions. The CLA exists so that the copyright holder can keep relicensing the whole code base. + +## Code of conduct + +Be respectful: to contributors, maintainers and users. diff --git a/README.md b/README.md index ef2e6805f..fd5869e3b 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,10 @@ MCP is off by default, and only servers on the allow list are reachable. Every c - [SECURITY.md](SECURITY.md) — how to report a vulnerability. - [KNOWN-ISSUES.md](KNOWN-ISSUES.md) — current limitations and deliberate design decisions. +## Contributing + +Contributions are welcome — see [CONTRIBUTING.md](CONTRIBUTING.md) for the spec-first workflow, the local checks and how pull requests are reviewed. Contributions need a one-time signature of the [CLA](CLA.md) in your first pull request. + ## Build from source ### Prerequisites From 27a5c0252ab70aa2ccc67c5b5ba8dee2b71f45d1 Mon Sep 17 00:00:00 2001 From: "smart-ssh-coder[bot]" <338317697+smart-ssh-coder[bot]@users.noreply.github.com> Date: Wed, 25 Nov 2026 14:21:18 +0000 Subject: [PATCH 2/2] docs(cla): cover the signing pull request's contributions; add --locked (#1576) Co-Authored-By: Claude Sonnet 5.5 --- CLA.md | 4 ++-- CONTRIBUTING.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CLA.md b/CLA.md index 4b76e752a..766ff87be 100644 --- a/CLA.md +++ b/CLA.md @@ -25,8 +25,8 @@ You represent that: ## 4. Scope -This agreement covers all Contributions You submit after signing, until You withdraw in writing for future Contributions. Licenses already granted for earlier Contributions remain in force. +This agreement covers all Contributions You submit in the pull request in which You sign, including those made before You post the signature comment, and all Contributions You submit afterwards, until You withdraw in writing for future Contributions. Licenses already granted for earlier Contributions remain in force. ## 5. How to sign -Post the comment requested by the CLA bot in Your first pull request. The bot records Your GitHub account name and the date of the comment. One signature covers all later Contributions. +Post the comment requested by the CLA bot in Your first pull request. The bot records Your GitHub account name and the date of the comment. One signature covers the Contributions in that pull request and all later Contributions. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c67215a47..34c9362fc 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,7 +28,7 @@ scripts/gate.sh rust # cargo fmt --check, clippy -D warnings, tests, build scripts/gate.sh frontend # tsc, npm run lint, vitest, npm run build ``` -The individual commands (`cargo fmt --all`, `cargo clippy --workspace --all-targets -- -D warnings`, `cargo test --workspace`, `npm run lint`, `npm test`) and the setup are in [README_DEV.md](README_DEV.md) and [docs/dev-environment.md](docs/dev-environment.md). CI also runs `cargo deny` and `cargo audit` and the browser tests (`npm run test:e2e` in `apps/smart-ssh-community/frontend`). A regression test must fail against the un-fixed code. +The individual commands (`cargo fmt --all`, `cargo clippy --workspace --all-targets --locked -- -D warnings`, `cargo test --workspace --locked`, `npm run lint`, `npm test`) and the setup are in [README_DEV.md](README_DEV.md) and [docs/dev-environment.md](docs/dev-environment.md). CI also runs `cargo deny` and `cargo audit` and the browser tests (`npm run test:e2e` in `apps/smart-ssh-community/frontend`). A regression test must fail against the un-fixed code. ## Changelog