Skip to content

Commit 36372f6

Browse files
committed
Keep your friends close, your supply chain in a VM.
0 parents  commit 36372f6

22 files changed

Lines changed: 1718 additions & 0 deletions

.github/CODEOWNERS

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
* @eshlox
2+
3+
/.github/ @eshlox
4+
/bin/ @eshlox
5+
/defaults/ @eshlox
6+
/install.sh @eshlox
7+
/lib/ @eshlox
8+
/scripts/ @eshlox
9+
/tests/ @eshlox
10+
/LICENSE @eshlox
11+
/README.md @eshlox
12+
/SECURITY.md @eshlox

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
day: "monday"
9+
time: "09:00"
10+
timezone: "Etc/UTC"
11+
open-pull-requests-limit: 5
12+
commit-message:
13+
prefix: "ci"

.github/workflows/check.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Check
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
concurrency:
14+
group: check-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
check:
19+
name: check
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 10
22+
23+
steps:
24+
- name: Checkout
25+
env:
26+
REPOSITORY: ${{ github.repository }}
27+
SERVER_URL: ${{ github.server_url }}
28+
SHA: ${{ github.sha }}
29+
run: |
30+
set -euo pipefail
31+
git init .
32+
git remote add origin "$SERVER_URL/$REPOSITORY.git"
33+
git -c protocol.version=2 fetch --no-tags --depth=1 origin "$SHA"
34+
git checkout --detach FETCH_HEAD
35+
36+
- name: Install test tools
37+
run: |
38+
set -euo pipefail
39+
sudo apt-get update
40+
sudo apt-get install -y --no-install-recommends shellcheck gnupg
41+
42+
- name: Run checks
43+
run: bash scripts/check.sh

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.DS_Store
2+
*.tmp

CONTRIBUTING.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Contributing
2+
3+
DVM is intentionally small. Contributions should keep the core easy to audit and avoid
4+
turning the project into a general VM platform or package manager.
5+
6+
## Scope
7+
8+
Good fits:
9+
10+
- VM lifecycle helpers around Lima
11+
- safe setup reruns across VMs
12+
- SSH and GPG workflows for project VMs
13+
- documentation that improves installation, release verification, or safe usage
14+
- focused tests for shell behavior
15+
16+
Avoid:
17+
18+
- default language/toolchain installers
19+
- remote install scripts or `curl | sh` patterns
20+
- host directory mounts that weaken project isolation by default
21+
- large framework dependencies
22+
- features that are better handled by user setup scripts
23+
24+
## Development
25+
26+
Run checks before opening a pull request:
27+
28+
```bash
29+
bash scripts/check.sh
30+
```
31+
32+
Shell code should be Bash, pass `bash -n`, and pass ShellCheck when ShellCheck is
33+
available. Keep behavior explicit and prefer small functions over broad abstractions.
34+
35+
## Security
36+
37+
Do not report vulnerabilities in public issues. Follow [SECURITY.md](SECURITY.md).
38+
39+
Changes that affect installation, updating, release verification, SSH, GPG, deletion
40+
safety, or setup script execution should include tests or a clear explanation of the
41+
remaining risk.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 Przemysław Kołodziejczyk (eshlox)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)