Skip to content

Commit 98caa93

Browse files
committed
security: standardize secret scanning on TruffleHog
1 parent 340e80c commit 98caa93

19 files changed

Lines changed: 19 additions & 119 deletions

.github/workflows/cargo-audit.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# SPDX-License-Identifier: MPL-2.0
22
# Prevention workflow - audits Rust dependencies for vulnerabilities
33
name: Cargo Audit
4-
54
on:
65
push:
76
branches: [main]
@@ -13,26 +12,20 @@ on:
1312
- '**/Cargo.toml'
1413
- '**/Cargo.lock'
1514
schedule:
16-
- cron: '0 6 * * 1' # Weekly on Monday
17-
15+
- cron: '0 6 * * 1' # Weekly on Monday
1816
permissions: read-all
19-
2017
jobs:
2118
audit:
2219
runs-on: ubuntu-latest
2320
timeout-minutes: 15
2421
steps:
2522
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
26-
2723
- name: Install cargo-audit
2824
run: cargo install cargo-audit --locked
29-
3025
- name: Run cargo audit
3126
run: cargo audit --deny warnings
32-
3327
- name: Check for unmaintained crates
3428
run: cargo audit --deny unmaintained
35-
3629
# Optional: Create issues for vulnerabilities
3730
create-issue:
3831
runs-on: ubuntu-latest
@@ -43,7 +36,6 @@ jobs:
4336
issues: write
4437
steps:
4538
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
46-
4739
- name: Create vulnerability issue
4840
env:
4941
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/cflite_batch.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ on:
44
schedule:
55
- cron: '0 3 * * 0'
66
workflow_dispatch:
7-
87
permissions: read-all
9-
108
jobs:
119
BatchFuzzing:
1210
runs-on: ubuntu-latest
@@ -22,7 +20,6 @@ jobs:
2220
with:
2321
language: rust
2422
sanitizer: ${{ matrix.sanitizer }}
25-
2623
- name: Run Fuzzers (${{ matrix.sanitizer }})
2724
id: run
2825
uses: google/clusterfuzzlite/actions/run_fuzzers@884713a6c30a92e5e8544c39945cd7cb630abcd1 # v1

.github/workflows/cflite_pr.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ name: ClusterFuzzLite PR fuzzing
33
on:
44
pull_request:
55
branches: [main]
6-
76
permissions: read-all
8-
97
jobs:
108
PR:
119
runs-on: ubuntu-latest
@@ -21,7 +19,6 @@ jobs:
2119
with:
2220
language: rust
2321
sanitizer: ${{ matrix.sanitizer }}
24-
2522
- name: Run Fuzzers (${{ matrix.sanitizer }})
2623
id: run
2724
uses: google/clusterfuzzlite/actions/run_fuzzers@884713a6c30a92e5e8544c39945cd7cb630abcd1 # v1

.github/workflows/codeql.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
11
# SPDX-License-Identifier: MPL-2.0
22
name: CodeQL Security Analysis
3-
43
on:
54
push:
65
branches: [main, master]
76
pull_request:
87
branches: [main, master]
98
schedule:
109
- cron: '0 6 * * 1'
11-
1210
# Estate guardrail: cancel superseded runs so re-pushes / rebased PR
1311
# updates do not pile up queued runs against the shared account-wide
1412
# Actions concurrency pool. Applied only to read-only check workflows
1513
# (no publish/mutation), so cancelling a superseded run is always safe.
1614
concurrency:
1715
group: ${{ github.workflow }}-${{ github.ref }}
1816
cancel-in-progress: true
19-
2017
permissions:
2118
contents: read
22-
2319
jobs:
2420
analyze:
2521
runs-on: ubuntu-latest
@@ -33,17 +29,14 @@ jobs:
3329
include:
3430
- language: javascript-typescript
3531
build-mode: none
36-
3732
steps:
3833
- name: Checkout
3934
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
40-
4135
- name: Initialize CodeQL
4236
uses: github/codeql-action/init@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
4337
with:
4438
languages: ${{ matrix.language }}
4539
build-mode: ${{ matrix.build-mode }}
46-
4740
- name: Perform CodeQL Analysis
4841
uses: github/codeql-action/analyze@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
4942
with:

.github/workflows/e2e.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@
77
# structural — fast, no compiler required (grammar, spec, fixtures, layout)
88
# build-e2e — full build then E2E (Rust cargo check + OCaml dune build)
99
name: E2E Validation
10-
1110
on:
1211
pull_request:
1312
branches: ['**']
1413
push:
1514
branches: [main, master]
16-
1715
permissions:
1816
contents: read
19-
2017
jobs:
2118
# --------------------------------------------------------------------------
2219
# Job 1: Structural validation (no toolchain needed)
@@ -25,50 +22,40 @@ jobs:
2522
name: Structural E2E (no-build)
2623
runs-on: ubuntu-latest
2724
timeout-minutes: 15
28-
2925
steps:
3026
- name: Checkout repository
3127
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
32-
3328
- name: Run structural E2E checks
3429
run: E2E_BUILD=0 bash tests/e2e.sh
35-
3630
# --------------------------------------------------------------------------
3731
# Job 2: Full build + E2E (Rust + OCaml)
3832
# --------------------------------------------------------------------------
3933
build-e2e:
4034
name: Build + E2E (Rust + OCaml)
4135
runs-on: ubuntu-latest
4236
timeout-minutes: 15
43-
4437
steps:
4538
- name: Checkout repository
4639
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
47-
4840
# ---- Rust ----
4941
- name: Install Rust stable toolchain
5042
uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable
5143
with:
5244
components: clippy, rustfmt
53-
5445
- name: Cache Cargo registry and build artefacts
5546
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2
56-
5747
# ---- OCaml ----
5848
- name: Set up OCaml
5949
uses: ocaml/setup-ocaml@dec6499fef64fc5d7ed43d43a87251b7b1c306f5 # v3
6050
with:
6151
ocaml-compiler: 5.1.x
62-
6352
- name: Install opam dependencies
6453
run: |
6554
opam install --deps-only --with-test wokelang.opam -y || \
6655
opam install menhir ounit2 -y
67-
6856
# ---- Full E2E ----
6957
- name: Run full E2E (with build checks)
7058
run: E2E_BUILD=1 bash tests/e2e.sh
71-
7259
# ---- Conformance suite ----
7360
- name: Run conformance test runner
7461
run: bash tests/run_conformance.sh

