Skip to content

Commit 78b132f

Browse files
fix(distribution): authenticate Homebrew validation
1 parent 737e442 commit 78b132f

5 files changed

Lines changed: 27 additions & 4 deletions

File tree

‎docs/DISTRIBUTION.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,9 @@ acceptance is run.
230230
### 6. Optional Homebrew tap synchronization
231231

232232
The [FileMint official tap](https://github.com/FileMintApp/homebrew-tap) is public
233-
with a 0.7.0 Cask. Its public Actions check passed; the qualified install command
234-
resolves in a Homebrew dry run and its DMG fetch passed SHA-256 verification.
233+
with a 0.8.0 Cask. This version passed local Homebrew checks and public Actions
234+
validation. Initial 0.7.0 publication also confirmed qualified install-command
235+
resolution in a Homebrew dry run and a DMG fetch with SHA-256 verification.
235236
The owner has no disposable VM/test Mac, so native installation, upgrade,
236237
migration, removal and Finder behavior remain unverified. Do not exercise those
237238
operations against their working app.

‎docs/tasks/homebrew-tap.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,22 @@ Local audit uses `brew audit --cask --online --strict --except=download,signing,
111111
| Public command resolution and checksum fetch | passed (distribution only) | `brew install --cask --dry-run filemintapp/tap/filemint` resolved and planned one Cask; `brew fetch --cask filemintapp/tap/filemint` downloaded and verified 0.7.0. Logs: `build/homebrew-public-install-dry-run.log`, `build/homebrew-public-fetch.log`. No app was installed or replaced. |
112112
| Existing version synchronization | passed (no-op) | `python3 scripts/homebrew_tap.py publish --manifest build/FileMint-0.7.0.release.json` validated the public tap and returned `unchanged` with the current tap commit. Log: `build/homebrew-public-sync-noop.log`. The opt-in release hook remains disabled pending native acceptance. |
113113

114+
## 0.8.0 synchronization — 2026-10-20
115+
116+
The owner explicitly requested synchronizing the tap after FileMint 0.8.0/build 29 was public and its website deployment completed. This is a single manifest-based synchronization; the automatic release hook remains disabled pending separate native acceptance.
117+
118+
- Reused the genuine `build/FileMint-0.8.0.release.json` and completed publication journal for source `ab25fb7bf42ac3806ca725cd107b912da47ba010`, Release ID `417913389`. The helper rechecked local DMG/ZIP signatures, tickets, hashes and feeds, six public asset identities and exact successful source/candidate/site/deployment runs.
119+
- Updated only Cask version and SHA-256 from 0.7.0 to 0.8.0 in [commit d0b8af0](https://github.com/FileMintApp/homebrew-tap/commit/d0b8af013ef1b3c6279846db5e5b3309fb5c7fca), with normal push and remote byte readback. DMG SHA-256: `c112cf39c36d14d225dd44ae8d487213f792db554d2c37262b18098b486f11dc`; Cask SHA-256: `802d482bb57252f6bc2a33f32f021215f8a29f93722c5e8a86d6ec0847fac6d3`.
120+
- Initial [run 39355724969](https://github.com/FileMintApp/homebrew-tap/actions/runs/39355724969) passed style but failed online audit because the runner's shared IP exhausted GitHub's unauthenticated 60-request quota. No Cask payload defect was reported. [Workflow fix c79c7dc](https://github.com/FileMintApp/homebrew-tap/commit/c79c7dce1a1f9653a921397b8f5f43c0bf503b89) gives only the validation step `HOMEBREW_GITHUB_API_TOKEN: ${{ github.token }}`, retaining `contents: read`. The main-repository template matches. No personal token or Apple/Sparkle key was added.
121+
122+
| Check | Status | Evidence |
123+
| --- | --- | --- |
124+
| Manifest publication and Cask readback | passed | [Helper receipt](../../build/release-0.8.0.noindex/homebrew/sync-result.json), [log](../../build/release-0.8.0.noindex/homebrew/sync.log); remote 0.8.0 Cask bytes match the reviewed candidate. Application release assets were not rebuilt, re-signed or replaced. |
125+
| Local Homebrew tooling | passed | Style, all-OS/all-architecture `readall`, exact `info` metadata, documented local online metadata audit and livecheck; the uniquely named temporary metadata tap was removed and absence confirmed. |
126+
| CI authentication fix | passed | Both YAML files parse, have identical bytes, preserve read-only permissions and scope the token to the validation step. `make verify` passed: 337 Core tests, 22 image tests and all Harness/script checks. [Log](../../build/release-0.8.0.noindex/homebrew/verify-auth-fix.log). |
127+
| Public Cask workflow | passed | [Run 39356246267](https://github.com/FileMintApp/homebrew-tap/actions/runs/39356246267) at `c79c7dce1a1f9653a921397b8f5f43c0bf503b89` passed style, all-OS/all-architecture parsing, full strict online audit and livecheck. |
128+
| Native installation/upgrade/migration/removal | not-run | No app was installed, replaced or launched on the working Mac. Existing isolated-environment acceptance gaps remain. |
129+
114130
## Native acceptance and completion gates
115131

116132
Use a disposable Apple-silicon macOS VM or dedicated test Mac with separate Homebrew prefix/Caskroom, Applications, home and Finder/LaunchServices state. A temporary account or `--appdir` on the working Mac is insufficient. Do not mount host app, brew or data directories. Transfer only reviewed artifacts and synthetic fixtures. Record resolved paths and bundle identities inside the isolated system before operations; stop on unexpected/shared state.

‎docs/tasks/release-0.8.0.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ Next action: None for standard publication. Installed-update and broader native
2222
- Choose 0.8.0/build 29 for the added file-tool capabilities. Keep older tags/assets immutable and preserve the existing Sparkle key and signing/authorization configuration.
2323
- Both new child tools remain default off. Batch rename documents its local writable APFS scope; checksum guidance distinguishes integrity values from encryption or proof of origin.
2424
- Follow the current policy omitting local downloads/comparisons of uploaded release archives. Read the previous stable appcast only for version/build preflight.
25-
- Homebrew synchronization remains subject to the existing explicit opt-in; this task uses the standard publication command.
25+
- After application publication, the user explicitly requested Homebrew tap synchronization. Ran the manifest-based helper for this version; the automatic release hook remains disabled by default.
2626
- Committed release preparation as `ab25fb7bf42ac3806ca725cd107b912da47ba010` and created/pushed `v0.8.0` at that source. Both canonical commands completed successfully without rebuilding or replacing the candidate during publication.
2727
- Stable Latest became public at **2026-10-20 09:43:55 Asia/Shanghai**, Release ID `417913389`: [FileMint 0.8.0](https://github.com/FileMintApp/FileMint/releases/tag/v0.8.0).
2828
- All required remote checks passed before promotion. Website deployment then reused Pages artifact `12234434852`; HTTP readback of both homepages and both guides confirmed the shipped batch rename and checksum copy.
29+
- Homebrew Cask update `d0b8af013ef1b3c6279846db5e5b3309fb5c7fca` synchronized 0.8.0 and its verified DMG digest. Initial public audit hit unauthenticated GitHub API rate limiting; workflow-only fix `c79c7dce1a1f9653a921397b8f5f43c0bf503b89` passes the existing read-only job token to Homebrew. The subsequent public audit passed. See the [Homebrew follow-up](homebrew-tap.md).
2930

3031
## Evidence
3132

@@ -46,7 +47,7 @@ Local logs and metadata: `build/release-0.8.0.noindex/`, `build/FileMint-0.8.0.r
4647
| Required website build | passed | [Run 39354990375](https://github.com/FileMintApp/FileMint/actions/runs/39354990375), request `697bc5256e704487a4e2bedf540360ae`; retained Pages artifact `12234434852`. |
4748
| Public stable Latest | passed | Release `417913389` is public, stable and Latest; six public asset names, IDs, sizes and final immutable tag URLs match the journal. [Metadata](../../build/release-0.8.0.noindex/published-release.json), [publication log](../../build/release-0.8.0.noindex/publish-local.log), [journal](../../build/FileMint-0.8.0.publication.json). |
4849
| Website deployment and live copy | passed | [Run 39355066196](https://github.com/FileMintApp/FileMint/actions/runs/39355066196), request `e5c874cfa772468ab53fb131df2762e3`; deployed the verified artifact after publication. Both live homepages and guides contain the new feature copy; HTML retained in the evidence directory. Current-release labels still use public Latest discovery. [Website](https://filemintapp.github.io/FileMint/). |
49-
| Homebrew synchronization | not-run | Explicit opt-in was not enabled; no tap update or native brew operation was performed. |
50+
| Homebrew synchronization | passed | `python3 scripts/homebrew_tap.py publish --manifest build/FileMint-0.8.0.release.json` validated retained local artifacts, completed publication evidence and Homebrew metadata, then pushed/read back the Cask. [Receipt](../../build/release-0.8.0.noindex/homebrew/sync-result.json), [log](../../build/release-0.8.0.noindex/homebrew/sync.log). Public [run 39356246267](https://github.com/FileMintApp/homebrew-tap/actions/runs/39356246267) passed complete online validation after the read-only API-token fix; template/workflow YAML checks and `make verify` passed. No native app installation or upgrade was performed. |
5051
| Installed release, minimum-OS and provider acceptance | not-run | Standard publication does not install/launch the production app or repeat exhaustive native QA. Existing feature acceptance does not prove the final release's full runtime matrix. |
5152
| Local remote-archive byte/hash comparison | not-run | Omitted by current policy; GitHub owns independent remote candidate validation. |
5253

‎scripts/homebrew/tap/.github/workflows/validate.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
run: |
3131
brew tap --custom-remote filemintapp/tap "$GITHUB_WORKSPACE"
3232
- name: Validate syntax, metadata and upstream discovery
33+
env:
34+
HOMEBREW_GITHUB_API_TOKEN: ${{ github.token }}
3335
run: |
3436
brew style Casks/filemint.rb
3537
brew readall --os=all --arch=all filemintapp/tap

‎specs/domains/distribution.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ Part of the [FileMint SPEC](../SPEC.md). This file owns the behavior below; othe
166166
release evidence before pushing, then read back the remote commit and Cask.
167167
Identical verified retries are no-ops. Development and `release-local` never
168168
publish a tap.
169+
- The tap's read-only validation step passes its per-job GitHub token to
170+
Homebrew API requests. Keep `contents: read` permissions and use the ephemeral
171+
Actions identity; no personal access token or Apple/Sparkle key is required.
169172
- The Cask does not quit, kill or relaunch any process and contains no `zap`.
170173
Before brew replacement, adoption or removal, finish/save/cancel work, wait for
171174
active file or Sparkle operations, manually quit FileMint and confirm exit.

0 commit comments

Comments
 (0)