Skip to content

Commit 719415b

Browse files
Jonathan D.A. Jewellclaude
andcommitted
chore: clean up CI/CD workflows
Remove unnecessary/redundant workflows: - rust.yml (duplicate of rust-ci.yml, dead branch trigger) - jekyll-gh-pages.yml (not a Jekyll site, has .nojekyll) - ethicalcheck.yml (pointed to demo URL, not this project) - greetings.yml (template bloat, placeholder messages) - label.yml (unnecessary for solo project) - stale.yml (unnecessary for solo project) - npm-bun-blocker.yml (redundant with language-policy.yml) - ts-blocker.yml (redundant with language-policy.yml) Fix remaining workflows: - codeql.yml: change language from javascript-typescript to actions (Rust not supported by CodeQL) - rust-ci.yml: SHA-pin all actions, add permissions: read-all Reduces workflow count from 22 to 14. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ea7835d commit 719415b

10 files changed

Lines changed: 16 additions & 271 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
include:
24-
- language: javascript-typescript
24+
- language: actions
2525
build-mode: none
2626

2727
steps:

.github/workflows/ethicalcheck.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

.github/workflows/greetings.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/jekyll-gh-pages.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/label.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/npm-bun-blocker.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/rust-ci.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# SPDX-License-Identifier: PMPL-1.0
22
name: Rust CI
33
on: [push, pull_request]
4+
5+
permissions: read-all
6+
47
env:
58
CARGO_TERM_COLOR: always
69
RUSTFLAGS: -Dwarnings
@@ -9,29 +12,29 @@ jobs:
912
test:
1013
runs-on: ubuntu-latest
1114
steps:
12-
- uses: actions/checkout@v6.0.1
13-
- uses: dtolnay/rust-toolchain@stable
15+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
16+
- uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b # stable
1417
with:
1518
components: rustfmt, clippy
16-
- uses: Swatinem/rust-cache@v2
17-
19+
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
20+
1821
- name: Check formatting
1922
run: cargo fmt --all -- --check
20-
23+
2124
- name: Clippy lints
2225
run: cargo clippy --all-targets --all-features -- -D warnings
23-
26+
2427
- name: Run tests
2528
run: cargo test --all-features
26-
29+
2730
- name: Build release
2831
run: cargo build --release
2932

3033
security:
3134
runs-on: ubuntu-latest
3235
steps:
33-
- uses: actions/checkout@v6.0.1
34-
- uses: dtolnay/rust-toolchain@stable
36+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
37+
- uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b # stable
3538
- name: Install cargo-audit
3639
run: cargo install cargo-audit
3740
- name: Security audit
@@ -42,12 +45,12 @@ jobs:
4245
coverage:
4346
runs-on: ubuntu-latest
4447
steps:
45-
- uses: actions/checkout@v6.0.1
46-
- uses: dtolnay/rust-toolchain@stable
48+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
49+
- uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b # stable
4750
- name: Install tarpaulin
4851
run: cargo install cargo-tarpaulin
4952
- name: Generate coverage
5053
run: cargo tarpaulin --out Xml
51-
- uses: codecov/codecov-action@v5
54+
- uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
5255
with:
5356
files: cobertura.xml

.github/workflows/rust.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/stale.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/ts-blocker.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)