.github/workflows/ghcr-publish.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,23 @@
11
# SPDX-License-Identifier: MPL-2.0
22
name: Publish to GHCR
3-
43
permissions: read-all
5-
64
on:
75
release:
86
types: [published]
97
workflow_dispatch:
10-
118
env:
129
REGISTRY: ghcr.io
1310
IMAGE_NAME: ${{ github.repository }}
14-
1511
jobs:
1612
build-and-push:
1713
runs-on: ubuntu-latest
1814
timeout-minutes: 15
1915
permissions:
2016
contents: read
2117
packages: write
22-
2318
steps:
2419
- name: Checkout repository
2520
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
26-
2721
- name: Install nerdctl and containerd
2822
run: |
2923
sudo apt-get update
@@ -38,21 +32,17 @@ jobs:
3832
3933
sudo /usr/local/bin/buildkitd &
4034
sleep 3
41-
4235
- name: Log in to GHCR
4336
run: |
4437
echo "${{ secrets.GITHUB_TOKEN }}" | sudo nerdctl login ghcr.io -u ${{ github.actor }} --password-stdin
45-
4638
- name: Build image
4739
run: |
4840
sudo nerdctl build -f Containerfile -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} .
4941
sudo nerdctl tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
50-
5142
- name: Push image
5243
run: |
5344
sudo nerdctl push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
5445
sudo nerdctl push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
55-
5646
- name: Tag release version
5747
if: github.event_name == 'release'
5848
run: |

.github/workflows/governance.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,20 @@
1111
# (rust-ci, codeql, dependabot, release, scan/mirror/pages plumbing).
1212

1313
name: Governance
14-
1514
on:
1615
push:
1716
branches: [main, master]
1817
pull_request:
1918
workflow_dispatch:
20-
2119
# Estate guardrail: cancel superseded runs so re-pushes / rebased PR
2220
# updates do not pile up queued runs against the shared account-wide
2321
# Actions concurrency pool. Applied only to read-only check workflows
2422
# (no publish/mutation), so cancelling a superseded run is always safe.
2523
concurrency:
2624
group: ${{ github.workflow }}-${{ github.ref }}
2725
cancel-in-progress: true
28-
2926
permissions:
3027
contents: read
31-
3228
jobs:
3329
governance:
3430
uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@861b5e911d9e5dcfb3c0ab3dd2a9a3c8fd0a1613

.github/workflows/hypatia-scan.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# See standards#191 for the reusable's purpose and design.
44

55
name: Hypatia Security Scan
6-
76
on:
87
push:
98
branches: [main, master, develop]
@@ -12,17 +11,14 @@ on:
1211
schedule:
1312
- cron: '0 0 * * 0'
1413
workflow_dispatch:
15-
1614
# Estate guardrail: cancel superseded runs so re-pushes don't pile up.
1715
concurrency:
1816
group: ${{ github.workflow }}-${{ github.ref }}
1917
cancel-in-progress: true
20-
2118
permissions:
2219
contents: read
2320
security-events: write
2421
pull-requests: write
25-
2622
jobs:
2723
hypatia:
2824
uses: hyperpolymath/standards/.github/workflows/hypatia-scan-reusable.yml@6cd3772824e59c8c9affeab66061e25383544242

.github/workflows/instant-sync.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
# SPDX-License-Identifier: MPL-2.0
22
# Instant Forge Sync - Triggers propagation to all forges on push/release
33
name: Instant Sync
4-
54
on:
65
push:
76
branches: [main, master]
87
release:
98
types: [published]
10-
119
permissions:
1210
contents: read
13-
1411
jobs:
1512
dispatch:
1613
runs-on: ubuntu-latest
@@ -29,6 +26,5 @@ jobs:
2926
"sha": "${{ github.sha }}",
3027
"forges": ""
3128
}
32-
3329
- name: Confirm
3430
run: echo "::notice::Propagation triggered for ${{ github.event.repository.name }}"

.github/workflows/mirror.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
# SPDX-License-Identifier: MPL-2.0
22
name: Mirror to Git Forges
3-
43
on:
54
push:
65
branches: [main]
76
workflow_dispatch:
8-
97
permissions:
108
contents: read
11-
129
jobs:
1310
mirror:
1411
uses: hyperpolymath/standards/.github/workflows/mirror-reusable.yml@e6b2884722350515934d443daf23442f2195796f

0 commit comments

Comments
 (0)