Skip to content

Commit 2959648

Browse files
committed
security: standardize secret scanning on TruffleHog
1 parent eba120c commit 2959648

18 files changed

Lines changed: 41 additions & 233 deletions

.build/Justfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,6 @@ test:
3939
# All checks before commit
4040
pre-commit: build test
4141
@echo "All checks passed!"
42+
43+
secret-scan-trufflehog:
44+
@command -v trufflehog >/dev/null && trufflehog filesystem . --only-verified || true

.github/workflows/casket-pages.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,33 @@
11
# SPDX-License-Identifier: MPL-2.0
22
name: GitHub Pages
3-
43
on:
54
push:
65
branches: [main, master]
76
workflow_dispatch:
8-
97
permissions:
108
contents: read
119
pages: write
1210
id-token: write
13-
1411
concurrency:
1512
group: "pages"
1613
cancel-in-progress: false
17-
1814
jobs:
1915
build:
2016
runs-on: ubuntu-latest
2117
timeout-minutes: 15
2218
steps:
2319
- name: Checkout
2420
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
25-
2621
- name: Checkout casket-ssg
2722
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
2823
with:
2924
repository: hyperpolymath/casket-ssg
3025
path: .casket-ssg
31-
3226
- name: Setup GHCup
3327
uses: haskell-actions/setup@ec49483bfc012387b227434aba94f59a6ecd0900 # v2
3428
with:
3529
ghc-version: '9.8.2'
3630
cabal-version: '3.10'
37-
3831
- name: Cache Cabal
3932
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
4033
with:
@@ -43,11 +36,9 @@ jobs:
4336
~/.cabal/store
4437
.casket-ssg/dist-newstyle
4538
key: ${{ runner.os }}-casket-${{ hashFiles('.casket-ssg/casket-ssg.cabal') }}
46-
4739
- name: Build casket-ssg
4840
working-directory: .casket-ssg
4941
run: cabal build
50-
5142
- name: Prepare site source
5243
shell: bash
5344
run: |
@@ -90,21 +81,17 @@ jobs:
9081
echo "Project-specific site content can be added later under site/."
9182
} > .site-src/index.md
9283
fi
93-
9484
- name: Build site
9585
run: |
9686
mkdir -p _site
9787
cd .casket-ssg && cabal run casket-ssg -- build ../.site-src ../_site
9888
touch ../_site/.nojekyll
99-
10089
- name: Setup Pages
10190
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
102-
10391
- name: Upload artifact
10492
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
10593
with:
10694
path: '_site'
107-
10895
deploy:
10996
environment:
11097
name: github-pages

.github/workflows/ci.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
# SPDX-License-Identifier: MPL-2.0
22
permissions:
33
contents: read
4-
54
name: CI/CD Pipeline
6-
75
on:
86
push:
97
branches: [main, develop]
108
pull_request:
119
branches: [main, develop]
1210
release:
1311
types: [published]
14-
1512
env:
1613
JULIA_VERSION: '1.10'
1714
NODE_VERSION: '20'
18-
1915
jobs:
2016
lint-julia:
2117
runs-on: ubuntu-latest
@@ -30,7 +26,6 @@ jobs:
3026
- name: Check Julia formatting
3127
run: |
3228
julia -e 'using JuliaFormatter; format("src/julia", verbose=true, overwrite=false) || exit(1)'
33-
3429
lint-typescript:
3530
runs-on: ubuntu-latest
3631
timeout-minutes: 15
@@ -46,7 +41,6 @@ jobs:
4641
run: npm run lint
4742
- name: Check Prettier formatting
4843
run: npx prettier --check "src/**/*.{ts,tsx,js,jsx}"
49-
5044
test-julia:
5145
runs-on: ubuntu-latest
5246
timeout-minutes: 15
@@ -73,7 +67,6 @@ jobs:
7367
with:
7468
files: lcov.info
7569
flags: julia
76-
7770
test-typescript:
7871
runs-on: ubuntu-latest
7972
timeout-minutes: 15
@@ -92,7 +85,6 @@ jobs:
9285
with:
9386
files: ./coverage/cobertura-coverage.xml
9487
flags: typescript
95-
9688
build:
9789
runs-on: ubuntu-latest
9890
timeout-minutes: 15
@@ -126,7 +118,6 @@ jobs:
126118
with:
127119
name: libreoffice-extension
128120
path: dist/uno/economic-toolkit.oxt
129-
130121
security:
131122
runs-on: ubuntu-latest
132123
timeout-minutes: 15
@@ -142,7 +133,6 @@ jobs:
142133
continue-on-error: true
143134
env:
144135
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
145-
146136
docker-build:
147137
runs-on: ubuntu-latest
148138
timeout-minutes: 15
@@ -179,7 +169,6 @@ jobs:
179169
labels: ${{ steps.meta.outputs.labels }}
180170
cache-from: type=gha
181171
cache-to: type=gha,mode=max
182-
183172
release:
184173
runs-on: ubuntu-latest
185174
timeout-minutes: 15
@@ -209,7 +198,6 @@ jobs:
209198
dist/uno/economic-toolkit.oxt
210199
env:
211200
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
212-
213201
coverage-report:
214202
runs-on: ubuntu-latest
215203
timeout-minutes: 15

.github/workflows/codeql.yml

Lines changed: 1 addition & 8 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:
10-
- cron: '0 6 1 * *' # monthly 1st 06:00 UTC
11-
9+
- cron: '0 6 * * 1'
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
@@ -35,17 +31,14 @@ jobs:
3531
build-mode: none
3632
- language: cpp
3733
build-mode: none
38-
3934
steps:
4035
- name: Checkout
4136
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
42-
4337
- name: Initialize CodeQL
4438
uses: github/codeql-action/init@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
4539
with:
4640
languages: ${{ matrix.language }}
4741
build-mode: ${{ matrix.build-mode }}
48-
4942
- name: Perform CodeQL Analysis
5043
uses: github/codeql-action/analyze@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
5144
with:

.github/workflows/docker-publish.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,30 @@
11
# SPDX-License-Identifier: MPL-2.0
22
name: Docker Build and Publish
3-
43
on:
54
push:
65
branches: [main]
76
tags: ['v*']
87
pull_request:
98
branches: [main]
10-
119
permissions:
1210
contents: read
13-
1411
jobs:
1512
build:
1613
runs-on: ubuntu-latest
1714
timeout-minutes: 15
1815
permissions:
1916
contents: read
2017
packages: write
21-
2218
steps:
2319
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
24-
2520
- name: Set up Docker Buildx
2621
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3
27-
2822
- name: Log in to GitHub Container Registry
2923
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
3024
with:
3125
registry: ghcr.io
3226
username: ${{ github.actor }}
3327
password: ${{ secrets.GITHUB_TOKEN }}
34-
3528
- name: Extract metadata
3629
id: meta
3730
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5
@@ -43,7 +36,6 @@ jobs:
4336
type=semver,pattern={{version}}
4437
type=semver,pattern={{major}}.{{minor}}
4538
type=semver,pattern={{major}}
46-
4739
- name: Build and push
4840
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6
4941
with:

.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

0 commit comments

Comments
 (0)