Skip to content

Commit 2ac241d

Browse files
committed
Secure GSBot TLS dependencies and enforce its build and audit
1 parent 6075f0b commit 2ac241d

5 files changed

Lines changed: 189 additions & 297 deletions

File tree

‎.github/workflows/casket-pages.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
6262
- name: Build casket-ssg
6363
working-directory: .casket-ssg
64-
run: cabal build
64+
run: cabal build --index-state=2026-09-06T00:00:00Z
6565

6666
- name: Prepare site source
6767
shell: bash
@@ -109,7 +109,7 @@ jobs:
109109
- name: Build site
110110
run: |
111111
mkdir -p _site
112-
cd .casket-ssg && cabal run casket-ssg -- build ../.site-src ../_site
112+
cd .casket-ssg && cabal run --index-state=2026-09-06T00:00:00Z casket-ssg -- build ../.site-src ../_site
113113
touch ../_site/.nojekyll
114114
115115
- name: Setup Pages

‎.github/workflows/rust.yml‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,25 @@ jobs:
5959
with:
6060
persist-credentials: false
6161
- run: bash scripts/tests/dispatch-paths.sh
62+
63+
gsbot:
64+
name: GSBot build, tests and dependency security
65+
runs-on: ubuntu-24.04
66+
timeout-minutes: 30
67+
defaults:
68+
run:
69+
working-directory: bots/gsbot
70+
steps:
71+
- uses: actions/checkout@v7.0.1
72+
with:
73+
persist-credentials: false
74+
- name: Install native TLS build dependencies
75+
run: sudo apt-get update && sudo apt-get install -y pkg-config libssl-dev
76+
- name: Build and test SQLite services
77+
run: cargo test --locked --all-targets
78+
- name: Install dependency graph auditor
79+
run: cargo install cargo-deny --version 0.20.2 --locked
80+
- name: Audit enabled dependencies (no advisory exclusions)
81+
# Poise's unmaintained derive macro is reported as maintenance debt;
82+
# vulnerabilities, unsoundness and yanked crates remain blocking.
83+
run: cargo deny --locked --config deny.toml check advisories --warn unmaintained

0 commit comments

Comments
 (0)