Skip to content

Commit 6d0aab0

Browse files
security: standardize secret scanning on TruffleHog (+ ADR-023 draft stub, zig wasm_export_call types) (#564)
Owner commit 2ceb06f pushed for preservation + CI adjudication per "what can go main goes main". Contents (one signed commit): - **TruffleHog standardization** across root + affinescript-vite + affinescriptiser workflow trees (its substance; net -393 lines). - **docs/decisions/0023-finality-types.adoc** — ADR-023 finality-types DRAFT stub (Status: Draft, design-only, no implementation; sequencing constraints reference #554/#553). Rides along; ratification is a separate act. - **tools/wasm-export-call-zig/src/types.zig** — WasmValue 4-variant types for the #497 Zig FFI dispatcher (WIP preservation; unwired). If checks are green this is main-able as-is; if the mixed contents should split, say so and I'll surgically refile. Refs #497, #563. ADR-023 context: assured-finality dual per the 2026-06-11 design discussion. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent 20e27c8 commit 6d0aab0

54 files changed

Lines changed: 507 additions & 900 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/affine-vscode-publish.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,21 @@
1717
# publish rights to the @hyperpolymath scope).
1818

1919
name: Publish affine-vscode
20-
2120
on:
2221
push:
2322
tags:
2423
- 'affine-vscode-v*'
25-
2624
permissions:
2725
contents: read
28-
2926
concurrency:
3027
group: ${{ github.workflow }}-${{ github.ref }}
3128
cancel-in-progress: true
32-
3329
jobs:
3430
publish:
3531
runs-on: ubuntu-latest
3632
steps:
3733
- name: Checkout code
3834
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
39-
4035
- name: Verify tag matches package version
4136
working-directory: packages/affine-vscode
4237
run: |
@@ -47,7 +42,6 @@ jobs:
4742
exit 1
4843
fi
4944
echo "✅ Publishing @hyperpolymath/affine-vscode@$pkg"
50-
5145
- name: Configure npm auth
5246
env:
5347
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -57,11 +51,9 @@ jobs:
5751
exit 1
5852
fi
5953
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > "${HOME}/.npmrc"
60-
6154
- name: Publish to npm
6255
working-directory: packages/affine-vscode
6356
run: npm publish --access public
64-
6557
- name: Clean up npm auth
6658
if: always()
6759
run: rm -f "${HOME}/.npmrc"

.github/workflows/casket-pages.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
# SPDX-License-Identifier: MPL-2.0
22
name: GitHub Pages
3-
43
on:
54
push:
65
branches: [main]
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
# Pages is a repo-level admin feature; a workflow's `GITHUB_TOKEN`
2016
# cannot enable it from CI, regardless of `pages: write` at workflow
@@ -45,27 +41,23 @@ jobs:
4541
echo "enabled=false" >> "$GITHUB_OUTPUT"
4642
echo "::notice::Pages not enabled on ${GITHUB_REPOSITORY} — skipping build/deploy. Enable via repo Settings → Pages to unblock."
4743
fi
48-
4944
build:
5045
needs: precheck
5146
if: needs.precheck.outputs.enabled == 'true'
5247
runs-on: ubuntu-latest
5348
steps:
5449
- name: Checkout
5550
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
56-
5751
- name: Checkout casket-ssg
5852
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
5953
with:
6054
repository: hyperpolymath/casket-ssg
6155
path: .casket-ssg
62-
6356
- name: Setup GHCup
6457
uses: haskell-actions/setup@cd0d9bdd65b20557f41bea4dbe43d0b5fbbfe553 # v2
6558
with:
6659
ghc-version: '9.8.2'
6760
cabal-version: '3.10'
68-
6961
- name: Cache Cabal
7062
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v4
7163
with:
@@ -74,11 +66,9 @@ jobs:
7466
~/.cabal/store
7567
.casket-ssg/dist-newstyle
7668
key: ${{ runner.os }}-casket-${{ hashFiles('.casket-ssg/casket-ssg.cabal') }}
77-
7869
- name: Build casket-ssg
7970
working-directory: .casket-ssg
8071
run: cabal build
81-
8272
- name: Build site
8373
run: |
8474
mkdir -p site _site
@@ -109,7 +99,6 @@ jobs:
10999
fi
110100
fi
111101
cd .casket-ssg && cabal run casket-ssg -- build ../site ../_site
112-
113102
- name: Setup Pages
114103
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
115104
with:
@@ -121,12 +110,10 @@ jobs:
121110
# own permissions (pages: write, id-token: write) authorise
122111
# this.
123112
enablement: true
124-
125113
- name: Upload artifact
126114
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
127115
with:
128116
path: '_site'
129-
130117
deploy:
131118
environment:
132119
name: github-pages

0 commit comments

Comments
 (0)