Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2

# 依存の更新は月に一度でよい。数は 20 ほどで、週ごとに出すと
# 更新の PR を読むほうが仕事になる。Cargo は 1 本にまとめ、
# Actions は別に出す。
updates:
- package-ecosystem: cargo
directory: "/"
schedule:
interval: monthly
open-pull-requests-limit: 3
groups:
cargo:
patterns: ["*"]

- package-ecosystem: github-actions
directory: "/"
schedule:
interval: monthly
open-pull-requests-limit: 3
31 changes: 29 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
# building on another platform yet.
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy

- name: Cache cargo
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: |
~/.cargo/registry
Expand All @@ -52,3 +52,30 @@ jobs:
run: |
./target/release/termit --shell-integration | head -3
./target/release/termit --latency-test

audit:
# Security advisories against the lockfile. This one runs on Linux:
# it only reads Cargo.lock, nothing here is macOS-specific, and the
# Linux runner is the cheaper of the two.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

- name: Audit the dependencies
uses: rustsec/audit-check@v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Neither of these has a fix this repository can reach, so
# they are named here rather than left to fail every run.
#
# RUSTSEC-2026-0253 (lru, unsound): fixed in 0.18.2, but
# glyphon pins lru to 0.16. The advisory needs a key whose
# Drop panics; glyphon's key is a Copy enum, which cannot
# implement Drop, so the path does not exist here.
#
# RUSTSEC-2026-0192 (ttf-parser, unmaintained): arrives
# through cosmic-text and fontdb, and has no patched release
# at all.
#
# Drop an entry when the crate above it moves.
ignore: RUSTSEC-2026-0253,RUSTSEC-2026-0192
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
# Apple silicon の runner。termit は arm64 でしか測っていない。
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
ref: ${{ github.event.inputs.tag || github.ref }}

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Cache cargo
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: |
~/.cargo/registry
Expand Down
Loading