forked from wezterm/wezterm
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.42 KB
/
turtle-term-security.yml
File metadata and controls
56 lines (47 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: TurtleTerm Security Checks
on:
pull_request:
paths:
- 'Cargo.lock'
- 'Cargo.toml'
- '**/Cargo.toml'
- 'assets/sourceos/**'
- 'packaging/**'
- '.github/workflows/turtle-term-security.yml'
push:
branches:
- main
paths:
- 'Cargo.lock'
- 'Cargo.toml'
- '**/Cargo.toml'
- 'assets/sourceos/**'
- 'packaging/**'
- '.github/workflows/turtle-term-security.yml'
workflow_dispatch:
jobs:
cargo-audit:
name: Cargo audit
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-audit
run: cargo install cargo-audit --locked
- name: Run cargo audit
run: cargo audit
wrapper-safety:
name: Wrapper safety checks
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Ensure wrappers do not grant ambient agent shell access
run: |
grep -R "terminal.execute_command" -n docs/sourceos assets/sourceos || true
grep -R "ambient shell" -n docs/sourceos SECURITY.md
python3 assets/sourceos/tests/test_sourceos_term_smoke.py
python3 assets/sourceos/tests/test_turtle_term_branding.py
python3 assets/sourceos/tests/test_turtle_term_release_readiness.py