Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
20e312b851 | ||
|
|
b200da80b8 | ||
|
|
82fe6a7648 | ||
|
|
be8ef93e3a | ||
|
|
9473856800
|
||
|
|
2f072a3236
|
||
|
|
c579639697
|
||
|
|
7b197c702b | ||
|
|
b2529c57e1 | ||
|
|
b68fe2ef19 | ||
|
|
981e625ca1 | ||
|
|
289ab47e51 | ||
|
|
eee61f67a0 | ||
|
|
381ac8799a | ||
|
|
ef4af06158 |
No files matched your search
@@ -0,0 +1,14 @@
|
||||
# docs/12 §8 — T6: a malicious PR must not be able to alter what runs.
|
||||
#
|
||||
# Gitea reads this file from the repository root, docs/ or .gitea/ only, and
|
||||
# treats each pattern as a regular expression matched against the path (a
|
||||
# pattern without `*` is NOT a glob). Branch protection on `main` does not
|
||||
# REQUIRE an approval (single-maintainer repository); what it requires is a PR
|
||||
# and the `CI / build (*)` and `CI / gates (*)` checks — see docs/12 §8. The
|
||||
# highest-risk paths are still named, so a review request always reaches the
|
||||
# owner for them.
|
||||
.* @poli0981
|
||||
^\.gitea/.* @poli0981
|
||||
^scripts/.* @poli0981
|
||||
^src/data/.* @poli0981
|
||||
^worker/.* @poli0981
|
||||
@@ -0,0 +1,279 @@
|
||||
# docs/12 §2 — self-contained, deliberately.
|
||||
#
|
||||
# It once called `poli0981/.github` → `reusable-web-react.yml`, which ran
|
||||
# lint / typecheck / test only *if a matching package script existed* — rename
|
||||
# a script and CI quietly stops checking while still going green. This
|
||||
# project's gates ARE the product, and it has shipped silent no-ops before (a
|
||||
# dead set:html lint rule, workbox globs matching nothing, an unregistered
|
||||
# service worker, CSP-dropped inline styles). The duplicated "logic" is a
|
||||
# handful of pnpm invocations: a fair price for a gate that fails loudly.
|
||||
#
|
||||
# Gitea Actions since 2026-11-24 (D38, runbook `docs/GITEA-MIGRATION.md` in
|
||||
# poli0981/.github): one runner on the maintainer's PC, jobs in Docker
|
||||
# (`docker.gitea.com/runner-images`, as root). Branch protection on `main`
|
||||
# requires `CI / build (*)` and `CI / gates (*)` — Gitea names a check
|
||||
# `<workflow> / <job> (<event>)`, so renaming either breaks the rule.
|
||||
#
|
||||
# Every `uses:` is pinned to a full commit SHA with the release in a comment;
|
||||
# Renovate (renovate.json) bumps both together.
|
||||
name: CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [main]
|
||||
# How the bots' pull requests get their checks: an event caused by the job
|
||||
# token starts no workflow, so quarantine.yml and vt-recheck.yml dispatch
|
||||
# this one on their branch, and `record` below turns the dispatched run's
|
||||
# results into the statuses protection asks for (docs/12 §4).
|
||||
workflow_dispatch:
|
||||
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
# No `version:` — the action reads package.json `packageManager`, so CI
|
||||
# and laptops run the same pnpm.
|
||||
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
|
||||
- uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
cache: pnpm
|
||||
- run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Lint & format
|
||||
run: pnpm lint
|
||||
- name: Types
|
||||
run: pnpm check
|
||||
# `coverage` IS the unit run (vitest run --coverage): one pass, and it
|
||||
# fails below the thresholds in vitest.config.ts.
|
||||
- name: Unit tests (with coverage thresholds)
|
||||
run: pnpm coverage
|
||||
# `pnpm build` is the SAME command the `deploy` job runs, and it carries
|
||||
# its own gates: data + i18n before `astro build`, the CSP, asset,
|
||||
# service-worker and feed checks on dist/ after it (package.json).
|
||||
- name: Build (with data, i18n, CSP and service-worker gates)
|
||||
run: pnpm build
|
||||
# Bundles worker/ and validates wrangler.jsonc (bindings, assets,
|
||||
# run_worker_first) exactly as a deploy would, without credentials. A
|
||||
# config error then fails here instead of in production.
|
||||
- name: Worker bundle (wrangler deploy --dry-run)
|
||||
env:
|
||||
WRANGLER_SEND_METRICS: 'false'
|
||||
run: pnpm exec wrangler deploy --dry-run --outdir "$RUNNER_TEMP/worker"
|
||||
- name: Dead code
|
||||
run: pnpm knip
|
||||
|
||||
# End-to-end on the build above (docs/11): every page type in both
|
||||
# locales and colour schemes, desktop + mobile, failing on any console
|
||||
# error, CSP violation or axe finding. The browser download is ~150 MB
|
||||
# and versioned with @playwright/test, so it is cached per version; on a
|
||||
# hit only the OS libraries still need installing. The servers bind
|
||||
# 127.0.0.1 explicitly (playwright.config.ts): in the job container
|
||||
# `localhost` can resolve to ::1 for a server and 127.0.0.1 for a client.
|
||||
- name: Playwright version
|
||||
id: pw
|
||||
run: echo "version=$(pnpm exec playwright --version | awk '{print $2}')" >> "$GITHUB_OUTPUT"
|
||||
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||
id: pw-cache
|
||||
with:
|
||||
path: ~/.cache/ms-playwright
|
||||
key: playwright-${{ runner.os }}-${{ steps.pw.outputs.version }}
|
||||
- name: Install Chromium
|
||||
if: steps.pw-cache.outputs.cache-hit != 'true'
|
||||
run: pnpm exec playwright install --with-deps chromium
|
||||
- name: Install Chromium system libraries
|
||||
if: steps.pw-cache.outputs.cache-hit == 'true'
|
||||
run: pnpm exec playwright install-deps chromium
|
||||
- name: End-to-end (Playwright + axe on the built site)
|
||||
run: pnpm e2e
|
||||
# The route from the runner to the server's artifact store has dropped
|
||||
# uploads mid-way (ticktune, 2026-11-23): a lost report must never turn
|
||||
# a red run into a confusing one.
|
||||
- name: Keep the Playwright report
|
||||
if: failure()
|
||||
continue-on-error: true
|
||||
uses: christopherhx/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 # v4
|
||||
with:
|
||||
name: playwright-report
|
||||
path: playwright-report/
|
||||
retention-days: 7
|
||||
|
||||
gates:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
permissions:
|
||||
contents: read
|
||||
env:
|
||||
OSV_SCANNER_VERSION: v2.7.1
|
||||
OSV_SCANNER_SHA256: fb7dab19a8bd9bbe5c3189f09d4b7ee1820c9553a23bac202648a56efd2f6ee8 # osv-scanner_linux_amd64
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
fetch-depth: 0 # the changed-links step diffs against the PR base
|
||||
persist-credentials: false
|
||||
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
|
||||
- uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
cache: pnpm
|
||||
- run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Data rules (L2)
|
||||
run: pnpm validate:data
|
||||
- name: EN/VI key parity (hard rule 6)
|
||||
run: pnpm i18n:check
|
||||
|
||||
# The same pinned, checksum-verified binary the ops repo's security.yml
|
||||
# runs, here because this gate is REQUIRED: an advisory against the
|
||||
# lockfile blocks the merge (docs/09 §7). osv-scanner.toml, beside the
|
||||
# lockfile, holds the time-boxed exceptions. Renovate does not see this
|
||||
# pin: bump version and checksum together, by hand.
|
||||
- name: Install osv-scanner ${{ env.OSV_SCANNER_VERSION }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
bin="$RUNNER_TEMP/osv-scanner/osv-scanner"
|
||||
mkdir -p "$(dirname "$bin")"
|
||||
curl --proto '=https' -fsSL --retry 3 -o "$bin" \
|
||||
"https://github.com/google/osv-scanner/releases/download/${OSV_SCANNER_VERSION}/osv-scanner_linux_amd64"
|
||||
echo "${OSV_SCANNER_SHA256} $bin" | sha256sum -c -
|
||||
chmod +x "$bin"
|
||||
echo "$RUNNER_TEMP/osv-scanner" >> "$GITHUB_PATH"
|
||||
- name: Vulnerability scan
|
||||
run: osv-scanner scan source --lockfile=pnpm-lock.yaml
|
||||
- name: Audit production deps
|
||||
run: pnpm audit --prod
|
||||
|
||||
# PR-time link check over the links a PR adds or edits — the URLs on the
|
||||
# diff's added lines — not every link in every touched file: a re-check
|
||||
# PR that rewrote 198 security blocks once had to re-verify ~700
|
||||
# unrelated vendor links, and one vendor's bad minute blocked it.
|
||||
# link-check.yml owns the weekly full sweep (docs/12 §5). git runs HERE,
|
||||
# under pipefail, so a failed diff stops the job instead of silently
|
||||
# narrowing the check.
|
||||
- name: Collect changed official links
|
||||
id: urls
|
||||
if: github.event_name == 'pull_request'
|
||||
env:
|
||||
BASE_REF: ${{ github.base_ref }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git diff -U0 "origin/${BASE_REF}...HEAD" -- src/data/apps \
|
||||
| node scripts/extract-urls.mjs --added > /tmp/urls.txt
|
||||
count=$(grep -c . /tmp/urls.txt || true)
|
||||
echo "count=$count" >> "$GITHUB_OUTPUT"
|
||||
echo "$count changed URL(s) to check"
|
||||
# Accepting 403/429 is about bot mitigation, not about being lenient.
|
||||
# Seeding the catalogue put ~1 150 vendor URLs through here and 14 came
|
||||
# back 403 from sites that are plainly alive (winehq.org, dolphin-emu.org,
|
||||
# rpcs3.net, gitlab.com, MSI, Nexus Mods, Epic, Enpass). A checker that
|
||||
# cries wolf on a seventh of the catalogue teaches everyone to ignore it.
|
||||
# 404/500/connection failures — the codes that actually mean "gone" —
|
||||
# still fail the build.
|
||||
#
|
||||
# Do NOT add `--user-agent`: spoofing a browser cleared the 403s but made
|
||||
# gitlab.gnome.org answer 406 and whatsapp.com 400, both of which pass on
|
||||
# lychee's default agent.
|
||||
#
|
||||
# Skipped when the PR changes no app data — lychee treats an empty input
|
||||
# as a configuration error. A skipped step is visible in the run, where a
|
||||
# green "0 links" would be exactly the kind of quiet pass this repo keeps
|
||||
# getting caught by.
|
||||
- name: Link check
|
||||
if: github.event_name == 'pull_request' && steps.urls.outputs.count != '0'
|
||||
uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2.9.0
|
||||
with:
|
||||
args: >-
|
||||
--max-concurrency 4 --retry-wait-time 5 --max-retries 4 --timeout 45
|
||||
--accept '200..=299,403,429'
|
||||
/tmp/urls.txt
|
||||
|
||||
# A dispatched run writes no commit status on Gitea 28.4 (runbook §6), so a
|
||||
# bot PR whose checks came from `workflow_dispatch` would never meet the
|
||||
# protection rule. This job records build's and gates' results on the
|
||||
# commit under the names the rule matches (`CI / build (*)`).
|
||||
record:
|
||||
needs: [build, gates]
|
||||
if: always() && github.event_name == 'workflow_dispatch'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
permissions:
|
||||
contents: write # commit statuses
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
- name: Record build and gates as commit statuses
|
||||
env:
|
||||
GITEA_API: ${{ github.api_url }}
|
||||
GITEA_REPO: ${{ github.repository }}
|
||||
GITEA_TOKEN: ${{ github.token }}
|
||||
SHA: ${{ github.sha }}
|
||||
BUILD: ${{ needs.build.result }}
|
||||
GATES: ${{ needs.gates.result }}
|
||||
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
node scripts/gitea.mjs status "$SHA" 'CI / build (workflow_dispatch)' "$BUILD" "$RUN_URL"
|
||||
node scripts/gitea.mjs status "$SHA" 'CI / gates (workflow_dispatch)' "$GATES" "$RUN_URL"
|
||||
|
||||
# D38 — production deploys from here. Cloudflare Workers Builds pulled from
|
||||
# the GitHub repository and stopped with it; nothing else deploys, and pull
|
||||
# requests get no preview versions (the Cloudflare token stays out of every
|
||||
# job a branch can run). CLOUDFLARE_API_TOKEN / CLOUDFLARE_ACCOUNT_ID are
|
||||
# user-level Gitea Actions secrets. The Worker's runtime secret
|
||||
# (TURNSTILE_SECRET) lives on the Worker and survives a deploy.
|
||||
deploy:
|
||||
needs: [build, gates]
|
||||
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
|
||||
- uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
cache: pnpm
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
- name: Deploy to Cloudflare Workers
|
||||
env:
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
WRANGLER_SEND_METRICS: 'false'
|
||||
run: pnpm exec wrangler deploy --message "main ${GITHUB_SHA:0:7}"
|
||||
# /api/apps.json carries the build's own timestamp: production serves
|
||||
# THIS build once it answers with the one in dist/. The query string
|
||||
# skips any cached copy (the file is cached for 5 minutes, _headers).
|
||||
- name: Live
|
||||
run: |
|
||||
want=$(node -p "require('./dist/api/apps.json').generatedAt")
|
||||
for i in $(seq 1 30); do
|
||||
live=$(curl -fsS "https://softharbor.net/api/apps.json?deploy=${GITHUB_SHA}" \
|
||||
| node -e 'let s="";process.stdin.on("data",(d)=>(s+=d)).on("end",()=>{try{console.log(JSON.parse(s).generatedAt)}catch{console.log("")}})' || true)
|
||||
if [ "$live" = "$want" ]; then echo "live: $live"; exit 0; fi
|
||||
sleep 5
|
||||
done
|
||||
echo "::error::production still serves ${live:-nothing}, not this build's $want"
|
||||
exit 1
|
||||
@@ -0,0 +1,64 @@
|
||||
# docs/12 §5 — weekly full sweep of every official link in the dataset.
|
||||
# PR-time checking covers only the links a PR adds, inside ci.yml's `gates`.
|
||||
#
|
||||
# ONE tracking issue, not one per week: the open issue is refreshed in place,
|
||||
# and closed automatically the first week the sweep comes back clean
|
||||
# (scripts/gitea.mjs `link-rot`; it once left 12 duplicates open on GitHub).
|
||||
#
|
||||
# Monday 14:43 UTC (21:43 Vietnam): scheduled jobs run only inside
|
||||
# 13:00–16:00 UTC, on a slot no other repository uses (cron registry in
|
||||
# poli0981/.github docs/migration/README.md). If the maintainer's PC is off,
|
||||
# the run waits and starts when the runner comes back (cancelled after 24 h).
|
||||
name: link-check
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '43 14 * * 1'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: link-check
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
lychee:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write # the tracking issue
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
# extract-urls.mjs and gitea.mjs are plain Node, but they should run on
|
||||
# the project's Node (.nvmrc), not whatever the runner image ships.
|
||||
- uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
- run: node scripts/extract-urls.mjs > /tmp/urls.txt
|
||||
|
||||
- id: lychee
|
||||
uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2.9.0
|
||||
with:
|
||||
# Kept in step with ci.yml's PR sweep — see the note there for why
|
||||
# 403/429 are accepted. More retries with a longer wait: vendor
|
||||
# sites blip, and a weekly job has the time to ride that out.
|
||||
args: >-
|
||||
--max-concurrency 4 --retry-wait-time 10 --max-retries 5 --timeout 45
|
||||
--accept '200..=299,403,429'
|
||||
/tmp/urls.txt
|
||||
output: ./lychee/out.md
|
||||
# Link rot is triage, not a build break — it updates an issue instead.
|
||||
fail: false
|
||||
|
||||
- name: Refresh the tracking issue
|
||||
env:
|
||||
GITEA_API: ${{ github.api_url }}
|
||||
GITEA_REPO: ${{ github.repository }}
|
||||
GITEA_TOKEN: ${{ github.token }}
|
||||
EXIT_CODE: ${{ steps.lychee.outputs.exit_code }}
|
||||
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||
run: node scripts/gitea.mjs link-rot "$EXIT_CODE" ./lychee/out.md "$RUN_URL"
|
||||
@@ -0,0 +1,37 @@
|
||||
# docs/12 §2 — a published release → Discord.
|
||||
#
|
||||
# Publish the Gitea release BY HAND (Releases → the tag → Publish), as docs/13
|
||||
# §3 says: an event caused by the job token starts no workflow, so a release a
|
||||
# workflow created would never announce itself. Re-announce with
|
||||
# Actions → notify → Run workflow and the tag.
|
||||
#
|
||||
# Scope note: announce-release.yml reaches DISCORD ONLY. The multi-platform
|
||||
# notify.py cross-poster consumes /rss.xml on its own schedule (docs/03 §7,
|
||||
# docs/13 §5), so per-app announcements need no workflow here — only a valid,
|
||||
# deterministic feed.
|
||||
name: notify
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: Release tag to (re-)announce, e.g. v1.5.0
|
||||
required: true
|
||||
type: string
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
announce:
|
||||
permissions:
|
||||
contents: read
|
||||
uses: poli0981/.github/.gitea/workflows/announce-release.yml@8e6582af9a5846b4d8995b26b1421488d29d761b # ops v2026.11.2
|
||||
with:
|
||||
tag_override: ${{ inputs.tag || '' }}
|
||||
# The notifier script is loaded from the same commit as the workflow.
|
||||
ops_ref: 8e6582af9a5846b4d8995b26b1421488d29d761b
|
||||
# Only what the announcement needs, never `secrets: inherit`.
|
||||
secrets:
|
||||
DISCORD_RELEASES_WEBHOOK: ${{ secrets.DISCORD_RELEASES_WEBHOOK }}
|
||||
@@ -0,0 +1,38 @@
|
||||
# docs/12 §2 — Qodana (D35): JetBrains' WebStorm-based analysis. Scope and the
|
||||
# quality gate live in qodana.yaml (qodana-js, native mode, any finding fails).
|
||||
#
|
||||
# Since D38 it runs through the ops repo's reusable workflow (the Qodana CLI,
|
||||
# pinned and checksum-verified): JetBrains/qodana-action needs GitHub's APIs,
|
||||
# and Gitea has no code-scanning UI. The findings live in Qodana Cloud
|
||||
# (project `softharbor`) and in the run's `qodana-report` artifact.
|
||||
#
|
||||
# Deliberately NOT a required check: a Qodana Cloud outage, or a licence that
|
||||
# lapses (the Ultimate licence runs to 2026-12-31), must never block a merge.
|
||||
# Runs started by renovate-bot skip the scan (the reusable's own guard): Gitea
|
||||
# gives same-repo pull requests the secrets, and such a run installs the very
|
||||
# update under review.
|
||||
name: Qodana
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
qodana:
|
||||
permissions:
|
||||
contents: read
|
||||
uses: poli0981/.github/.gitea/workflows/reusable-qodana.yml@8e6582af9a5846b4d8995b26b1421488d29d761b # ops v2026.11.2
|
||||
with:
|
||||
package-manager: pnpm # native mode resolves imports against this install
|
||||
node-version-file: .nvmrc
|
||||
prepare-command: pnpm exec astro sync # .astro/ types, which tsconfig includes
|
||||
secrets:
|
||||
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
|
||||
@@ -0,0 +1,89 @@
|
||||
# docs/12 §4 — enforces hard rule 5 mechanically.
|
||||
#
|
||||
# Runs on data pushes AND daily. The daily run re-checks main so a flagged
|
||||
# entry that slipped past review is moved within a day — as a PR, not a push
|
||||
# to main, so a human stays in the loop and branch protection still applies.
|
||||
#
|
||||
# On Gitea (D38):
|
||||
# - The bot commits to `quarantine/auto` and pushes with the job token, then
|
||||
# opens or updates the PR through the API (scripts/gitea.mjs). Its commits
|
||||
# are unsigned — Gitea has no API that signs them — which is why branch
|
||||
# protection does not require signed commits.
|
||||
# - A push or PR the job token makes starts no workflow, so this job
|
||||
# dispatches ci.yml and security.yml on the branch; ci.yml's `record` job
|
||||
# turns the dispatched results into the statuses protection asks for.
|
||||
# - `[quarantine] <slug>` issues are created only when none is open.
|
||||
# - Step outputs never reach `run:` bodies through `${{ }}` (expression
|
||||
# injection); they pass through `env:`, and gitea.mjs validates slugs.
|
||||
# - Daily at 13:17 UTC (20:17 Vietnam), inside the runner's 13:00–16:00 UTC
|
||||
# window, on a slot from the cron registry (poli0981/.github
|
||||
# docs/migration/README.md).
|
||||
name: quarantine
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths: ['src/data/apps/**']
|
||||
schedule:
|
||||
- cron: '17 13 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: quarantine
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
sweep:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
permissions:
|
||||
contents: write # push quarantine/auto
|
||||
pull-requests: write # open or update the PR
|
||||
issues: write # one tracking issue per slug
|
||||
actions: write # dispatch the checks onto the PR branch
|
||||
steps:
|
||||
# No persisted token while repository code (quarantine.mjs) runs; the
|
||||
# push below authenticates on its own.
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
|
||||
- id: sweep
|
||||
run: node scripts/quarantine.mjs
|
||||
|
||||
- name: Commit and push quarantine/auto
|
||||
id: push
|
||||
if: steps.sweep.outputs.moved != ''
|
||||
env:
|
||||
TOKEN: ${{ github.token }}
|
||||
MOVED: ${{ steps.sweep.outputs.moved }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git config user.name 'SoftHarbor bot'
|
||||
git config user.email 'actions@noreply.git.poli0981.dev'
|
||||
git switch -c quarantine/auto
|
||||
git add -A src/data/apps data/quarantine
|
||||
git commit -q -m "data: quarantine ${MOVED}"
|
||||
auth=$(printf 'x-access-token:%s' "$TOKEN" | base64 -w0)
|
||||
git -c "http.extraheader=AUTHORIZATION: basic ${auth}" push -q --force origin HEAD:refs/heads/quarantine/auto
|
||||
printf 'Automated sweep: entries with `security.status: "flagged"` were\nmoved to `data/quarantine/`, which is outside the content glob, so\nthey stop rendering on the next build (docs/03 §5).\n\nNothing was deleted. Restoring is a `git mv` plus a status edit;\nthe reason and evidence live in the linked tracking issue.\n' > "$RUNNER_TEMP/pr-body.md"
|
||||
echo "pushed=true" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Open the PR, run its checks, open the tracking issues
|
||||
if: steps.push.outputs.pushed == 'true'
|
||||
env:
|
||||
GITEA_API: ${{ github.api_url }}
|
||||
GITEA_REPO: ${{ github.repository }}
|
||||
GITEA_TOKEN: ${{ github.token }}
|
||||
MOVED: ${{ steps.sweep.outputs.moved }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
node scripts/gitea.mjs pr quarantine/auto 'data: quarantine flagged entries' "$RUNNER_TEMP/pr-body.md" 'security,quarantine'
|
||||
node scripts/gitea.mjs dispatch quarantine/auto ci.yml security.yml
|
||||
# shellcheck disable=SC2086 # one argument per slug, on purpose
|
||||
node scripts/gitea.mjs quarantine-issues $MOVED
|
||||
@@ -0,0 +1,32 @@
|
||||
# docs/12 §2 — the ops repo's security checks (D38), replacing CodeQL, which
|
||||
# Gitea does not have:
|
||||
#
|
||||
# secrets gitleaks over the whole history (.gitleaksignore lists the public
|
||||
# identifiers it would otherwise flag)
|
||||
# sast Opengrep with pinned community rules for JavaScript/TypeScript;
|
||||
# report-only, SARIF kept as an artifact
|
||||
# deps osv-scanner over pnpm-lock.yaml (osv-scanner.toml applies)
|
||||
#
|
||||
# Not a required check (ci.yml `gates` is the one that blocks on advisories).
|
||||
# Weekly slot `37 15 * * 2` — Tuesday 22:37 Vietnam — from the cron registry
|
||||
# in poli0981/.github docs/migration/README.md: the runner only takes
|
||||
# scheduled jobs inside 13:00–16:00 UTC.
|
||||
name: Security
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '37 15 * * 2'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
security:
|
||||
permissions:
|
||||
contents: read
|
||||
uses: poli0981/.github/.gitea/workflows/security.yml@8e6582af9a5846b4d8995b26b1421488d29d761b # ops v2026.11.2
|
||||
with:
|
||||
node: true
|
||||
@@ -11,18 +11,25 @@
|
||||
#
|
||||
# Dispatched on any other branch it is a PREVIEW: it scans only the listed
|
||||
# slugs — or, with none, the entries that were never scanned, i.e. a data
|
||||
# PR's new apps — and uploads the patched files as the `vt-preview` artifact
|
||||
# for the maintainer to review and commit. No PR, no issues.
|
||||
# PR's new apps — prints the patched `security` blocks in the log and keeps
|
||||
# the files as the `vt-preview` artifact, for the maintainer to review and
|
||||
# commit. No PR, no issues.
|
||||
#
|
||||
# VirusTotal's Public API allows 4 requests a minute and 500 a day (reset at
|
||||
# 00:00 UTC, hence the schedule). The script paces itself, spends at most the
|
||||
# `budget`, and stops cleanly at the quota; the next run continues. The
|
||||
# concurrency group keeps two runs from sharing the key's per-minute limit.
|
||||
# 00:00 UTC). The script paces itself, spends at most the `budget`, and stops
|
||||
# cleanly at the quota; the next run continues. The concurrency group keeps
|
||||
# two runs from sharing the key's per-minute limit.
|
||||
#
|
||||
# On Gitea (D38): daily at 13:59 UTC (20:59 Vietnam), inside the runner's
|
||||
# 13:00–16:00 UTC window (cron registry in poli0981/.github
|
||||
# docs/migration/README.md). The PR, its checks and the issues go through
|
||||
# scripts/gitea.mjs with the job token — see quarantine.yml for why the
|
||||
# checks are dispatched and the commits unsigned.
|
||||
name: vt-recheck
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '41 0 * * *'
|
||||
- cron: '59 13 * * *'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
slugs:
|
||||
@@ -42,8 +49,7 @@ on:
|
||||
required: false
|
||||
default: '440'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: vt-recheck
|
||||
@@ -55,39 +61,42 @@ jobs:
|
||||
# 440 requests at 15.5 s each is about two hours.
|
||||
timeout-minutes: 150
|
||||
permissions:
|
||||
contents: write # create-pull-request commits to vt/recheck
|
||||
pull-requests: write # …and opens or updates the PR
|
||||
contents: write # push vt/recheck
|
||||
pull-requests: write # open or update the PR
|
||||
issues: write # one tracking issue per detection
|
||||
actions: write # dispatch the required checks onto the PR branch
|
||||
actions: write # dispatch the checks onto the PR branch
|
||||
env:
|
||||
GITEA_API: ${{ github.api_url }}
|
||||
GITEA_REPO: ${{ github.repository }}
|
||||
steps:
|
||||
# No persisted token while repository code runs; create-pull-request
|
||||
# authenticates with its own `token` input.
|
||||
# No persisted token while repository code runs; the push below
|
||||
# authenticates on its own.
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
- uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
|
||||
# Only an OPEN pull request's results are carried: the repository
|
||||
# deletes merged branches, and a PR closed without merging was a
|
||||
# rejection, never to be re-adopted.
|
||||
- name: Carry the open re-check PR
|
||||
id: carry
|
||||
# Only an OPEN pull request's results are carried: merged branches are
|
||||
# deleted, and a PR closed without merging was a rejection, never to be
|
||||
# re-adopted.
|
||||
- name: Is a re-check PR open?
|
||||
id: open
|
||||
if: github.ref == 'refs/heads/main'
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
GITEA_TOKEN: ${{ github.token }}
|
||||
run: node scripts/gitea.mjs pr-open vt/recheck
|
||||
- name: Carry the open re-check PR
|
||||
id: carry
|
||||
if: steps.open.outputs.open == 'true'
|
||||
run: |
|
||||
set -euo pipefail
|
||||
open=$(gh pr list --repo "$GITHUB_REPOSITORY" --head vt/recheck --state open --json number --jq 'length')
|
||||
if [ "$open" = "0" ]; then
|
||||
echo "No open re-check PR — nothing to carry."
|
||||
exit 0
|
||||
fi
|
||||
git fetch --no-tags --depth=1 origin vt/recheck
|
||||
mkdir -p "$RUNNER_TEMP/carry"
|
||||
git archive FETCH_HEAD src/data/apps | tar -x -C "$RUNNER_TEMP/carry"
|
||||
echo "dir=$RUNNER_TEMP/carry/src/data/apps" >> "$GITHUB_OUTPUT"
|
||||
echo "tree=$(git rev-parse 'FETCH_HEAD^{tree}')" >> "$GITHUB_OUTPUT"
|
||||
|
||||
# Everything reaches the script through env (never `${{ }}` inside
|
||||
# `run:`); it validates slugs and numbers itself.
|
||||
@@ -113,88 +122,64 @@ jobs:
|
||||
fi
|
||||
|
||||
# ── preview (any branch but main) ─────────────────────────────────────
|
||||
# The diff in the log is the review copy: an artifact needs a signed-in
|
||||
# download, the log does not. Only the `security` blocks may be copied
|
||||
# into the data PR (docs/12 §4b) — a whole file from the dispatch commit
|
||||
# would revert later edits.
|
||||
- name: Collect the preview
|
||||
if: github.ref != 'refs/heads/main' && steps.scan.outputs.changed != '0'
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git --no-pager diff -- src/data/apps
|
||||
mkdir -p "$RUNNER_TEMP/vt-preview"
|
||||
git diff --name-only -- src/data/apps | while read -r f; do
|
||||
cp --parents "$f" "$RUNNER_TEMP/vt-preview/"
|
||||
done
|
||||
cp "$RUNNER_TEMP/vt-summary.md" "$RUNNER_TEMP/vt-preview/"
|
||||
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
- name: Keep the preview
|
||||
if: github.ref != 'refs/heads/main' && steps.scan.outputs.changed != '0'
|
||||
continue-on-error: true # the log above already holds the result
|
||||
uses: christopherhx/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 # v4
|
||||
with:
|
||||
name: vt-preview
|
||||
path: ${{ runner.temp }}/vt-preview/
|
||||
retention-days: 7
|
||||
|
||||
# ── main: one accumulating PR ─────────────────────────────────────────
|
||||
# NOTE: requires Settings → Actions → General → "Allow GitHub Actions to
|
||||
# create and approve pull requests" (H10 — enabled for quarantine.yml).
|
||||
- id: cpr
|
||||
# Pushed only when the branch would actually change: with a PR open, the
|
||||
# carried results alone make `changed` non-zero every day.
|
||||
- name: Commit and push vt/recheck
|
||||
id: push
|
||||
if: github.ref == 'refs/heads/main' && steps.scan.outputs.changed != '0'
|
||||
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
|
||||
with:
|
||||
branch: vt/recheck
|
||||
add-paths: src/data/apps
|
||||
sign-commits: true
|
||||
title: 'data: VirusTotal re-check'
|
||||
commit-message: 'data: refresh VirusTotal scans'
|
||||
labels: security
|
||||
body-path: ${{ runner.temp }}/vt-summary.md
|
||||
|
||||
# A PR opened with GITHUB_TOKEN gets `pull_request` runs that wait for a
|
||||
# maintainer's approval; `workflow_dispatch` always runs. Dispatch only
|
||||
# when the branch actually moved.
|
||||
- name: Run the required checks on the PR branch
|
||||
if: steps.cpr.outputs.pull-request-operation == 'created' || steps.cpr.outputs.pull-request-operation == 'updated'
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
BRANCH: ${{ steps.cpr.outputs.pull-request-branch }}
|
||||
TOKEN: ${{ github.token }}
|
||||
OLD_TREE: ${{ steps.carry.outputs.tree }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
gh workflow run ci.yml --repo "$GITHUB_REPOSITORY" --ref "$BRANCH"
|
||||
gh workflow run codeql.yml --repo "$GITHUB_REPOSITORY" --ref "$BRANCH"
|
||||
git config user.name 'SoftHarbor bot'
|
||||
git config user.email 'actions@noreply.git.poli0981.dev'
|
||||
git switch -c vt/recheck
|
||||
git add src/data/apps
|
||||
git commit -q -m 'data: refresh VirusTotal scans'
|
||||
if [ "$(git rev-parse 'HEAD^{tree}')" = "$OLD_TREE" ]; then
|
||||
echo "vt/recheck already holds these results — nothing to push."
|
||||
exit 0
|
||||
fi
|
||||
auth=$(printf 'x-access-token:%s' "$TOKEN" | base64 -w0)
|
||||
git -c "http.extraheader=AUTHORIZATION: basic ${auth}" push -q --force origin HEAD:refs/heads/vt/recheck
|
||||
echo "pushed=true" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Open or update the PR and run its checks
|
||||
if: steps.push.outputs.pushed == 'true'
|
||||
env:
|
||||
GITEA_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
node scripts/gitea.mjs pr vt/recheck 'data: VirusTotal re-check' "$RUNNER_TEMP/vt-summary.md" security
|
||||
node scripts/gitea.mjs dispatch vt/recheck ci.yml security.yml
|
||||
|
||||
- name: Open one tracking issue per entry with detections
|
||||
if: github.ref == 'refs/heads/main' && steps.scan.outputs.review != ''
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
REVIEW_JSON: ${{ runner.temp }}/vt-review.json
|
||||
run: |
|
||||
set -euo pipefail
|
||||
jq -c '.[]' "$REVIEW_JSON" | while read -r row; do
|
||||
slug=$(jq -r '.slug' <<<"$row")
|
||||
# Same shape validate:data enforces on filenames; anything else is
|
||||
# not ours and must not reach a command or an issue title.
|
||||
if ! [[ "$slug" =~ ^[a-z0-9]+(-[a-z0-9]+)*$ ]]; then
|
||||
echo "::warning::skipping unexpected slug '$slug'"
|
||||
continue
|
||||
fi
|
||||
title="[vt] $slug"
|
||||
# </dev/null: the loop's stdin is jq's output, which gh must not eat.
|
||||
open=$(gh issue list --repo "$GITHUB_REPOSITORY" --label security --state open \
|
||||
--json title --jq "map(select(.title == \"$title\")) | length" </dev/null)
|
||||
if [ "$open" != "0" ]; then
|
||||
echo "$title already tracked"
|
||||
continue
|
||||
fi
|
||||
evidence=$(jq -r '.evidence' <<<"$row")
|
||||
malicious=$(jq -r '.malicious' <<<"$row")
|
||||
suspicious=$(jq -r '.suspicious' <<<"$row")
|
||||
was=$(jq -r '.was' <<<"$row")
|
||||
now=$(jq -r '.status' <<<"$row")
|
||||
gh issue create --repo "$GITHUB_REPOSITORY" --title "$title" \
|
||||
--label security --body-file - <<EOF
|
||||
VirusTotal re-scanned \`$slug\`'s download page: **$malicious malicious, $suspicious suspicious** — [the scan]($evidence).
|
||||
|
||||
Status in the re-check PR: \`$was\` → \`$now\`. Nothing was flagged or removed (docs/09 §6).
|
||||
|
||||
Decide and record here:
|
||||
- [ ] Look at which engines said what, and whether the vendor or a second scan agrees
|
||||
- [ ] False positive → set \`status\` back to \`clean\` in a PR and note why here
|
||||
- [ ] Confirmed → \`status: "flagged"\` + \`pnpm quarantine\` in one PR (docs/03 §5)
|
||||
- [ ] Whether users were plausibly exposed (docs/13 §7)
|
||||
EOF
|
||||
done
|
||||
GITEA_TOKEN: ${{ github.token }}
|
||||
run: node scripts/gitea.mjs vt-issues "$RUNNER_TEMP/vt-review.json"
|
||||
@@ -1,12 +0,0 @@
|
||||
# docs/12 §8 — T6: a malicious PR must not be able to alter what runs.
|
||||
* @poli0981
|
||||
|
||||
# Highest-risk paths, called out explicitly so GitHub always requests the
|
||||
# owner's review on them. The "Run" ruleset does not REQUIRE an approval
|
||||
# (single-maintainer repository, 0 required reviews, code-owner review off);
|
||||
# what it does require is a PR, signed commits and the build / gates / codeql
|
||||
# checks — see docs/12 §8.
|
||||
/.github/** @poli0981
|
||||
/scripts/** @poli0981
|
||||
/src/data/** @poli0981
|
||||
/worker/** @poli0981
|
||||
@@ -7,8 +7,8 @@ body:
|
||||
value: |
|
||||
Thank you — accessibility reports are treated as expertise, not complaints. You never
|
||||
need to tell us about a disability, and every field except the first two is optional.
|
||||
Prefer email? Write to accessibility@poli0981.dev (no GitHub account needed). English
|
||||
or Vietnamese is fine. What happens next: [ACCESSIBILITY.md](https://github.com/poli0981/softharbor/blob/main/ACCESSIBILITY.md#how-we-respond).
|
||||
Prefer email? Write to accessibility@poli0981.dev (no account needed). English
|
||||
or Vietnamese is fine. What happens next: [ACCESSIBILITY.md](https://git.poli0981.dev/poli0981/softharbor/src/branch/main/ACCESSIBILITY.md#how-we-respond).
|
||||
- type: textarea
|
||||
id: what-happened
|
||||
attributes:
|
||||
|
||||
@@ -2,9 +2,11 @@ name: Bug report
|
||||
description: Something on the site is broken or hard to use
|
||||
labels: [bug]
|
||||
body:
|
||||
# Field `id`s are load-bearing: they are the prefill query params used by
|
||||
# src/lib/issueUrl.ts (docs/05 §A6, docs/12 §7). Renaming one is a breaking
|
||||
# change to every already-shipped client.
|
||||
# The public reports bugs on the GitLab mirror (.gitlab/issue_templates/Bug.md,
|
||||
# which the site's "Report a bug" link prefills — src/lib/issueUrl.ts,
|
||||
# docs/05 §A6); Gitea, where only the maintainer can open issues, reads this
|
||||
# form. Keep the two in step (D38). The field `id`s were GitHub's prefill
|
||||
# params until then.
|
||||
- type: input
|
||||
id: page-url
|
||||
attributes:
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
# Gitea reads these forms (only the maintainer can open issues there:
|
||||
# registration is closed). The public files issues on the GitLab mirror, from
|
||||
# .gitlab/issue_templates/ — keep the two sets in step. The Discussions and
|
||||
# private-advisory links went with the GitHub account (D38).
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Questions & discussion
|
||||
url: https://github.com/poli0981/softharbor/discussions
|
||||
- name: Question or idea
|
||||
url: mailto:code@poli0981.dev
|
||||
about: Questions, and anything that is not a bug, an app request or a listing change. New features are not taken (maintenance mode).
|
||||
- name: Maintenance mode — what is accepted
|
||||
url: https://github.com/poli0981/softharbor/discussions/75
|
||||
about: Listings, security re-checks, bugs, UI/UX and accessibility fixes are; new features are not.
|
||||
- name: Accessibility statement
|
||||
url: https://softharbor.net/legal/accessibility
|
||||
about: What the site aims for, what is known, and how accessibility reports are handled (also by email — no account needed).
|
||||
- name: Report a security issue
|
||||
url: https://github.com/poli0981/softharbor/security/advisories/new
|
||||
about: Private vulnerability reporting — please do NOT open a public issue.
|
||||
url: https://git.poli0981.dev/poli0981/softharbor/src/branch/main/SECURITY.md
|
||||
about: By e-mail to security@poli0981.dev — please do NOT open a public issue.
|
||||
@@ -6,7 +6,7 @@ body:
|
||||
attributes:
|
||||
value: |
|
||||
A suspected **malicious or hijacked download** is a security report, not an issue —
|
||||
please report it privately ([SECURITY.md](https://github.com/poli0981/softharbor/blob/main/SECURITY.md)).
|
||||
please report it privately ([SECURITY.md](https://git.poli0981.dev/poli0981/softharbor/src/branch/main/SECURITY.md)).
|
||||
Is it **your own app**? You can also write to takedown@poli0981.dev.
|
||||
- type: input
|
||||
id: app
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
# docs/12 §6 — dependency updates.
|
||||
#
|
||||
# Replaces renovate.json (removed 2026-10-21). Renovate was never installed on
|
||||
# this repository: no renovate/* branch, Dependency Dashboard or PR ever
|
||||
# appeared, so for three months nothing kept versions or action pins current
|
||||
# while Dependabot security updates — already enabled in Settings — quietly
|
||||
# failed on transitive packages. One bot, configured here, instead of two.
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: npm
|
||||
directory: /
|
||||
schedule:
|
||||
interval: weekly
|
||||
day: monday
|
||||
time: '05:00'
|
||||
timezone: Asia/Ho_Chi_Minh
|
||||
# pnpm 11 rejects any release younger than 24 h (minimumReleaseAge) and CI
|
||||
# installs with --frozen-lockfile under that policy, so a PR opened on
|
||||
# release day fails before a single test runs — exactly what killed #14
|
||||
# and #15. Two days of cooldown keeps every update PR installable.
|
||||
cooldown:
|
||||
default-days: 2
|
||||
open-pull-requests-limit: 10
|
||||
versioning-strategy: increase
|
||||
groups:
|
||||
minor-and-patch:
|
||||
update-types: [minor, patch]
|
||||
ignore:
|
||||
# D21 (amended 2026-10-23) — TypeScript runs side by side. `typescript`
|
||||
# is the @typescript/typescript6 wrapper: the TS 6 API that astro check,
|
||||
# typescript-eslint and svelte2tsx load (TS 7 ships none yet). TS 7 itself
|
||||
# is `@typescript/native` (an alias of typescript@7), whose `tsc` checks
|
||||
# the .ts files. Majors of either are a decision, not a weekly bump.
|
||||
# Dependabot's handling of `npm:` aliases is unproven here — ⚠ verify on
|
||||
# the first Monday run after the switch.
|
||||
- dependency-name: typescript
|
||||
update-types: ['version-update:semver-major']
|
||||
- dependency-name: '@typescript/native'
|
||||
update-types: ['version-update:semver-major']
|
||||
# The Node typings track the Node major in .nvmrc (26), not the newest
|
||||
# Node: a newer @types/node types APIs the runtime does not have. Bump
|
||||
# both together when .nvmrc moves (docs/01 §5 rule 4).
|
||||
- dependency-name: '@types/node'
|
||||
update-types: ['version-update:semver-major']
|
||||
commit-message:
|
||||
prefix: 'fix(deps)'
|
||||
prefix-development: 'chore(deps)'
|
||||
|
||||
# Workflow actions are pinned to full commit SHAs (SonarCloud S7637); this
|
||||
# bumps the SHA and its `# vX.Y.Z` comment together.
|
||||
- package-ecosystem: github-actions
|
||||
directory: /
|
||||
schedule:
|
||||
interval: weekly
|
||||
day: monday
|
||||
time: '05:00'
|
||||
timezone: Asia/Ho_Chi_Minh
|
||||
cooldown:
|
||||
default-days: 2
|
||||
groups:
|
||||
actions:
|
||||
patterns: ['*']
|
||||
commit-message:
|
||||
prefix: 'ci'
|
||||
@@ -1,252 +0,0 @@
|
||||
# docs/12 §2 — self-contained, deliberately.
|
||||
#
|
||||
# This called `poli0981/.github` → `reusable-web-react.yml` and every run ended
|
||||
# in `startup_failure`. Two reasons, both worth recording:
|
||||
#
|
||||
# 1. That workflow's Pages-deploy job declares `pages: write` and
|
||||
# `id-token: write`. A called workflow may not request permissions the
|
||||
# caller lacks, so GitHub rejects the ENTIRE run before anything executes —
|
||||
# even though the job is skipped by `deploy-pages: false`. Granting them
|
||||
# would mean handing a Workers-deployed site the ability to mint OIDC
|
||||
# tokens it never uses.
|
||||
#
|
||||
# 2. It runs lint / typecheck / test only *if a matching package script
|
||||
# exists*. Rename a script and CI quietly stops checking while still going
|
||||
# green. This project's gates ARE the product — and this repo has already
|
||||
# shipped four separate silent no-ops (a dead set:html lint rule, workbox
|
||||
# globs matching nothing, an unregistered service worker, CSP-dropped
|
||||
# inline styles). A silently-skipping CI is the wrong tool here.
|
||||
#
|
||||
# The duplicated "logic" is a handful of pnpm invocations. That is a fair
|
||||
# price for a gate that fails loudly.
|
||||
#
|
||||
# Every `uses:` is pinned to a full commit SHA with the release tag in a
|
||||
# comment (SonarCloud githubactions:S7637). Dependabot's github-actions
|
||||
# ecosystem bumps the SHA and the comment together.
|
||||
name: ci
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [main]
|
||||
# Lets quarantine.yml and vt-recheck.yml run the required checks on the PRs
|
||||
# they open. A PR created with GITHUB_TOKEN gets `pull_request` runs that
|
||||
# wait for a maintainer's approval (GitHub, since 2026-06-11); a
|
||||
# `workflow_dispatch` always runs (docs/12 §4).
|
||||
workflow_dispatch:
|
||||
|
||||
# Explicit least privilege. This repository's default workflow token is
|
||||
# read-WRITE (Settings → Actions → Workflow permissions), so a workflow
|
||||
# without this block would get far more than it needs.
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 25
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
# No `version:` — the action reads package.json `packageManager`
|
||||
# (pnpm@11.x), so CI, Dependabot, Workers Builds and laptops all run the
|
||||
# same pnpm. 6.0.10+ bootstraps with pnpm 11, which is what silenced the
|
||||
# "pnpm v10 installation layout at PNPM_HOME" warning on every run.
|
||||
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
cache: pnpm
|
||||
- run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Lint & format
|
||||
run: pnpm lint
|
||||
- name: Types
|
||||
run: pnpm check
|
||||
# `coverage` IS the unit run (vitest run --coverage): one pass, and it
|
||||
# fails below the thresholds in vitest.config.ts.
|
||||
- name: Unit tests (with coverage thresholds)
|
||||
run: pnpm coverage
|
||||
# `pnpm build` is the SAME command Cloudflare Workers Builds runs, and it
|
||||
# carries its own gates: data + i18n before `astro build`, the CSP and
|
||||
# service-worker checks on dist/ after it (package.json). Running the
|
||||
# composite here means CI and production can never diverge on what
|
||||
# "a good build" means.
|
||||
- name: Build (with data, i18n, CSP and service-worker gates)
|
||||
run: pnpm build
|
||||
# Bundles worker/ and validates wrangler.jsonc (bindings, assets,
|
||||
# run_worker_first) exactly as Workers Builds will, without credentials
|
||||
# or a deploy. A config error then fails here instead of in production.
|
||||
- name: Worker bundle (wrangler deploy --dry-run)
|
||||
run: pnpm exec wrangler deploy --dry-run --outdir "$RUNNER_TEMP/worker"
|
||||
- name: Dead code
|
||||
run: pnpm knip
|
||||
|
||||
# End-to-end on the build above (docs/11): every page type in both
|
||||
# locales and colour schemes, desktop + mobile, failing on any console
|
||||
# error, CSP violation or serious axe finding. The browser download is
|
||||
# ~150 MB and versioned with @playwright/test, so it is cached per
|
||||
# version; on a hit only the OS libraries still need installing.
|
||||
- name: Playwright version
|
||||
id: pw
|
||||
run: echo "version=$(pnpm exec playwright --version | awk '{print $2}')" >> "$GITHUB_OUTPUT"
|
||||
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||
id: pw-cache
|
||||
with:
|
||||
path: ~/.cache/ms-playwright
|
||||
key: playwright-${{ runner.os }}-${{ steps.pw.outputs.version }}
|
||||
- name: Install Chromium
|
||||
if: steps.pw-cache.outputs.cache-hit != 'true'
|
||||
run: pnpm exec playwright install --with-deps chromium
|
||||
- name: Install Chromium system libraries
|
||||
if: steps.pw-cache.outputs.cache-hit == 'true'
|
||||
run: pnpm exec playwright install-deps chromium
|
||||
- name: End-to-end (Playwright + axe on the built site)
|
||||
run: pnpm e2e
|
||||
- name: Upload the Playwright report
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: playwright-report
|
||||
path: playwright-report/
|
||||
retention-days: 7
|
||||
|
||||
gates:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
fetch-depth: 0 # the changed-links step diffs against the PR base
|
||||
persist-credentials: false
|
||||
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
cache: pnpm
|
||||
- run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Data rules (L2)
|
||||
run: pnpm validate:data
|
||||
- name: EN/VI key parity (hard rule 6)
|
||||
run: pnpm i18n:check
|
||||
|
||||
# The action lives in a SUBDIRECTORY of the repo and there is no rolling
|
||||
# `v2` tag — only full versions. `…/osv-scanner-action@v2` does not
|
||||
# resolve.
|
||||
- name: Vulnerability scan
|
||||
uses: google/osv-scanner-action/osv-scanner-action@b1d267aea5211fa648d9d442fa64b90dbdcbdd36 # v2.7.0
|
||||
with:
|
||||
scan-args: |-
|
||||
--lockfile=pnpm-lock.yaml
|
||||
- name: Audit production deps
|
||||
run: pnpm audit --prod
|
||||
|
||||
# PR-time link check over the links a PR adds or edits — the URLs on the
|
||||
# diff's added lines — not every link in every touched file: a re-check
|
||||
# PR that rewrote 198 security blocks once had to re-verify ~700
|
||||
# unrelated vendor links, and one vendor's bad minute blocked it.
|
||||
# link-check.yml owns the weekly full sweep (docs/12 §5). git runs HERE,
|
||||
# under pipefail, so a failed diff stops the job instead of silently
|
||||
# narrowing the check.
|
||||
- name: Collect changed official links
|
||||
id: urls
|
||||
if: github.event_name == 'pull_request'
|
||||
env:
|
||||
BASE_REF: ${{ github.base_ref }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git diff -U0 "origin/${BASE_REF}...HEAD" -- src/data/apps \
|
||||
| node scripts/extract-urls.mjs --added > /tmp/urls.txt
|
||||
count=$(grep -c . /tmp/urls.txt || true)
|
||||
echo "count=$count" >> "$GITHUB_OUTPUT"
|
||||
echo "$count changed URL(s) to check"
|
||||
# Accepting 403/429 is about bot mitigation, not about being lenient.
|
||||
# Seeding the catalogue put ~1 150 vendor URLs through here and 14 came
|
||||
# back 403 from sites that are plainly alive (winehq.org, dolphin-emu.org,
|
||||
# rpcs3.net, gitlab.com, MSI, Nexus Mods, Epic, Enpass). A checker that
|
||||
# cries wolf on a seventh of the catalogue teaches everyone to ignore it,
|
||||
# which costs more than the 403 it would one day be right about.
|
||||
# 404/500/connection failures — the codes that actually mean "gone" —
|
||||
# still fail the build.
|
||||
#
|
||||
# Do NOT add `--user-agent`. Spoofing a browser was tried and made things
|
||||
# worse, not better: it cleared the 403s but gitlab.gnome.org started
|
||||
# answering 406 and whatsapp.com 400, both of which pass fine on lychee's
|
||||
# default agent. There is no single UA every vendor is happy with, so the
|
||||
# status-code accepts carry this on their own.
|
||||
#
|
||||
# Skipped when the PR changes no app data — lychee treats an empty input
|
||||
# as a configuration error and fails. A code-only PR legitimately has
|
||||
# zero URLs to check. Skipping rather than `failIfEmpty: false` keeps the
|
||||
# zero visible: a skipped step is obvious in the checks list, whereas a
|
||||
# green "0 links" is exactly the kind of quiet pass this repo keeps
|
||||
# getting caught by.
|
||||
- name: Link check
|
||||
if: github.event_name == 'pull_request' && steps.urls.outputs.count != '0'
|
||||
uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2.9.0
|
||||
with:
|
||||
args: >-
|
||||
--max-concurrency 4 --retry-wait-time 5 --max-retries 4 --timeout 45
|
||||
--accept '200..=299,403,429'
|
||||
/tmp/urls.txt
|
||||
|
||||
# docs/12 §2 — SonarQube Cloud, CI-based analysis (sonar-project.properties).
|
||||
# Deliberately NOT a required check: a Sonar outage must never block a
|
||||
# merge, and a failing quality gate still turns this job red on the PR
|
||||
# (`sonar.qualitygate.wait`).
|
||||
#
|
||||
# The `if:` may only read the `github` context. A `secrets` reference there
|
||||
# makes the WHOLE workflow invalid — and then `build` and `gates`, which are
|
||||
# required, never appear. Runs that would lack SONAR_TOKEN are skipped
|
||||
# instead: Dependabot (its secrets are a separate store), pull requests from
|
||||
# forks, and the bot data PRs that quarantine.yml / vt-recheck.yml dispatch
|
||||
# CI on (`workflow_dispatch`, or `pull_request` runs a maintainer approves).
|
||||
sonar:
|
||||
if: >-
|
||||
github.event_name != 'workflow_dispatch' &&
|
||||
github.actor != 'dependabot[bot]' &&
|
||||
github.actor != 'github-actions[bot]' &&
|
||||
(github.event_name != 'pull_request' ||
|
||||
github.event.pull_request.head.repo.full_name == github.repository)
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
# Blame and the new-code period come from history: a shallow clone
|
||||
# makes Sonar attribute old lines to the latest commit.
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
cache: pnpm
|
||||
- run: pnpm install --frozen-lockfile
|
||||
|
||||
# The same unit run as the build job's; Sonar reads coverage/lcov.info.
|
||||
- name: Unit tests (coverage report)
|
||||
run: pnpm coverage
|
||||
# "Previous version" is this project's new-code period, so each analysis
|
||||
# carries package.json's version: new code on main is then everything
|
||||
# since the last release instead of everything since the first scan.
|
||||
- name: Project version
|
||||
id: version
|
||||
run: echo "version=$(node -p "require('./package.json').version")" >> "$GITHUB_OUTPUT"
|
||||
# scannerVersion pins the newest SonarScanner CLI (the action's default
|
||||
# trails it); the action verifies the download's signature.
|
||||
- name: SonarQube Cloud scan
|
||||
uses: SonarSource/sonarqube-scan-action@e805d875275f728fac1885b413934be6d7c63f65 # v8.4.1
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
with:
|
||||
scannerVersion: 8.3.1.16491
|
||||
args: >-
|
||||
-Dsonar.projectVersion=${{ steps.version.outputs.version }}
|
||||
-Dsonar.qualitygate.wait=true
|
||||
@@ -1,42 +0,0 @@
|
||||
# docs/12 §2. reusable-codeql.yml DOES exist in the ops repo (verified).
|
||||
name: codeql
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
# `pull_request` is REQUIRED, not optional. Branch protection lists
|
||||
# `codeql / Analyze (javascript-typescript)` as a required status check, and
|
||||
# a required check that the workflow never produces on a PR is unsatisfiable
|
||||
# — it deadlocks the repo: no PR can ever merge (hit 2026-07-30).
|
||||
#
|
||||
# It is also the point of the tool. Scanning only after the merge tells you
|
||||
# about a vulnerability that is already on main.
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '31 3 * * 1'
|
||||
# quarantine.yml and vt-recheck.yml dispatch this on the PRs they open: a
|
||||
# GITHUB_TOKEN-created PR's pull_request runs wait for approval (GitHub,
|
||||
# since 2026-06-11), so the required check would not appear on its own.
|
||||
workflow_dispatch:
|
||||
|
||||
# Required matrix — security-events: write is what lets results upload.
|
||||
# Must be a SUPERSET of what the reusable workflow's jobs declare — a called
|
||||
# workflow cannot request a permission the caller lacks, and the run is
|
||||
# rejected at startup if it tries. `packages: read` is the easy one to miss:
|
||||
# it is there so CodeQL can fetch internal query packs.
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
packages: read
|
||||
security-events: write
|
||||
|
||||
jobs:
|
||||
codeql:
|
||||
# First-party org workflow, deliberately tracked at @main so org-wide fixes
|
||||
# land everywhere at once. Third-party actions are SHA-pinned instead.
|
||||
uses: poli0981/.github/.github/workflows/reusable-codeql.yml@main
|
||||
with:
|
||||
# A JSON ARRAY STRING, not a bare value — the reusable workflow feeds it
|
||||
# to fromJSON() for its matrix. `javascript-typescript` on its own throws
|
||||
# and the run dies with startup_failure before any step executes.
|
||||
languages: '["javascript-typescript"]'
|
||||
@@ -1,81 +0,0 @@
|
||||
# docs/12 §5 — weekly full sweep of every official link in the dataset.
|
||||
# PR-time checking covers only changed files, inside ci.yml's `gates` job.
|
||||
#
|
||||
# ONE tracking issue, not one per week. The previous version called
|
||||
# create-issue-from-file on every red run, which left 12 duplicate
|
||||
# "link-check: broken official links" issues open (#7–#20) — the latest of
|
||||
# them for a single transient 502. Now the open issue is refreshed in place,
|
||||
# and closed automatically the first week the sweep comes back clean.
|
||||
name: link-check
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '43 4 * * 1'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
|
||||
concurrency:
|
||||
group: link-check
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
lychee:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
# extract-urls.mjs is plain Node, but it should run on the project's
|
||||
# Node (.nvmrc), not whatever the runner image happens to ship.
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
- run: node scripts/extract-urls.mjs > /tmp/urls.txt
|
||||
|
||||
- id: lychee
|
||||
uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2.9.0
|
||||
with:
|
||||
# Kept in step with ci.yml's PR sweep — see the note there for why
|
||||
# 403/429 are accepted. More retries with a longer wait than before:
|
||||
# vendor sites blip (inkscape.org's 502 opened #20 on its own), and
|
||||
# a weekly job has the time to ride that out.
|
||||
args: >-
|
||||
--max-concurrency 4 --retry-wait-time 10 --max-retries 5 --timeout 45
|
||||
--accept '200..=299,403,429'
|
||||
/tmp/urls.txt
|
||||
output: ./lychee/out.md
|
||||
# Link rot is triage, not a build break — it updates an issue instead.
|
||||
fail: false
|
||||
|
||||
- name: Refresh the tracking issue
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
EXIT_CODE: ${{ steps.lychee.outputs.exit_code }}
|
||||
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
title='link-check: broken official links'
|
||||
existing=$(gh issue list --repo "$GITHUB_REPOSITORY" --label link-rot --state open \
|
||||
--json number,title --jq "map(select(.title == \"$title\")) | .[0].number // empty")
|
||||
|
||||
if [ "$EXIT_CODE" != "0" ]; then
|
||||
if [ -n "$existing" ]; then
|
||||
gh issue edit "$existing" --repo "$GITHUB_REPOSITORY" --body-file ./lychee/out.md
|
||||
gh issue comment "$existing" --repo "$GITHUB_REPOSITORY" \
|
||||
--body "Still failing in $RUN_URL — the report above was refreshed."
|
||||
echo "Refreshed #$existing"
|
||||
else
|
||||
gh issue create --repo "$GITHUB_REPOSITORY" --title "$title" \
|
||||
--label link-rot --body-file ./lychee/out.md
|
||||
fi
|
||||
elif [ -n "$existing" ]; then
|
||||
gh issue close "$existing" --repo "$GITHUB_REPOSITORY" \
|
||||
--comment "Every official link resolved in $RUN_URL. Closing; the next failure reopens a fresh report."
|
||||
echo "Closed #$existing"
|
||||
else
|
||||
echo "All links healthy; nothing to report."
|
||||
fi
|
||||
@@ -1,33 +0,0 @@
|
||||
# docs/12 §2 — tagged release → Discord.
|
||||
#
|
||||
# Scope note: announce-release.yml reaches DISCORD ONLY. The multi-platform
|
||||
# notify.py cross-poster consumes /rss.xml on its own cron in its own repo
|
||||
# (docs/03 §7, docs/13 §5), so per-app announcements need no workflow here —
|
||||
# only a valid, deterministic feed.
|
||||
name: notify
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: Release tag to (re-)announce, e.g. v1.1.0
|
||||
required: true
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
announce:
|
||||
uses: poli0981/.github/.github/workflows/announce-release.yml@main
|
||||
with:
|
||||
# The reusable workflow reads `tag_override`, falling back to the
|
||||
# release event's tag. This input was never passed before, so every
|
||||
# manual re-run died with "No release tag available."
|
||||
tag_override: ${{ inputs.tag || '' }}
|
||||
# Only what the announcement needs, instead of `secrets: inherit`
|
||||
# handing every repository secret to code tracked at @main.
|
||||
secrets:
|
||||
DISCORD_RELEASES_WEBHOOK: ${{ secrets.DISCORD_RELEASES_WEBHOOK }}
|
||||
@@ -1,102 +0,0 @@
|
||||
# docs/12 §2 — Qodana (D35): JetBrains' WebStorm-based analysis, the third
|
||||
# analyser beside CodeQL (a required check) and SonarQube Cloud (ci.yml
|
||||
# `sonar`). Scope and the quality gate live in qodana.yaml.
|
||||
#
|
||||
# Deliberately NOT a required check: a Qodana Cloud outage, or a licence that
|
||||
# lapses, must never block a merge. A failing gate still turns this run red on
|
||||
# the PR, and the findings land in GitHub code scanning beside CodeQL's.
|
||||
#
|
||||
# Every `uses:` is pinned to a full commit SHA with the release tag in a
|
||||
# comment (SonarCloud githubactions:S7637); Dependabot's github-actions
|
||||
# ecosystem bumps both together. The action's release line also selects the
|
||||
# linter version (2026.2.x → qodana-js 2026.2).
|
||||
name: qodana
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
qodana:
|
||||
# The same guard as ci.yml `sonar`, for the same reason: runs that would
|
||||
# lack QODANA_TOKEN are skipped — Dependabot (its secrets are a separate
|
||||
# store), pull requests from forks, and the bot data PRs. The `if:` may
|
||||
# read only the `github` context; a `secrets` reference here would make the
|
||||
# whole workflow invalid.
|
||||
if: >-
|
||||
github.actor != 'dependabot[bot]' &&
|
||||
github.actor != 'github-actions[bot]' &&
|
||||
(github.event_name != 'pull_request' ||
|
||||
github.event.pull_request.head.repo.full_name == github.repository)
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
permissions:
|
||||
contents: read
|
||||
checks: write # the action's annotations
|
||||
pull-requests: write # its summary comment on the PR
|
||||
security-events: write # the SARIF upload to code scanning
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
# A PR's own head commit rather than the merge commit, so each
|
||||
# Qodana Cloud report points at a commit that exists on the branch.
|
||||
# Empty on push and dispatch, where the default ref is right.
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
cache: pnpm
|
||||
# Native mode (qodana.yaml) analyses on this runner: imports resolve
|
||||
# against this install, on the Node from .nvmrc.
|
||||
- run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Qodana scan
|
||||
uses: JetBrains/qodana-action@3e8d76ff0e0241618abd808682f426afe84bab3f # v2026.2.2
|
||||
with:
|
||||
# The whole project on every run, PRs included — a change can break
|
||||
# a file it does not touch.
|
||||
pr-mode: false
|
||||
# SARIF, HTML report and logs as the `qodana-report` artifact.
|
||||
upload-result: true
|
||||
# Each cache is keyed by commit; saving one per PR push would crowd
|
||||
# the repository's 10 GB cache budget (and the Playwright cache).
|
||||
cache-default-branch-only: true
|
||||
env:
|
||||
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
|
||||
QODANA_ENDPOINT: https://qodana.cloud
|
||||
|
||||
# Also when the gate failed — that is when the alerts matter — but only
|
||||
# if the scan got far enough to write its results.
|
||||
- name: Find the SARIF
|
||||
id: sarif
|
||||
if: ${{ !cancelled() }}
|
||||
run: |
|
||||
if [ -f "$RUNNER_TEMP/qodana/results/qodana.sarif.json" ]; then
|
||||
echo "found=true" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "found=false" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
- name: Upload to GitHub code scanning
|
||||
if: ${{ !cancelled() && steps.sarif.outputs.found == 'true' }}
|
||||
uses: github/codeql-action/upload-sarif@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
|
||||
with:
|
||||
# No `category:` — Qodana's SARIF carries its own automation id
|
||||
# (`<project>/qodana/<date>`), which outranks it: code scanning
|
||||
# files these results as tool QDJS, category softharbor/qodana.
|
||||
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json
|
||||
# The commit that was analysed: on a PR its head (checked out
|
||||
# above), not the merge ref that code scanning would assume.
|
||||
ref: ${{ github.event_name == 'pull_request' && format('refs/pull/{0}/head', github.event.pull_request.number) || github.ref }}
|
||||
sha: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||
@@ -1,123 +0,0 @@
|
||||
# docs/12 §4 — enforces hard rule 5 mechanically.
|
||||
#
|
||||
# Runs on data pushes AND nightly. The nightly cron re-checks main so a
|
||||
# flagged entry that slipped past review is moved within a day — as a PR, not
|
||||
# a push to main, so a human stays in the loop and the ruleset's required
|
||||
# checks still apply.
|
||||
#
|
||||
# Fixed 2026-10-21 (audit):
|
||||
# - A PR opened with GITHUB_TOKEN triggered no `pull_request` workflows, so
|
||||
# its required checks (build, gates, codeql) never ran and it could not
|
||||
# merge. The job dispatches ci.yml and codeql.yml on the PR branch —
|
||||
# `workflow_dispatch` always runs. (Since GitHub's 2026-06-11 change such
|
||||
# a PR does get `pull_request` runs, but they wait for a maintainer's
|
||||
# approval, so the dispatch is still what makes the checks appear.)
|
||||
# - The ruleset requires signed commits: create-pull-request now signs via the
|
||||
# API (`sign-commits`).
|
||||
# - Every nightly run re-opened `[quarantine] <slug>` issues while the PR was
|
||||
# pending; issues are now created only when none is open.
|
||||
# - Step outputs no longer reach `run:`/`script:` bodies through `${{ }}`
|
||||
# (expression injection); they pass through `env:` and slugs are validated.
|
||||
name: quarantine
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths: ['src/data/apps/**']
|
||||
schedule:
|
||||
- cron: '17 2 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: quarantine
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
sweep:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
permissions:
|
||||
contents: write # create-pull-request commits to quarantine/auto
|
||||
pull-requests: write # …and opens the PR
|
||||
issues: write # tracking issue per slug
|
||||
actions: write # dispatch the required checks onto the PR branch
|
||||
steps:
|
||||
# No persisted token while repository code (quarantine.mjs) runs;
|
||||
# create-pull-request authenticates with its own `token` input.
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
|
||||
- id: sweep
|
||||
run: node scripts/quarantine.mjs
|
||||
|
||||
# NOTE: requires Settings → Actions → General → "Allow GitHub Actions to
|
||||
# create and approve pull requests" (action item H10 — enabled).
|
||||
- id: cpr
|
||||
if: steps.sweep.outputs.moved != ''
|
||||
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
|
||||
with:
|
||||
branch: quarantine/auto
|
||||
sign-commits: true
|
||||
title: 'data: quarantine flagged entries'
|
||||
commit-message: 'data: quarantine ${{ steps.sweep.outputs.moved }}'
|
||||
labels: security, quarantine
|
||||
body: |
|
||||
Automated sweep: entries with `security.status: "flagged"` were
|
||||
moved to `data/quarantine/`, which is outside the content glob, so
|
||||
they stop rendering on the next build (docs/03 §5).
|
||||
|
||||
Nothing was deleted. Restoring is a `git mv` plus a status edit;
|
||||
the reason and evidence live in the linked tracking issue.
|
||||
|
||||
- name: Run the required checks on the PR branch
|
||||
if: steps.cpr.outputs.pull-request-branch != ''
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
BRANCH: ${{ steps.cpr.outputs.pull-request-branch }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
gh workflow run ci.yml --repo "$GITHUB_REPOSITORY" --ref "$BRANCH"
|
||||
gh workflow run codeql.yml --repo "$GITHUB_REPOSITORY" --ref "$BRANCH"
|
||||
|
||||
- name: Open one tracking issue per newly quarantined slug
|
||||
if: steps.sweep.outputs.moved != ''
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
MOVED: ${{ steps.sweep.outputs.moved }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
for slug in $MOVED; do
|
||||
# Same shape validate:data enforces on filenames; anything else is
|
||||
# not ours and must not reach a shell command or issue title.
|
||||
if ! [[ "$slug" =~ ^[a-z0-9]+(-[a-z0-9]+)*$ ]]; then
|
||||
echo "::warning::skipping unexpected slug '$slug'"
|
||||
continue
|
||||
fi
|
||||
title="[quarantine] $slug"
|
||||
open=$(gh issue list --repo "$GITHUB_REPOSITORY" --label quarantine --state open \
|
||||
--json title --jq "map(select(.title == \"$title\")) | length")
|
||||
if [ "$open" != "0" ]; then
|
||||
echo "#$title already tracked"
|
||||
continue
|
||||
fi
|
||||
gh issue create --repo "$GITHUB_REPOSITORY" --title "$title" \
|
||||
--label security --label quarantine --body-file - <<EOF
|
||||
\`$slug\` was flagged and moved to \`data/quarantine/\`.
|
||||
|
||||
Record here before closing:
|
||||
- [ ] Reason it was flagged
|
||||
- [ ] Evidence link (VirusTotal / vendor advisory)
|
||||
- [ ] Date checked
|
||||
- [ ] Whether users were plausibly exposed (docs/13 §7)
|
||||
|
||||
Restoring is a reviewed PR: status back to \`clean\`/\`unverified\`,
|
||||
a fresh \`checkedAt\`, and the file moved back (docs/03 §5).
|
||||
EOF
|
||||
done
|
||||
@@ -0,0 +1,31 @@
|
||||
<!-- GitLab version of .github/ISSUE_TEMPLATE/accessibility.yml. Thank you — accessibility reports
|
||||
are treated as expertise, not complaints. You never need to tell us about a disability, and
|
||||
everything but the first two sections is optional. Prefer e-mail? Write to
|
||||
accessibility@poli0981.dev (no account needed). English or Vietnamese is fine. What happens next:
|
||||
https://git.poli0981.dev/poli0981/softharbor/src/branch/main/ACCESSIBILITY.md#how-we-respond -->
|
||||
|
||||
### What were you trying to do, and what got in the way?
|
||||
|
||||
<!-- e.g. "I could not reach the Filters button with Tab", or "NVDA reads the search box as
|
||||
'edit' with no name". -->
|
||||
|
||||
### Page address
|
||||
|
||||
<!-- https://softharbor.net/apps -->
|
||||
|
||||
### Steps to reproduce (optional)
|
||||
|
||||
### Device, operating system, browser and assistive technology (optional)
|
||||
|
||||
<!-- e.g. Windows 11, Firefox, NVDA -->
|
||||
|
||||
### How much does it get in your way? (optional)
|
||||
|
||||
- [ ] Critical — I cannot find an app, read a listing, or open its links
|
||||
- [ ] Serious — it is hard, but there is a way around it
|
||||
- [ ] Moderate — an annoyance or something inconsistent
|
||||
- [ ] Minor — barely affects me
|
||||
|
||||
### Screenshot or recording (optional)
|
||||
|
||||
/label ~accessibility
|
||||
@@ -0,0 +1,29 @@
|
||||
<!-- GitLab version of .github/ISSUE_TEMPLATE/app_request.yml. Suggest one app per issue. An
|
||||
accepted suggestion is credited in the README's Acknowledgements — say here if you would rather
|
||||
not be named. Inclusion criteria: https://git.poli0981.dev/poli0981/softharbor/src/branch/main/docs/00_PROJECT_OVERVIEW.md -->
|
||||
|
||||
### App name
|
||||
|
||||
### Official homepage (https)
|
||||
|
||||
<!-- The developer's own domain or official repository — not a download portal. -->
|
||||
|
||||
### Pricing
|
||||
|
||||
- [ ] Free
|
||||
- [ ] Free + optional one-time purchase
|
||||
- [ ] One-time purchase
|
||||
|
||||
### Platforms
|
||||
|
||||
- [ ] Windows
|
||||
- [ ] macOS
|
||||
- [ ] Linux
|
||||
|
||||
### Inclusion criteria (docs/00 §3)
|
||||
|
||||
- [ ] Not subscription-only — the free tier is self-sufficient, or it is a one-time purchase
|
||||
- [ ] The links above are the developer's official pages
|
||||
- [ ] Actively maintained, or stable-and-finished
|
||||
|
||||
/label ~app-request
|
||||
@@ -0,0 +1,23 @@
|
||||
<!-- GitLab version of .github/ISSUE_TEMPLATE/bug_report.yml (Gitea reads that one); keep both in
|
||||
step. The site's "Report a bug" link fills in this layout for you (src/lib/issueUrl.ts).
|
||||
Bugs are about this site — problems with a listed app go to its own developer. -->
|
||||
|
||||
### Page URL
|
||||
|
||||
<!-- https://softharbor.net/… -->
|
||||
|
||||
### What happened / expected
|
||||
|
||||
<!-- What did you do, what did you expect, and what happened instead? -->
|
||||
|
||||
### Browser & OS
|
||||
|
||||
<!-- e.g. Windows 11, Firefox 145 -->
|
||||
|
||||
### Console output
|
||||
|
||||
```shell
|
||||
(filled in by the site's "Report a bug" link; feel free to trim)
|
||||
```
|
||||
|
||||
/label ~bug
|
||||
@@ -0,0 +1,25 @@
|
||||
<!-- GitLab version of .github/ISSUE_TEMPLATE/listing_change.yml.
|
||||
A suspected MALICIOUS or HIJACKED download is a security report, not an issue: e-mail
|
||||
security@poli0981.dev (https://git.poli0981.dev/poli0981/softharbor/src/branch/main/SECURITY.md). Your own app? You can also write to
|
||||
takedown@poli0981.dev. -->
|
||||
|
||||
### Which app?
|
||||
|
||||
<!-- Its page on the site, or its name, e.g. https://softharbor.net/apps/7-zip -->
|
||||
|
||||
### What should change?
|
||||
|
||||
- [ ] Remove — it is now subscription-only, or no longer free / buy-once
|
||||
- [ ] Remove — abandoned, discontinued or unsafe to recommend
|
||||
- [ ] Correct a link — homepage, repository or download page moved
|
||||
- [ ] Correct a detail — pricing, licence, platforms, developer or summary
|
||||
- [ ] Re-check its security status (VirusTotal)
|
||||
|
||||
### Evidence
|
||||
|
||||
<!-- Links to the developer's own pages, an announcement, a changelog or a scan — the decision
|
||||
follows the evidence. -->
|
||||
|
||||
### Anything else
|
||||
|
||||
/label ~listing-change
|
||||
@@ -0,0 +1,43 @@
|
||||
<!-- GitLab version of .github/PULL_REQUEST_TEMPLATE.md. GitLab CI does not run on this mirror:
|
||||
the maintainer applies an accepted merge request on Gitea (https://git.poli0981.dev/poli0981/softharbor)
|
||||
and runs CI there; the mirror then shows it merged (or closed, with a link to the commit).
|
||||
Title: Conventional Commits, lowercase, imperative. One logical change per MR; for data, one
|
||||
app per MR unless a decision-log entry says otherwise. Maintenance mode (D36): fixes, data and
|
||||
upkeep only — feature MRs are closed. -->
|
||||
|
||||
## What and why
|
||||
|
||||
<!-- One or two sentences. Link the issue: "Closes #123". -->
|
||||
|
||||
## Checks
|
||||
|
||||
- [ ] A fix, a data change or upkeep — not a new feature
|
||||
([maintenance mode](https://git.poli0981.dev/poli0981/softharbor/src/branch/main/CONTRIBUTING.md#maintenance-mode))
|
||||
- [ ] `pnpm lint && pnpm check && pnpm coverage && pnpm build && pnpm knip && pnpm e2e` pass locally
|
||||
- [ ] Docs that describe the changed behaviour are updated (`docs/`, README, CHANGELOG for
|
||||
visitor-facing changes)
|
||||
- [ ] Every new UI string exists in both `src/i18n/en.json` and `src/i18n/vi.json`
|
||||
|
||||
## Accessibility ([ACCESSIBILITY.md](https://git.poli0981.dev/poli0981/softharbor/src/branch/main/ACCESSIBILITY.md))
|
||||
|
||||
Tick what applies, or write "no UI change".
|
||||
|
||||
- [ ] Keyboard only: every control reachable in a sensible order, focus always visible,
|
||||
no traps, Esc closes what it opened
|
||||
- [ ] Names and states: each control's accessible name matches its visible label;
|
||||
expanded / selected / checked states are announced
|
||||
- [ ] Screen-reader spot check (Narrator, NVDA or VoiceOver) for new or changed components
|
||||
- [ ] Nothing by colour alone; contrast holds in light and dark; forced colours still
|
||||
show the state
|
||||
- [ ] 200 % zoom and 320 px width: nothing cut off, no sideways scroll outside tables
|
||||
- [ ] Motion respects reduced-motion (system and the display menu)
|
||||
|
||||
## Data MRs only
|
||||
|
||||
- [ ] Checked against the inclusion criteria (docs/00 §3) and the vetting checklist
|
||||
(docs/09 §6)
|
||||
- [ ] Summaries written from scratch in English **and** Vietnamese
|
||||
- [ ] New entries start `unverified` with `evidence: null`; only the maintainer moves one
|
||||
to `clean`
|
||||
- [ ] Links are the developer's own domain or official repository — no portals, no
|
||||
tracking parameters
|
||||
@@ -0,0 +1,13 @@
|
||||
# gitleaks, run by the ops repo's security.yml, scans every commit with its
|
||||
# default rules (docs/12 §2). Each line below is one finding that is NOT a
|
||||
# secret, as commit:file:rule:line, with the reason above it. A real secret
|
||||
# never goes here: it is rotated, and the history is dealt with. Describe a
|
||||
# finding in words here — quoting it would be a finding of its own.
|
||||
|
||||
# The SonarQube Cloud project key on line 5 of sonar-project.properties — a
|
||||
# public identifier shown in every Sonar URL, not a credential. The file left
|
||||
# with SonarQube Cloud (D38); the history keeps it.
|
||||
4351fffaaee75328b53a8cc1a97f5dbeb04bfd7a:sonar-project.properties:generic-api-key:5
|
||||
|
||||
# The first version of this file quoted that same key in its comment.
|
||||
f404c6eaab82862e7e4d5ace4b744d4875a42118:.gitleaksignore:generic-api-key:6
|
||||
+5
-4
@@ -83,9 +83,10 @@ both languages for every UI string (hard rule 6).
|
||||
We treat accessibility reports as expertise, not complaints. You never need to tell us
|
||||
about a disability.
|
||||
|
||||
- **Email:** accessibility@poli0981.dev — no GitHub account needed.
|
||||
- **GitHub:** the
|
||||
[Accessibility issue form](https://github.com/poli0981/softharbor/issues/new?template=accessibility.yml).
|
||||
- **Email:** accessibility@poli0981.dev — no account needed.
|
||||
- **GitLab:** an issue on the project's mirror, with the
|
||||
[Accessibility template](https://gitlab.com/poli0981/softharbor/-/issues/new?issuable_template=Accessibility)
|
||||
(needs a GitLab account).
|
||||
|
||||
If you can, include the page address, what you were trying to do, what happened
|
||||
instead, and your operating system, browser and assistive technology with versions. A
|
||||
@@ -114,7 +115,7 @@ SoftHarbor is maintained by one person; these are commitments that can be kept.
|
||||
|
||||
## Ownership
|
||||
|
||||
Accessibility is owned by the maintainer, [@poli0981](https://github.com/poli0981):
|
||||
Accessibility is owned by the maintainer, [poli0981](https://git.poli0981.dev/poli0981):
|
||||
triaging reports, tracking known barriers, keeping this file and the site statement
|
||||
current, and re-reading both at each release.
|
||||
|
||||
|
||||
+48
-7
@@ -4,6 +4,43 @@ All notable changes to SoftHarbor. The site is continuously deployed; a
|
||||
version marks a release announced in the repository (docs/13). Dates are
|
||||
UTC.
|
||||
|
||||
## [1.5.0] — 2026-11-24
|
||||
|
||||
SoftHarbor's repository has moved from GitHub to the maintainer's own Gitea.
|
||||
The site now points there, bug reports go to the public GitLab mirror, and
|
||||
the legal notice asks you once more because the Privacy Policy changed.
|
||||
|
||||
### Privacy — what changed
|
||||
|
||||
- **"Report a bug" opens an issue on GitLab instead of GitHub.** The link
|
||||
still carries the page's address, your browser's user-agent string and
|
||||
recent error lines from this site, and now **GitLab** receives them as soon
|
||||
as you open it; nothing is filed until you review and submit the issue. The
|
||||
Privacy Policy and the Third-party page name GitLab instead of GitHub, so
|
||||
the legal notice asks everyone to accept it again.
|
||||
|
||||
### Changed
|
||||
|
||||
- **The source moved** (decision D38): the repository is
|
||||
`git.poli0981.dev/poli0981/softharbor`, and outside issues and merge
|
||||
requests go to its mirror, `gitlab.com/poli0981/softharbor`. The footer
|
||||
("Source code", "Releases"), the Contact page, the Accessibility
|
||||
Statement, the Disclaimer, Trademarks and Terms, the data licence,
|
||||
`security.txt` and the attribution in `/api/apps.json` all point there.
|
||||
Security problems are reported by e-mail only, to security@poli0981.dev.
|
||||
- Behind the scenes: production now deploys from the project's own CI once
|
||||
every check has passed; Renovate keeps dependencies current; gitleaks,
|
||||
Opengrep and osv-scanner replace CodeQL; SonarQube Cloud is gone. Nothing
|
||||
you see depends on this.
|
||||
- Dependencies: Astro 7.4.13, Svelte 5.59.1, Wrangler 4.166, Vitest 5.1.1,
|
||||
pnpm 11.29.0 and others. The one advisory exception the build carried
|
||||
(deepmerge) is gone: the advisory was withdrawn.
|
||||
|
||||
The same day, 15 apps joined the catalogue — Windows essentials such as
|
||||
qBittorrent, ScreenToGif, QuickLook and Flow Launcher, and Local AI tools
|
||||
such as AnythingLLM and Comfy Desktop (D39). As always, the RSS feed is
|
||||
where new apps are announced.
|
||||
|
||||
## [1.4.1] — 2026-11-15
|
||||
|
||||
SoftHarbor is now in **maintenance mode**: it does what it set out to do, so
|
||||
@@ -59,7 +96,10 @@ software.
|
||||
Optikey for typing and controlling the computer with your eyes, Balabolka
|
||||
and eSpeak NG for speech, Thorium Reader and Bookworm for reading, and
|
||||
Colour Contrast Analyser and Accessibility Insights for checking your own
|
||||
work. Also new: Orkas, a desktop AI workspace. 15 categories in all.
|
||||
work. Also new: Orkas, a desktop AI workspace, suggested by
|
||||
[@BlueSkyID666](https://github.com/BlueSkyID666) in
|
||||
[#65](https://github.com/poli0981/softharbor/issues/65). 15 categories in
|
||||
all.
|
||||
|
||||
### Changed
|
||||
|
||||
@@ -251,9 +291,10 @@ First public release: 326 apps in 12 categories, English and Vietnamese,
|
||||
official links only, dated security statuses with their scans linked. See the
|
||||
[release notes](https://github.com/poli0981/softharbor/releases/tag/v1.0.0).
|
||||
|
||||
[1.4.1]: https://github.com/poli0981/softharbor/releases/tag/v1.4.1
|
||||
[1.4.0]: https://github.com/poli0981/softharbor/releases/tag/v1.4.0
|
||||
[1.3.0]: https://github.com/poli0981/softharbor/releases/tag/v1.3.0
|
||||
[1.2.0]: https://github.com/poli0981/softharbor/releases/tag/v1.2.0
|
||||
[1.1.0]: https://github.com/poli0981/softharbor/releases/tag/v1.1.0
|
||||
[1.0.0]: https://github.com/poli0981/softharbor/releases/tag/v1.0.0
|
||||
[1.5.0]: https://git.poli0981.dev/poli0981/softharbor/releases/tag/v1.5.0
|
||||
[1.4.1]: https://git.poli0981.dev/poli0981/softharbor/releases/tag/v1.4.1
|
||||
[1.4.0]: https://git.poli0981.dev/poli0981/softharbor/releases/tag/v1.4.0
|
||||
[1.3.0]: https://git.poli0981.dev/poli0981/softharbor/releases/tag/v1.3.0
|
||||
[1.2.0]: https://git.poli0981.dev/poli0981/softharbor/releases/tag/v1.2.0
|
||||
[1.1.0]: https://git.poli0981.dev/poli0981/softharbor/releases/tag/v1.1.0
|
||||
[1.0.0]: https://git.poli0981.dev/poli0981/softharbor/releases/tag/v1.0.0
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
> Root instruction file for AI-assisted development (Claude Code).
|
||||
> Read this first. Detailed specs live in `docs/00–16`.
|
||||
> Suite version: 3.2 (2026-11-15, site v1.4.1) · Author: poli0981 / SkullMute
|
||||
> Suite version: 4.0 (2026-11-24, site v1.5.0) · Author: poli0981 / SkullMute
|
||||
|
||||
## What this project is
|
||||
|
||||
@@ -13,11 +13,13 @@ install (or macOS/Linux setup) you open one page, filter by category, and jump
|
||||
straight to each app's **official** homepage/repo/download page instead of
|
||||
googling every tool one by one.
|
||||
|
||||
- Repo: `poli0981/softharbor` · License: code **GPL-3.0-only**, data **CC BY-SA 4.0**
|
||||
- Repo: `poli0981/softharbor` on the owner's **Gitea**
|
||||
(`https://git.poli0981.dev/poli0981/softharbor`, see "Forge & CI" below) ·
|
||||
License: code **GPL-3.0-only**, data **CC BY-SA 4.0**
|
||||
- Hosting: **Cloudflare Workers Static Assets** on canonical
|
||||
**`https://softharbor.net`** (Free zone; `www` 301s to apex; workers.dev
|
||||
route disabled, PR previews only — see `docs/16`), deployed by Cloudflare
|
||||
Workers Builds when `main` changes. One tiny Worker runs the site-wide
|
||||
route disabled — see `docs/16`), deployed by the CI `deploy` job
|
||||
(`wrangler deploy`) when `main` changes. One tiny Worker runs the site-wide
|
||||
rate limit (D32) and answers `POST /api/verify` (D25); no backend, no
|
||||
database.
|
||||
- Stack: Node 26 · pnpm 11 · Astro 7 (static output) · Svelte 5 islands ·
|
||||
@@ -32,10 +34,12 @@ scope — and nothing else:
|
||||
1. **Catalogue** — add, correct or remove listings (one app per PR; the owner
|
||||
reviews the Vietnamese), VirusTotal re-checks, quarantine.
|
||||
2. **Fixes** — bugs, UI/UX defects and accessibility barriers.
|
||||
3. **Dependencies** — Dependabot's weekly PRs; out of schedule for any
|
||||
advisory rated **High or Critical**, or a serious Node.js security release.
|
||||
3. **Dependencies** — Renovate's PRs (grouped non-major, OSV security PRs);
|
||||
out of schedule for any advisory rated **High or Critical**, or a serious
|
||||
Node.js security release.
|
||||
4. **Major language / platform moves** — TypeScript (6 → 7), Astro, Svelte,
|
||||
Tailwind, Node, Cloudflare Workers / Wrangler majors.
|
||||
Tailwind, Node, Cloudflare Workers / Wrangler majors, the forge and its CI
|
||||
(D38).
|
||||
5. **Incidents** — the site down, degraded or under attack.
|
||||
|
||||
**Out of scope:** new features, including the frozen feature items of
|
||||
@@ -54,7 +58,7 @@ platform major; data changes never tag (`docs/13 §1`).
|
||||
check). It runs only for the paths in `assets.run_worker_first`, never
|
||||
renders or rewrites a page, never withholds one from a person reading at
|
||||
a normal pace, and every failure on its side must fail OPEN. Anything else
|
||||
that seems to need a server: redesign it or move it to a GitHub Actions
|
||||
that seems to need a server: redesign it or move it to a Gitea Actions
|
||||
workflow — a second Worker route, or a change to what runs it first,
|
||||
needs a decision-log entry.
|
||||
2. **Data is law.** Every listed app is exactly one JSON file in
|
||||
@@ -89,6 +93,38 @@ platform major; data changes never tag (`docs/13 §1`).
|
||||
scratch — never paste vendor marketing copy or Wikipedia text (data is
|
||||
CC BY-SA 4.0; provenance must be clean).
|
||||
|
||||
## Forge & CI (D38 — since 2026-11-24)
|
||||
|
||||
The GitHub account was suspended in November 2026. The repository lives on
|
||||
**Gitea**, `https://git.poli0981.dev/poli0981/softharbor`, as `origin`; the
|
||||
`github` remote is the old repository's — keep it, never push to it.
|
||||
|
||||
- **Outside issues and merge requests** arrive on the GitLab push mirror,
|
||||
`gitlab.com/poli0981/softharbor`, where no CI runs; patches come by e-mail
|
||||
to `code@`. Registration on the Gitea is closed.
|
||||
- **Workflows** are Gitea Actions in `.gitea/workflows/` (`ci`, `security`,
|
||||
`qodana`, `notify`, `quarantine`, `vt-recheck`, `link-check`) on one
|
||||
runner on the maintainer's PC: jobs run only while it is on, every cron
|
||||
sits inside **13:00–16:00 UTC** on a registered slot, and every action is
|
||||
pinned to a SHA. The ops repo's reusables are pinned by hand to an ops tag.
|
||||
- **Deploy** is `ci.yml`'s `deploy` job (`wrangler deploy` on pushes to
|
||||
`main`, Cloudflare secrets at user level); Workers Builds is gone and
|
||||
there are no PR previews.
|
||||
- **Bots** (quarantine, vt-recheck, link-check) talk to Gitea through
|
||||
`scripts/gitea.mjs` with the job token; they dispatch CI on their branch,
|
||||
and `ci.yml`'s `record` job writes the statuses a dispatched run lacks.
|
||||
- **Renovate** (`renovate.json` → `local>poli0981/renovate-config`) replaces
|
||||
Dependabot; the ops `security.yml` (gitleaks, Opengrep, osv-scanner)
|
||||
replaces CodeQL; Qodana runs through the ops `reusable-qodana.yml`;
|
||||
SonarQube Cloud and GitHub code scanning are gone.
|
||||
- **Rules:** branch protection on `main` requires `CI / build (*)` and
|
||||
`CI / gates (*)` (Gitea names a check `<workflow> / <job> (<event>)`, so
|
||||
renaming either breaks the rule); squash merges; signed commits are not
|
||||
required (the bots cannot sign).
|
||||
- **The migration runbook** is `docs/GITEA-MIGRATION.md` in
|
||||
`poli0981/.github` (`E:\.github` on the PC); for migration topics it wins
|
||||
over this file, and a conflict is reported. The details are in `docs/12`.
|
||||
|
||||
## Build phases
|
||||
|
||||
Work in order. Do not start a phase before the previous phase's exit
|
||||
@@ -101,7 +137,7 @@ criteria (`docs/15`) are met.
|
||||
| **P3 — Static pages** | Welcome, `/apps`, `/apps/[slug]`, `/categories/[id]`, layouts, tokens, fonts, dark mode (no JS yet) | 02, 06 |
|
||||
| **P4 — Islands** | Search/filter/sort (MiniSearch + nanostores), language switcher, theme toggle, legal gate | 05, 06, 07, 14 |
|
||||
| **P5 — Resilience & outputs** | 404/offline/PWA, dormant error templates, `/api/apps.json`, `/rss.xml`, bug-report button | 03, 05, 08 |
|
||||
| **P6 — Ship** | `_headers`, CI/CD wiring, deploy, seed the app catalogue (326 as of 2026-07-30; 364 after batch 2, 2026-10-23; 373 after batch 3, 2026-11-09), launch checklist | 09, 10, 12, 13 |
|
||||
| **P6 — Ship** | `_headers`, CI/CD wiring, deploy, seed the app catalogue (326 as of 2026-07-30; 364 after batch 2, 2026-10-23; 373 after batch 3, 2026-11-09; 390 after batch 4, 2026-11-24), launch checklist | 09, 10, 12, 13 |
|
||||
|
||||
All six phases are done — v1.0.0 shipped on 2026-07-30 — and no new phase
|
||||
opens: the project is in maintenance mode (above).
|
||||
@@ -121,7 +157,7 @@ pnpm e2e # playwright + axe against astro preview (build first)
|
||||
pnpm validate:data # node scripts/validate-data.mjs (L2 data rules)
|
||||
pnpm vt:recheck # VirusTotal re-check (needs VT_API_KEY; docs/12 §4b)
|
||||
pnpm i18n:check # node scripts/check-i18n-parity.mjs (EN/VI key parity)
|
||||
pnpm deploy # build + wrangler deploy (Workers Builds does this on main)
|
||||
pnpm deploy # build + wrangler deploy (CI's deploy job does this on main)
|
||||
```
|
||||
|
||||
## Naming & identifiers (locked)
|
||||
@@ -152,7 +188,7 @@ pnpm deploy # build + wrangler deploy (Workers Builds does this on m
|
||||
| `docs/09_SECURITY_PRIVACY.md` | Threat model, `_headers`/CSP, security.txt, data-vetting policy, privacy |
|
||||
| `docs/10_CODING_STANDARDS.md` | TS/ESLint/Prettier/Knip/lefthook, naming, commits, DoD |
|
||||
| `docs/11_TESTING.md` | Test pyramid, P0 spikes S1–S5, coverage targets |
|
||||
| `docs/12_CI_CD.md` | Workflows (ci incl. SonarQube Cloud / qodana / quarantine / vt-recheck / link-check), `poli0981/.github` wiring, issue forms |
|
||||
| `docs/12_CI_CD.md` | Gitea Actions: ci (build, gates, record, deploy) / security / qodana / notify / quarantine / vt-recheck / link-check, `scripts/gitea.mjs`, Renovate, issue templates, branch protection |
|
||||
| `docs/13_RELEASE.md` | Launch checklist, seed list, versioning, notify.py announcement |
|
||||
| `docs/14_LEGAL.md` | Licensing model, legal-gate spec, bilingual drafts (Disclaimer/Privacy/Terms/Trademarks/Third-party) |
|
||||
| `docs/15_ROADMAP.md` | Milestones, post-v1 backlog, decision log, open questions |
|
||||
|
||||
+37
-14
@@ -14,11 +14,31 @@ under **GPL-3.0-only**, dataset entries under **CC BY-SA 4.0**.
|
||||
- Contact: Code of Conduct reports **code@poli0981.dev**, licensing questions
|
||||
**copyright@poli0981.dev**; anything else, open an issue
|
||||
|
||||
## Where the project lives
|
||||
|
||||
- **Source:** [git.poli0981.dev/poli0981/softharbor](https://git.poli0981.dev/poli0981/softharbor), the canonical
|
||||
repository. It is read-only for everyone but the maintainer: registration on
|
||||
that Gitea is closed.
|
||||
- **Issues and merge requests:** the mirror,
|
||||
[gitlab.com/poli0981/softharbor](https://gitlab.com/poli0981/softharbor).
|
||||
Gitea pushes to it, so it is always current. Pick a template when you open an
|
||||
issue (App request, Listing change, Bug, Accessibility).
|
||||
- **Patches by e-mail:** `git format-patch` / `git send-email` to
|
||||
**code@poli0981.dev**, which is also the address for questions.
|
||||
|
||||
The maintainer applies an accepted change on Gitea; the mirror then updates
|
||||
GitLab, and the merge request shows as merged (or is closed, with a link to the
|
||||
commit, if its commits were squashed). **CI does not run on GitLab merge
|
||||
requests** — the mirror has its CI switched off. The maintainer runs CI on
|
||||
Gitea, so a merge request is checked when it is applied there.
|
||||
|
||||
The project moved from GitHub in November 2026 (D38); its old issues,
|
||||
discussions and pull requests did not move with the code.
|
||||
|
||||
## Maintenance mode
|
||||
|
||||
Since 2026-11-15 SoftHarbor is **maintained, not extended** — decision D36 in
|
||||
[docs/15 §4](docs/15_ROADMAP.md), announced in
|
||||
[Discussions](https://github.com/poli0981/softharbor/discussions/75).
|
||||
[docs/15 §4](docs/15_ROADMAP.md).
|
||||
|
||||
**Accepted** — issues and pull requests that:
|
||||
|
||||
@@ -27,8 +47,8 @@ Since 2026-11-15 SoftHarbor is **maintained, not extended** — decision D36 in
|
||||
- ask for or record a **security re-check** of a listing (VirusTotal)
|
||||
- fix a **bug**, or a **UI/UX** or **accessibility** problem on the site
|
||||
|
||||
The maintainer also keeps the platform current: dependency updates on
|
||||
Dependabot's weekly schedule — and out of schedule for a dependency with a
|
||||
The maintainer also keeps the platform current: dependency updates as
|
||||
Renovate proposes them — and out of schedule for a dependency with a
|
||||
**High or Critical** CVE or a serious Node.js security release — major
|
||||
language and platform updates (TypeScript, Astro, Cloudflare Workers /
|
||||
Wrangler), and incidents: the site down, degraded or under attack.
|
||||
@@ -40,7 +60,7 @@ the catalogue needs.
|
||||
|
||||
## Suggesting an app
|
||||
|
||||
Open an **App request** issue. Do not open a pull request for a new app before
|
||||
Open an **App request** issue on the GitLab mirror. Do not open a pull request for a new app before
|
||||
the request is accepted — the answer is a curation judgement, and a rejected PR
|
||||
wastes more of your time than a rejected issue.
|
||||
|
||||
@@ -55,6 +75,9 @@ An app is listable only when all of these hold ([docs/00 §3](docs/00_PROJECT_OV
|
||||
- Maintained, or finished and stable. Not abandonware with open vulnerabilities
|
||||
- No bundled adware in the official installer; nothing piracy-adjacent
|
||||
|
||||
An accepted suggestion is credited in the README's Acknowledgements — tell us
|
||||
in the request if you would rather not be named.
|
||||
|
||||
## Removing or correcting a listing
|
||||
|
||||
Open a **Listing change** issue when an app went subscription-only, was
|
||||
@@ -69,8 +92,8 @@ quarantined rather than deleted (docs/03 §5), so the record of why stays.
|
||||
|
||||
## Reporting a bug
|
||||
|
||||
Use the **Bug report** form, or the "Report a bug" button on any app page —
|
||||
it pre-fills the details. Bugs are about _this site_. We cannot help with the
|
||||
Use the **Bug** issue template on the GitLab mirror, or the "Report a bug"
|
||||
link in the site's footer — it pre-fills the details. Bugs are about _this site_. We cannot help with the
|
||||
software we link to; take that to its own developer. Something that is hard to
|
||||
use counts too: UI/UX problems and accessibility barriers
|
||||
([ACCESSIBILITY.md](ACCESSIBILITY.md)) are bugs here.
|
||||
@@ -84,8 +107,8 @@ use counts too: UI/UX problems and accessibility barriers
|
||||
changelog entry, so it has to stand alone.
|
||||
4. Fill in the pull request template — its accessibility checklist applies to
|
||||
any change a visitor can see or operate.
|
||||
5. Run every gate before pushing. CI runs the same ones and they are not
|
||||
advisory:
|
||||
5. Run every gate before sending it. CI runs the same ones on Gitea and they
|
||||
are not advisory:
|
||||
|
||||
```bash
|
||||
pnpm lint && pnpm check && pnpm coverage && pnpm build && pnpm knip && pnpm e2e
|
||||
@@ -109,7 +132,7 @@ download page and records the permalink, and only the maintainer moves an
|
||||
entry to `clean` (docs/09 §6). If you change an existing entry's
|
||||
`links.download`, the old scan no longer describes it — say so in the PR.
|
||||
|
||||
If you are unsure whether something is wanted, ask in a discussion first. A
|
||||
If you are unsure whether something is wanted, ask by e-mail (code@) first. A
|
||||
short question costs everyone less than a large rejected PR — and new features
|
||||
are not wanted while the project is in [maintenance mode](#maintenance-mode).
|
||||
|
||||
@@ -122,8 +145,8 @@ blocked:
|
||||
|
||||
**Malicious or deceptive**
|
||||
|
||||
- **Code that appears to plant anything malicious.** If CodeQL and Dependabot
|
||||
find nothing but the change still looks wrong, the maintainer reviews it by
|
||||
- **Code that appears to plant anything malicious.** If the security checks
|
||||
(gitleaks, Opengrep, osv-scanner) find nothing but the change still looks wrong, the maintainer reviews it by
|
||||
hand and takes as long as that needs. Confirmed — **permanent ban, no
|
||||
exceptions.**
|
||||
- **Invisible or confusable characters** — zero-width joiners, bidirectional
|
||||
@@ -154,7 +177,7 @@ blocked:
|
||||
[maintenance mode](#maintenance-mode) — including a feature presented as a
|
||||
fix.
|
||||
- **Drive-by or automated PRs** — whitespace, reformatting, badge additions,
|
||||
dependency bumps Dependabot already owns, or bulk submissions for contribution
|
||||
dependency bumps Renovate already owns, or bulk submissions for contribution
|
||||
counts.
|
||||
- **Vendor marketing copy or encyclopedia text** pasted as a summary. It breaks
|
||||
the licence provenance the dataset depends on.
|
||||
@@ -173,7 +196,7 @@ blocked:
|
||||
**Conduct**
|
||||
|
||||
- Anything contrary to the
|
||||
[GitHub Acceptable Use Policies](https://docs.github.com/site-policy/acceptable-use-policies/github-acceptable-use-policies)
|
||||
[GitLab Acceptable Use Policy](https://handbook.gitlab.com/handbook/legal/acceptable-use-policy/)
|
||||
or our [Code of Conduct](CODE_OF_CONDUCT.md) — harassment, slurs, spam,
|
||||
impersonation, or pressure of any kind.
|
||||
|
||||
|
||||
+5
-1
@@ -7,7 +7,11 @@ Creative Commons Attribution-ShareAlike 4.0 International license
|
||||
(CC BY-SA 4.0): https://creativecommons.org/licenses/by-sa/4.0/
|
||||
|
||||
**Attribution format:** "SoftHarbor contributors —
|
||||
https://github.com/poli0981/softharbor (CC BY-SA 4.0)".
|
||||
https://git.poli0981.dev/poli0981/softharbor (CC BY-SA 4.0)".
|
||||
|
||||
The project moved from GitHub to its own Gitea in November 2026. An
|
||||
attribution made before then names `https://github.com/poli0981/softharbor`;
|
||||
that remains a valid attribution of the same dataset.
|
||||
|
||||
You may copy, redistribute, and adapt the dataset, including commercially,
|
||||
provided you give the attribution above, link the license, indicate
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
# SoftHarbor
|
||||
|
||||
[](#project-status)
|
||||
[](https://github.com/poli0981/softharbor/actions/workflows/ci.yml)
|
||||
[](https://github.com/poli0981/softharbor/actions/workflows/codeql.yml)
|
||||
[](https://github.com/poli0981/softharbor/actions/workflows/qodana.yml)
|
||||
[](https://sonarcloud.io/summary/overall?id=poli0981_softharbor)
|
||||
[](https://github.com/poli0981/softharbor/releases/latest)
|
||||
[](https://git.poli0981.dev/poli0981/softharbor/actions?workflow=ci.yml)
|
||||
[](https://git.poli0981.dev/poli0981/softharbor/actions?workflow=security.yml)
|
||||
[](https://git.poli0981.dev/poli0981/softharbor/actions?workflow=qodana.yml)
|
||||
[](https://git.poli0981.dev/poli0981/softharbor/releases)
|
||||
[](LICENSE)
|
||||
[](LICENSE-DATA.md)
|
||||
|
||||
@@ -21,9 +20,9 @@ The site hosts **no binaries**. It is a map, not a mirror.
|
||||
## Project status
|
||||
|
||||
**Maintenance mode since 2026-11-15 (v1.4.1).** SoftHarbor does what it set
|
||||
out to do, so from here on it is maintained, not extended
|
||||
([announcement](https://github.com/poli0981/softharbor/discussions/75), decision D36 in
|
||||
[docs/15](docs/15_ROADMAP.md)).
|
||||
out to do, so from here on it is maintained, not extended (decision D36 in
|
||||
[docs/15](docs/15_ROADMAP.md); the announcement was a GitHub discussion, which
|
||||
went with the repository's move to Gitea — see [Where things live](#where-things-live)).
|
||||
|
||||
- **Still happening:** apps added, corrected and removed; every download page
|
||||
re-scanned at least every 90 days; bug, UI/UX and accessibility fixes;
|
||||
@@ -37,7 +36,7 @@ What to send where: [CONTRIBUTING.md → Maintenance mode](CONTRIBUTING.md#maint
|
||||
|
||||
## What is in it
|
||||
|
||||
**373 apps** across 15 categories, each one file in `src/data/apps/`. Every
|
||||
**390 apps** across 15 categories, each one file in `src/data/apps/`. Every
|
||||
entry carries:
|
||||
|
||||
- original two-line summaries in English _and_ Vietnamese — written from
|
||||
@@ -48,9 +47,10 @@ entry carries:
|
||||
- a **dated** security status with the scan permalink behind it
|
||||
|
||||
On security the site says _"no known warnings as of <date>"_ and never
|
||||
more than that. 364 entries are `clean`; 9 are held at `unverified` — a
|
||||
scanner flagged something, or an advisory or an unsigned build is still open —
|
||||
and holding them is more honest than explaining it away. The scan is linked
|
||||
more than that. 379 entries are `clean`; 11 are held at `unverified` — a
|
||||
scanner flagged something, an advisory or an unsigned build is still open, or
|
||||
the app is too new to have a track record — and holding them is more honest
|
||||
than explaining it away. The scan is linked
|
||||
either way — judge it yourself.
|
||||
|
||||
## How it is built
|
||||
@@ -68,7 +68,9 @@ details.
|
||||
Astro 7 (static) · Svelte 5 islands · Tailwind CSS 4 · TypeScript strict ·
|
||||
Node 26 · pnpm 11 · Cloudflare Workers Static Assets (+ one small Worker).
|
||||
Tested with Vitest (unit, islands, build scripts, the Worker) and Playwright +
|
||||
axe on the built site; analysed by CodeQL, SonarQube Cloud and Qodana.
|
||||
axe on the built site; analysed by Qodana and by gitleaks, Opengrep and
|
||||
osv-scanner. CI runs on Gitea Actions, and its `deploy` job publishes every
|
||||
change to `main` with Wrangler.
|
||||
|
||||
```bash
|
||||
pnpm install
|
||||
@@ -94,9 +96,9 @@ pnpm knip # dead code and unused deps
|
||||
## Contributing
|
||||
|
||||
Suggest an app, ask for a listing to be removed, corrected or re-checked, or
|
||||
report a bug with the
|
||||
[issue forms](https://github.com/poli0981/softharbor/issues/new/choose) —
|
||||
feature requests are not taken in maintenance mode. Read
|
||||
report a bug with an
|
||||
[issue on the GitLab mirror](https://gitlab.com/poli0981/softharbor/-/issues/new)
|
||||
(pick a template) — feature requests are not taken in maintenance mode. Read
|
||||
**[CONTRIBUTING.md](CONTRIBUTING.md)** before opening a pull request — it
|
||||
lists the inclusion criteria and what gets closed on sight. Everyone taking
|
||||
part follows the [Code of Conduct](CODE_OF_CONDUCT.md).
|
||||
@@ -110,6 +112,29 @@ Vietnamese).
|
||||
Found a security problem? [SECURITY.md](SECURITY.md) — please do not open a
|
||||
public issue.
|
||||
|
||||
## Acknowledgements
|
||||
|
||||
Thank you to everyone whose suggestion became a listing:
|
||||
|
||||
- [@BlueSkyID666](https://github.com/BlueSkyID666) — Orkas (GitHub issue #65)
|
||||
- [CiselSoft](https://www.ciselsoft.com/) — Cisel Media (#80) and CloneSift
|
||||
(#81), suggested by email
|
||||
- [Aurelio Avila](https://pctweaker.app/) — PC Tweaker (#7), suggested by
|
||||
email
|
||||
|
||||
Issue numbers before 2026-11-24 are the GitHub repository's; its issues did not
|
||||
move to Gitea with the code.
|
||||
|
||||
## Where things live
|
||||
|
||||
Source: [`git.poli0981.dev/poli0981/softharbor`](https://git.poli0981.dev/poli0981/softharbor) (canonical; clone
|
||||
`https://git.poli0981.dev/poli0981/softharbor.git`). Mirror for issues and merge requests:
|
||||
[`gitlab.com/poli0981/softharbor`](https://gitlab.com/poli0981/softharbor).
|
||||
Patches and questions: `code@poli0981.dev`. Security: `security@poli0981.dev`
|
||||
(see [SECURITY.md](SECURITY.md)). The repository moved from GitHub in
|
||||
November 2026; links to `github.com/poli0981/softharbor` no longer lead
|
||||
anywhere.
|
||||
|
||||
## Documentation
|
||||
|
||||
The full specification lives in [`docs/`](docs/) (00–16): architecture, data
|
||||
@@ -130,7 +155,7 @@ AI was used to build this project; where and how is disclosed at
|
||||
|
||||
## Contact
|
||||
|
||||
Maintained by [@poli0981](https://github.com/poli0981). One address per
|
||||
Maintained by [poli0981](https://git.poli0981.dev/poli0981). One address per
|
||||
purpose, so a message reaches the right queue:
|
||||
|
||||
| About | Address |
|
||||
|
||||
+8
-3
@@ -14,8 +14,12 @@ attack on the site is handled out of schedule.
|
||||
|
||||
## Reporting a vulnerability
|
||||
|
||||
Please use **GitHub's private vulnerability reporting** on this repository
|
||||
(Security → Report a vulnerability), or email `security@poli0981.dev`.
|
||||
**Report by e-mail to `security@poli0981.dev` — and do not open a public
|
||||
issue for a security problem, on the GitLab mirror or anywhere else.** E-mail is
|
||||
the only private channel: the repository moved from GitHub to a self-hosted
|
||||
Gitea in November 2026, and GitHub's private vulnerability reporting went with
|
||||
it. A report that arrives as a public GitLab issue is made confidential there
|
||||
and continued by e-mail.
|
||||
|
||||
Acknowledgement within **72 hours**. Machine-readable contact details are in
|
||||
[`/.well-known/security.txt`](https://softharbor.net/.well-known/security.txt).
|
||||
@@ -24,7 +28,7 @@ Acknowledgement within **72 hours**. Machine-readable contact details are in
|
||||
|
||||
**In scope**
|
||||
|
||||
- The site, its build, and its GitHub Actions workflows.
|
||||
- The site, its build, and its Gitea Actions workflows (`.gitea/workflows/`).
|
||||
- **The dataset.** Reports that a listed app is malicious, that a download
|
||||
link has been hijacked or typosquatted, or that an entry points somewhere
|
||||
other than the developer's official page are explicitly welcome — that is
|
||||
@@ -42,6 +46,7 @@ Acknowledgement within **72 hours**. Machine-readable contact details are in
|
||||
for `worker/`, which rate-limits requests (D32) and answers
|
||||
`POST /api/verify`, the legal gate's Turnstile check (D25) — both **are**
|
||||
in scope. There is no database, no accounts and no cookies (docs/09 §3).
|
||||
- An already-compromised Cloudflare, Gitea or GitLab account.
|
||||
|
||||
## What we do not claim
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# 00 — Project Overview
|
||||
|
||||
> **Project:** SoftHarbor
|
||||
> **Doc suite version:** 3.2 (2026-11-15, site v1.4.1)
|
||||
> **Doc suite version:** 4.0 (2026-11-24, site v1.5.0)
|
||||
> **Author:** poli0981 / SkullMute · **License:** code GPL-3.0-only · data CC BY-SA 4.0
|
||||
> **Platform:** Web (static), Cloudflare Workers Static Assets, canonical `https://softharbor.net`
|
||||
> — plus one Worker: the site-wide rate limit (D32) and `POST /api/verify` (D25)
|
||||
@@ -109,18 +109,19 @@ consistent over time.
|
||||
| D27 | Contacts | **One address per purpose at `@poli0981.dev`** — `src/lib/contacts.ts`; `contact@softharbor.net` retired; mail hosted by Google | 2026-10-21 | A message reaches the right queue; `sponsor@` deliberately unused (docs/14 Part 2) |
|
||||
| D28 | Toolchain | **Node 26 + TypeScript 6/7 side by side** (amends D7 and D21) — `.nvmrc` 26; `typescript` = the `@typescript/typescript6` API wrapper, `@typescript/native` = TS 7, whose `tsc --noEmit` now type-checks every `.ts` file in `pnpm check` | 2026-10-23 | Node 24 entered maintenance 2026-10-20; TS 7 ships no API yet, which astro check, typescript-eslint and svelte2tsx need (docs/01 §2) |
|
||||
| D32 | Rate limiting | **Site-wide rate limit in the Worker** (amends hard rule 1 and D25): `run_worker_first` is `/*` minus the files a page loads (`/_astro/*`, icons, service worker); every request it routes spends one unit of `SITE_LIMITER` — 60 per 10 s per IPv4 or IPv6 /64, per location — and over it gets the branded `/errors/429` page (JSON under `/api/`), `Retry-After: 10`; fails **open** | 2026-10-26 | A flood or a runaway scraper gets refused cheaply with our own page instead of the Free zone's default; configured and tested in the repo (wrangler.jsonc, e2e/worker.spec.ts), not in a dashboard (docs/08 Part F) |
|
||||
| D29 | Code analysis | **SonarQube Cloud CI-based analysis with coverage** (`ci.yml` `sonar` job, not a required check) replaces Automatic Analysis | 2026-10-23 | Automatic Analysis cannot import coverage; a CI scan measures the same lcov the ratchet gates (docs/12 §2, docs/11 §1) |
|
||||
| D29 | Code analysis | ~~**SonarQube Cloud CI-based analysis with coverage** (`ci.yml` `sonar` job, not a required check)~~ — **superseded 2026-11-24 by D38**: SonarQube Cloud left with GitHub | 2026-10-23 | Automatic Analysis cannot import coverage; a CI scan measured the same lcov the ratchet gates (docs/12 §2, docs/11 §1) |
|
||||
| D33 | Accessibility | **WCAG 2.2 AA as a target, never a conformance claim**; `ACCESSIBILITY.md` + its twin `/legal/accessibility`; contact `accessibility@`; the "/" shortcut can be turned off (`sh:keys`, WCAG 2.1.4) | 2026-11-09 | GitHub's community profile asked for it, and an audit found barriers the manual pass did not (focus on the checked display choice, the header at 320 px, forced colours); axe now fails on moderate findings and covers the open dialogs (docs/15 D33) |
|
||||
| D35 | Code analysis | **Qodana as a third analyser** beside CodeQL and SonarQube Cloud: `qodana-js` (Ultimate licence) in native mode, profile `qodana.recommended`, any finding fails the job, SARIF to GitHub code scanning (tool `QDJS`) — **not a required check** (`qodana.yml`, `qodana.yaml`) | 2026-11-15 | WebStorm's inspections catch a different class of problem than CodeQL (security) and Sonar (maintainability); not required for D29's reason — an outside service must never block a merge |
|
||||
| D35 | Code analysis | **Qodana as an analyser** (beside CodeQL and SonarQube Cloud until D38; beside the ops Opengrep SAST since): `qodana-js` (Ultimate licence) in native mode, profile `qodana.recommended`, any finding fails the job; since D38 through the ops `reusable-qodana.yml`, findings in Qodana Cloud — **not a required check** (`qodana.yml`, `qodana.yaml`) | 2026-11-15 | WebStorm's inspections catch a different class of problem than CodeQL (security) and Sonar (maintainability); not required for D29's reason — an outside service must never block a merge |
|
||||
| D38 | Forge & CI | **The repository lives on the owner's Gitea** (`git.poli0981.dev`), CI is Gitea Actions on the owner's runner, issues and merge requests come through the GitLab mirror, production deploys from the CI `deploy` job (`wrangler deploy`, no PR previews), Renovate replaces Dependabot, the ops `security.yml` (gitleaks, Opengrep, osv-scanner) replaces CodeQL; SonarQube Cloud dropped | 2026-11-24 | The GitHub account was suspended in November 2026, taking the repository, Workers Builds' source, CodeQL and Dependabot with it; every repository of the owner moved by one runbook (`poli0981/.github` `docs/GITEA-MIGRATION.md`; docs/12) |
|
||||
| D36 | Project status | **Maintenance mode** — maintained, not extended: catalogue work, bug, UI/UX and accessibility fixes, dependency upkeep (out of schedule for a High or Critical advisory or a serious Node.js security release), major language and platform updates, incidents; **new features are not accepted** and docs/15 §2's feature items are frozen | 2026-11-15 | The site does what it set out to do; review time belongs to the catalogue's accuracy, which is the product |
|
||||
|
||||
## 6. Identifiers (locked)
|
||||
|
||||
| Identifier | Value |
|
||||
|---|---|
|
||||
| Repo slug | `poli0981/softharbor` |
|
||||
| Repo slug | `poli0981/softharbor` — `https://git.poli0981.dev/poli0981/softharbor` (Gitea, canonical since D38); public mirror `https://gitlab.com/poli0981/softharbor` |
|
||||
| Canonical origin | `https://softharbor.net` (apex; `www` 301s to it) |
|
||||
| Worker name | `softharbor` — code in `worker/`: the site-wide rate limit (D32) and one endpoint, `POST /api/verify` (D25); workers.dev route disabled; versioned preview URLs only (docs/16 §3) |
|
||||
| Worker name | `softharbor` — code in `worker/`: the site-wide rate limit (D32) and one endpoint, `POST /api/verify` (D25); workers.dev route disabled; no preview versions since D38 (docs/16 §3) |
|
||||
| Contact email | One address per purpose at `@poli0981.dev` — `src/lib/contacts.ts`, page `/contact` (D27; `contact@softharbor.net` retired) |
|
||||
| Component prefix | `Sh*` (islands: `ShLegalGate`, `ShSearch`, `ShFilterSheet`, `ShLangSwitch`, `ShPrefs`, `ShBugReport`) |
|
||||
| CSS custom property prefix | `--sh-*` |
|
||||
@@ -152,16 +153,16 @@ See `CLAUDE.md` for the full table. Reading order for a new contributor:
|
||||
|
||||
| # | Action | Needed by |
|
||||
|---|---|---|
|
||||
| H1 | Create repo `poli0981/softharbor`, default branch `main`, add GPL-3.0 LICENSE via GitHub picker | P1 |
|
||||
| H1 | Create repo `poli0981/softharbor`, default branch `main`, add GPL-3.0 LICENSE via GitHub picker — the GitHub repository went with the suspended account; since 2026-11-24 the repository is on Gitea (D38) | P1 |
|
||||
| H2 | Onboard the `softharbor.net` zone: add to Cloudflare (Free plan), set nameservers at the registrar (skip if Cloudflare Registrar), enable DNSSEC + transfer lock + auto-renew (docs/16 §2) | P1 |
|
||||
| H3 | ~~Create Cloudflare API token … and add `CLOUDFLARE_API_TOKEN` + `CLOUDFLARE_ACCOUNT_ID` repo secrets~~ — **retired 2026-07-28**: Workers Builds deploys; delete the unused secrets (docs/12 §1) | — |
|
||||
| H4 | Enable GitHub *Private vulnerability reporting* + *Issues* on the repo (the issue forms and `SECURITY.md` route reports there — ⚠ verify the setting) | P6 |
|
||||
| H3 | Cloudflare API token (Workers Scripts → Edit) as **user-level** Gitea Actions secrets `CLOUDFLARE_API_TOKEN` + `CLOUDFLARE_ACCOUNT_ID` — retired 2026-07-28 while Workers Builds deployed, **needed again since D38** (the CI `deploy` job, docs/12 §3) — ✅ set 2026-11-23 | v1.5 |
|
||||
| H4 | ~~Enable GitHub *Private vulnerability reporting* + *Issues*~~ — gone with GitHub; since D38 security reports are e-mail only (`security@`, SECURITY.md) and issues go to the GitLab mirror (set its notifications to **Watch**) | P6 |
|
||||
| H5 | ~~Set up Email Routing → `contact@softharbor.net` + DMARC~~ — **superseded 2026-10-21 by D27**: purpose addresses at `@poli0981.dev`, Google-hosted. Still open: decide whether softharbor.net keeps its Email Routing records (docs/16 §6) | v1.1 |
|
||||
| H6 | Review & approve all legal drafts in docs/14 before first public deploy — ✅ 2026-07-28; sign-off on the 2026-10-21 rewrite ⚠ verify (docs/14 Part 4) | P6 / v1.1 |
|
||||
| H7 | Approve the seed list — **326 apps imported 2026-07-29** (docs/13 §4, D24) | P6 |
|
||||
| H8 | Create the GSC **Domain property** for `softharbor.net` (DNS TXT verify) + enable Crawler Hints; submit sitemap & import to Bing at launch (docs/16 §8) — the verification TXT is published (observed 2026-10-21); the rest ⚠ verify | P6 |
|
||||
| H9 | Decide on HSTS phase P3 (`preload` submission — semi-irreversible, docs/16 §5) — the header already carries `preload` (observed 2026-10-21, docs/15 §5) | post-launch |
|
||||
| H10 | Enable *Settings → Actions → General → **Allow GitHub Actions to create and approve pull requests*** — without it the nightly quarantine sweep cannot open its PR and hard rule 5 stops being enforced mechanically (docs/12 §4) — ✅ enabled | P6 |
|
||||
| H10 | ~~Allow GitHub Actions to create and approve pull requests~~ — gone with GitHub. Since D38: Gitea **branch protection** on `main` (checks `CI / build (*)` and `CI / gates (*)`, no force push or deletion, owner-only push, signed commits **not** required) and the labels the bots use (`quarantine`, `link-rot`, `security`), docs/12 §4, §8 | v1.5 |
|
||||
| H11 | Set the Worker's runtime secret **`TURNSTILE_SECRET`** (dashboard → Variables and Secrets, or `wrangler secret put`) — without it every check answers 503 and the gate silently fails open for everyone (docs/08 Part E) — ✅ set (verified 2026-10-21: a junk token gets `403 rejected`); redo whenever the Worker is re-created | v1.1 |
|
||||
| H12 | Turn the zone's **Speed Brain** off — Cloudflare refuses speculative prefetch on Worker requests (503); production still sent a `Speculation-Rules` header on 2026-10-21 (docs/16 §9) | v1.1 |
|
||||
| H13 | **Recommended:** deploy the zone **rate-limiting rule as layer 1** in front of the Worker's limit — one rule, URI Path starts with `/` and not a verified bot, 150 requests per 10 s per IP, Block 10 s (step-by-step and a verification command: docs/16 §9.1). It is the layer that stops a many-connection flood, which the Worker's per-machine counters mostly miss (docs/08 Part F), and it blocks before the Worker is billed; nothing in the repository depends on it | v1.3 |
|
||||
+40
-14
@@ -2,8 +2,9 @@
|
||||
|
||||
> All version lines below were checked against upstream release channels on
|
||||
> **2026-07-15**. Install the latest patch within each stated line.
|
||||
> Dependabot keeps them current afterwards (§5) — it replaced Renovate on
|
||||
> 2026-10-21; Renovate was never installed and never ran.
|
||||
> Renovate keeps them current afterwards (§5) — the owner's self-hosted
|
||||
> Renovate on Gitea since 2026-11-24 (D38); Dependabot did it from 2026-10-21
|
||||
> until the GitHub account was suspended.
|
||||
>
|
||||
> **Re-verified 2026-07-27** against `E:\poli0981-dev\package.json` — the
|
||||
> org's closest sibling project, already shipping Astro 7 on Cloudflare
|
||||
@@ -42,14 +43,36 @@
|
||||
> `@vite-pwa/workbox-window` as direct devDependencies under pnpm (docs/09 §7)
|
||||
> and drops workbox-build 7 with ~270 transitive packages. Node 26.13.0 is the
|
||||
> newest 26.x (LTS since 2026-10-28).
|
||||
>
|
||||
> **Upkeep 2026-11-16:** pnpm 11.28.12 (a security release) · Astro 7.4.12
|
||||
> (Rolldown 1.3.2) · `@astrojs/svelte` 9.1.6 · `@vite-pwa/astro` 2.0.2
|
||||
> (`@vite-pwa/workbox-*` 8.0.15) · Wrangler 4.162 · Playwright 1.65.1 ·
|
||||
> ESLint 10.15 · `typescript-eslint` 8.72.2 · Prettier 3.10 · knip 6.45 ·
|
||||
> `sonarqube-scan-action` 8.5.0 (CLI 8.4.0) · `osv-scanner-action` 2.7.1 ·
|
||||
> `create-pull-request` 8.1.3. Node 26.13.1 (a security release, 2026-11-10)
|
||||
> reaches CI and Workers Builds by itself through `.nvmrc` = `26`.
|
||||
>
|
||||
> **Forge move 2026-11-24 (D38):** CI on Gitea Actions; SonarQube Cloud, the
|
||||
> SonarScanner pin, CodeQL, `osv-scanner-action` (now the pinned osv-scanner
|
||||
> 2.7.1 binary), `create-pull-request` and `upload-artifact` (now
|
||||
> `christopherhx/gitea-upload-artifact` v4) left the workflows; Qodana runs
|
||||
> the CLI 2026.3.1 through the ops `reusable-qodana.yml`.
|
||||
>
|
||||
> **Upkeep 2026-11-24:** pnpm 11.29.0 · Astro 7.4.13 (Rolldown 1.3.3) ·
|
||||
> Svelte 5.59.1 · `@vite-pwa/astro` 2.0.4 · Wrangler 4.166 · Vitest 5.1.1 ·
|
||||
> `typescript-eslint` 8.73 · knip 6.48 · `prettier-plugin-svelte` 4.2. The
|
||||
> `minimatch` override and the astro2tsx `packageExtensions` retired (their
|
||||
> callers now ask for the right versions); the deepmerge advisory was
|
||||
> withdrawn, so `osv-scanner.toml` skips nothing (docs/09 §7). Node 26.13.1
|
||||
> is still the newest 26.x.
|
||||
|
||||
## 1. Runtime & toolchain
|
||||
|
||||
| Layer | Package | Line (2026-07-15) | Notes |
|
||||
|---|---|---|---|
|
||||
| Runtime | Node.js | **26** (26.12 at v1.2; was 24 LTS "Krypton" until 2026-10-23) | LTS from 2026-10-28, maintenance from 2027-10, end of life 2029-04. Taken five days before the LTS label at the owner's request (D7 amended) — Node 24 had entered maintenance on 2026-10-20, and CI, the e2e suite and a Workers Builds preview all passed on 26 first. Pin via `.nvmrc` = `26` and `"engines": { "node": ">=26 <27" }`; CI and Workers Builds read `.nvmrc`, and `@types/node` majors are held to the same line (Dependabot ignore, §5). **Node 25+ ships no Corepack**: a laptop whose `pnpm` came from Corepack needs `npm install -g corepack` (or a standalone pnpm) after upgrading, or `pnpm` and the lefthook hooks stop working. |
|
||||
| Package manager | pnpm | **11.x** (`11.28.11` since 2026-11-09, `packageManager`; `11.28.9` from 2026-11-04, `11.15.1` before) | `packageManager` field pinned; CI's `pnpm/action-setup` reads it (no `version:`), so CI, Dependabot, Workers Builds and laptops run the same pnpm. **Do not set `ignore-scripts`** — pnpm ≥ 10 already blocks dependency install scripts and wants an `allowBuilds` allowlist in `pnpm-workspace.yaml` instead (docs/09 §7). pnpm 11's default **24 h `minimumReleaseAge`** refuses day-old releases — hence Dependabot's 2-day cooldown (§5). |
|
||||
| Deploy CLI | Wrangler | **4.x** (4.151 at v1.1) | Workers Builds runs `npx wrangler deploy` (main) and `wrangler versions upload` (PRs); CI runs `wrangler deploy --dry-run` to bundle `worker/` and validate `wrangler.jsonc`. Since D25 there **is** a Worker script (`worker/index.ts`), tested under Vitest in Node — the local `workerd` runtime stays blocked in `allowBuilds` (docs/09 §7). Types for the Worker are written by hand (`worker/env.ts`), not `@cloudflare/workers-types`. |
|
||||
| Runtime | Node.js | **26** (26.12 at v1.2; was 24 LTS "Krypton" until 2026-10-23) | LTS from 2026-10-28, maintenance from 2027-10, end of life 2029-04. Taken five days before the LTS label at the owner's request (D7 amended) — Node 24 had entered maintenance on 2026-10-20, and CI, the e2e suite and a Workers Builds preview all passed on 26 first. Pin via `.nvmrc` = `26` and `"engines": { "node": ">=26 <27" }`; CI and the deploy job read `.nvmrc`, and `@types/node` majors are held to the same line (a Renovate rule, §5). **Node 25+ ships no Corepack**: a laptop whose `pnpm` came from Corepack needs `npm install -g corepack` (or a standalone pnpm) after upgrading, or `pnpm` and the lefthook hooks stop working. |
|
||||
| Package manager | pnpm | **11.x** (`11.29.0` since 2026-11-24, `packageManager`; `11.28.12` from 2026-11-16, `11.28.11` from 2026-11-09, `11.28.9` from 2026-11-04, `11.15.1` before) | `packageManager` field pinned; CI's `pnpm/action-setup` reads it (no `version:`), so CI, the deploy job, Renovate and laptops run the same pnpm. **Do not set `ignore-scripts`** — pnpm ≥ 10 already blocks dependency install scripts and wants an `allowBuilds` allowlist in `pnpm-workspace.yaml` instead (docs/09 §7). pnpm 11's default **24 h `minimumReleaseAge`** refuses day-old releases — Renovate's 3-day release age keeps every update PR installable (§5). |
|
||||
| Deploy CLI | Wrangler | **4.x** (4.151 at v1.1) | CI's `deploy` job runs `wrangler deploy` on pushes to `main` (D38; Workers Builds did until then, with `wrangler versions upload` previews for PRs); CI also runs `wrangler deploy --dry-run` to bundle `worker/` and validate `wrangler.jsonc`. Since D25 there **is** a Worker script (`worker/index.ts`), tested under Vitest in Node — the local `workerd` runtime stays blocked in `allowBuilds` (docs/09 §7). Types for the Worker are written by hand (`worker/env.ts`), not `@cloudflare/workers-types`. |
|
||||
|
||||
## 2. Framework & UI
|
||||
|
||||
@@ -79,8 +102,8 @@
|
||||
| Icon generation | `sharp` (dev only, `pnpm icons`) | 0.35 — output committed, builds never need it |
|
||||
| Git hooks | `lefthook` | **2.x** |
|
||||
| Link checking (CI) | `lychee` via `lycheeverse/lychee-action` | v2 line (v2.9.0) |
|
||||
| Dep updates | **Dependabot** (`.github/dependabot.yml`) | npm + github-actions, weekly — docs/12 §6 (replaced the never-installed Renovate) |
|
||||
| CVE / code scanning | `osv-scanner` action + `pnpm audit --prod`; CodeQL (org reusable workflow); SonarQube Cloud **CI-based** analysis with coverage (`ci.yml` `sonar` job, `sonarqube-scan-action` 8.4, CLI 8.3 — docs/12 §2); Qodana `qodana-js` 2026.2, Ultimate licence, native mode (`qodana.yml`, D35) | latest |
|
||||
| Dep updates | **Renovate** (`renovate.json` → `local>poli0981/renovate-config`, self-hosted on Gitea) | npm + action pins, daily 13:31 UTC, grouped non-major, OSV security PRs — docs/12 §6 (Dependabot until D38) |
|
||||
| CVE / code scanning | osv-scanner 2.7.1 (pinned binary) + `pnpm audit --prod` in `gates`; the ops `security.yml` — gitleaks, Opengrep, osv-scanner (replaced CodeQL, D38); Qodana `qodana-js`, CLI 2026.3.1, Ultimate licence, native mode (`qodana.yml`, D35). SonarQube Cloud dropped (D38) | latest |
|
||||
|
||||
## 4. Rationale for the contested picks
|
||||
|
||||
@@ -112,22 +135,25 @@ unbilled asset path and no SSR exists.
|
||||
## 5. Version & CVE policy
|
||||
|
||||
1. **Install latest stable within each line above; never pre-releases.**
|
||||
2. **Dependabot** runs weekly (Monday), npm and github-actions, with a
|
||||
2-day cooldown (pnpm 11's 24 h `minimumReleaseAge`); minor + patch are
|
||||
grouped, majors arrive one PR each. GitHub Actions stay pinned to commit
|
||||
SHAs with a version comment, and Dependabot bumps both (docs/12 §6).
|
||||
2. **Renovate** runs daily (13:31 UTC, the owner's runner), npm and the
|
||||
workflow actions, holding a new npm release for 3 days (also clearing
|
||||
pnpm 11's 24 h `minimumReleaseAge`); minor + patch are grouped, majors
|
||||
arrive one PR each, and OSV advisories open their own PRs without the
|
||||
wait. Actions stay pinned to commit SHAs with a version comment, and
|
||||
Renovate bumps both (docs/12 §6). The ops pins and the osv-scanner binary
|
||||
are bumped by hand.
|
||||
3. `osv-scanner` + `pnpm audit --prod` run on every PR and push to `main`
|
||||
(`ci.yml` `gates` job); a finding fails it. A finding with no patched
|
||||
release of the direct dependency is fixed with an `overrides` floor in
|
||||
`pnpm-workspace.yaml`, the advisory ids in a comment (docs/09 §7), or a
|
||||
tracking issue.
|
||||
4. Node upgrades follow LTS lines, adopted once CI, the e2e suite and a
|
||||
Workers Builds preview pass on them; `@types/node` moves with `.nvmrc` and
|
||||
Dependabot ignores its majors in between. (Node 26 was taken on
|
||||
deploy pass on them; `@types/node` moves with `.nvmrc` and Renovate
|
||||
proposes no majors of it in between. (Node 26 was taken on
|
||||
2026-10-23, five days before its LTS promotion — the owner's call, D7.)
|
||||
**TypeScript is exempt from rule 1 while Astro needs the TS 6 API** (§2):
|
||||
`typescript` stays the TS 6 wrapper and `@typescript/native` is TS 7;
|
||||
Dependabot ignores both majors (D21).
|
||||
Renovate proposes neither major (D21).
|
||||
5. Every dependency bump that touches Astro/Vite/Tailwind majors must re-run
|
||||
spike S1 (docs/11 §3) before merge — in practice, the full CI including
|
||||
the e2e suite on the built site.
|
||||
|
||||
+21
-16
@@ -8,10 +8,10 @@ v1.1 one small Worker answers exactly one endpoint (D25), and since v1.3
|
||||
it also stands in front of every page as the site-wide rate limit (D32).
|
||||
|
||||
```
|
||||
maintainer PR ──▶ CI (ci.yml build + gates, codeql) ──▶ squash to main
|
||||
maintainer PR ──▶ CI (Gitea Actions: build + gates, security) ──▶ squash to main
|
||||
│
|
||||
Cloudflare Workers Builds ◀─────────────┘
|
||||
(pnpm run build → npx wrangler deploy; docs/12 §3)
|
||||
CI `deploy` job ◀───────────────────────┘
|
||||
(pnpm build → wrangler deploy; docs/12 §3, D38)
|
||||
│ dist/ + worker/
|
||||
▼
|
||||
Cloudflare Workers Static Assets — softharbor.net
|
||||
@@ -39,7 +39,7 @@ Consequences (accepted, documented):
|
||||
(the legal gate's Turnstile check, D25). Every page, asset and feed it
|
||||
lets through is served by the asset server unchanged (§7, docs/08
|
||||
Parts E and F).
|
||||
- "Dynamic" behaviors are relocated: data mutation → Git + GitHub Actions;
|
||||
- "Dynamic" behaviors are relocated: data mutation → Git + Gitea Actions;
|
||||
personalization → localStorage; search → client-side index; shareable
|
||||
view state → the URL (docs/05 §A3).
|
||||
- Logs: Cloudflare's dashboard metrics for the site, plus Workers Logs for
|
||||
@@ -58,7 +58,7 @@ Consequences (accepted, documented):
|
||||
```
|
||||
softharbor/
|
||||
├── CLAUDE.md # AI dev instructions (hard rules)
|
||||
├── LICENSE # GPL-3.0-only (GitHub picker)
|
||||
├── LICENSE # GPL-3.0-only
|
||||
├── LICENSE-DATA.md # CC BY-SA 4.0 for src/data/** (docs/14 §1)
|
||||
├── SECURITY.md # reporting policy (docs/09 §5)
|
||||
├── ACCESSIBILITY.md # a11y statement for contributors (D33; twin of /legal/accessibility)
|
||||
@@ -73,19 +73,22 @@ softharbor/
|
||||
├── eslint.config.js / prettier.config.mjs / .prettierignore
|
||||
├── knip.json / lefthook.yml # docs/10 §4
|
||||
├── .dev.vars.example # Turnstile TEST secret for `wrangler dev`
|
||||
├── sonar-project.properties # SonarQube Cloud CI analysis (docs/12 §2)
|
||||
├── qodana.yaml # Qodana scope + gate, native mode (docs/12 §2, D35)
|
||||
├── renovate.json # extends local>poli0981/renovate-config (docs/12 §6, D38)
|
||||
├── osv-scanner.toml # time-boxed OSV exceptions (docs/09 §7)
|
||||
├── .gitleaksignore # public identifiers gitleaks would flag (docs/12 §2)
|
||||
├── .gitattributes / .gitignore
|
||||
├── .github/
|
||||
│ ├── CODEOWNERS # * @poli0981 + .github/ scripts/ src/data/ worker/ (T6)
|
||||
│ ├── dependabot.yml # npm + github-actions, weekly (docs/12 §6)
|
||||
│ ├── PULL_REQUEST_TEMPLATE.md # checks + accessibility + data-PR checklists (docs/12 §7)
|
||||
│ ├── ISSUE_TEMPLATE/ # bug_report.yml · app_request.yml · listing_change.yml · accessibility.yml · config.yml
|
||||
│ └── workflows/ # docs/12: ci.yml · codeql.yml · notify.yml
|
||||
├── .gitea/ # the forge since D38 (docs/12)
|
||||
│ ├── CODEOWNERS # regex patterns: .* + .gitea/ scripts/ src/data/ worker/ (T6)
|
||||
│ └── workflows/ # ci.yml (build · gates · record · deploy)
|
||||
│ # security.yml · qodana.yml · notify.yml
|
||||
│ # quarantine.yml · link-check.yml · vt-recheck.yml
|
||||
│ # qodana.yml (D35)
|
||||
│ # (NO deploy/preview — Cloudflare Workers
|
||||
│ # Builds owns deployment, docs/12 §3)
|
||||
├── .github/ # forms Gitea still reads (docs/12 §7)
|
||||
│ ├── PULL_REQUEST_TEMPLATE.md # checks + accessibility + data-PR checklists
|
||||
│ └── ISSUE_TEMPLATE/ # bug_report.yml · app_request.yml · listing_change.yml · accessibility.yml · config.yml
|
||||
├── .gitlab/ # what the public uses on the GitLab mirror
|
||||
│ ├── issue_templates/ # Bug · App request · Listing change · Accessibility
|
||||
│ └── merge_request_templates/ # Default
|
||||
├── data/
|
||||
│ └── quarantine/ # flagged apps parked here (docs/03 §5);
|
||||
│ # created by `pnpm quarantine` on first use
|
||||
@@ -103,6 +106,8 @@ softharbor/
|
||||
│ ├── check-i18n-parity.mjs # EN/VI key parity (docs/07 §3)
|
||||
│ ├── quarantine.mjs # `pnpm quarantine` — move flagged entries
|
||||
│ ├── extract-urls.mjs # URL list for lychee (docs/12 §5)
|
||||
│ ├── vt-recheck.mjs # VirusTotal re-check (docs/12 §4b)
|
||||
│ ├── gitea.mjs # the bots' PRs, issues, dispatches, statuses (docs/12 §1, D38)
|
||||
│ ├── postbuild.mjs # CSP meta first in <head> (docs/09 §4)
|
||||
│ ├── check-csp.mjs # dist/ markup vs its own page's CSP
|
||||
│ ├── check-assets.mjs # referenced assets exist; no data: scripts
|
||||
@@ -303,7 +308,7 @@ Notes on the non-obvious keys:
|
||||
files cached immutably. Plain `?url` would inline files under 4 KiB as
|
||||
`data:` URLs, which `script-src 'self'` refuses — `check:assets` guards it.
|
||||
|
||||
`pnpm build` is the composite every environment runs (CI, Workers Builds,
|
||||
`pnpm build` is the composite every environment runs (CI, the deploy job,
|
||||
laptops): `validate:data → i18n:check → astro build → postbuild:html →
|
||||
check:csp → check:assets → check:sw → check:feed` (docs/12 §2).
|
||||
|
||||
|
||||
+10
-6
@@ -12,7 +12,7 @@
|
||||
▼
|
||||
CI: Zod schema (build) + validate-data.mjs + link check on new URLs
|
||||
▼
|
||||
review → squash-merge (signed) → Workers Builds deploy → verify production
|
||||
review → squash-merge → CI `deploy` job (D38) → verify production
|
||||
(docs/13 §3) → live
|
||||
```
|
||||
|
||||
@@ -44,7 +44,7 @@ review date after the maintainer runs the vetting checklist (docs/09 §6).
|
||||
| `tracking-param` | a query key is `utm_*`, `fbclid`, `gclid`, `dclid`, `msclkid`, `mc_eid`, `ref`, `aff`, `affiliate` or `partner` |
|
||||
| `invisible-char` | any string value contains a zero-width or bidi-control character |
|
||||
| `flagged-in-main-tree` | `security.status` is `flagged` inside `src/data/apps/` — run `pnpm quarantine` (§5) |
|
||||
| `missing-logo` | a `local:` logo is not in `src/assets/logos/` — compared against the directory listing, **case-sensitively** (Windows would accept a wrong case that Linux CI and Workers Builds reject) |
|
||||
| `missing-logo` | a `local:` logo is not in `src/assets/logos/` — compared against the directory listing, **case-sensitively** (Windows would accept a wrong case that Linux CI and the deploy job reject) |
|
||||
| `future-date` / `date-order` | `addedAt`, `updatedAt` or `checkedAt` after today; `updatedAt` before `addedAt` |
|
||||
| `unflagged-in-quarantine` / `slug-in-both-trees` | a file in `data/quarantine/` no longer says `flagged`, or the same slug is live and quarantined |
|
||||
| `stale-check` (**warning**) | `security.checkedAt` older than 180 days — re-verify (docs/13 §6); grouped, never fails the build |
|
||||
@@ -129,7 +129,7 @@ end-to-end 2026-07-28).
|
||||
"generatedAt": "2026-07-15T00:00:00Z",
|
||||
"count": 30,
|
||||
"license": "CC-BY-SA-4.0",
|
||||
"attribution": "SoftHarbor contributors — https://github.com/poli0981/softharbor",
|
||||
"attribution": "SoftHarbor contributors — https://git.poli0981.dev/poli0981/softharbor",
|
||||
"apps": [ { /* exactly the schema of docs/04 §1, plus "slug" */ } ]
|
||||
}
|
||||
```
|
||||
@@ -144,7 +144,10 @@ plus `slug`, with `categories` as plain ids. Because the collection schema is
|
||||
a `schemaVersion` bump and a decision-log entry. `apps` is sorted by slug in
|
||||
code-unit order — a stable document whatever machine builds it (docs/05
|
||||
§A4). Served with `Access-Control-Allow-Origin: *` and a 300 s cache
|
||||
(docs/09 §4).
|
||||
(docs/09 §4). The `attribution` string names the repository's home: on
|
||||
2026-11-24 (D38) its address moved from GitHub to Gitea — the field and the
|
||||
shape are unchanged, so `schemaVersion` stays 1. The CI `deploy` job reads
|
||||
`generatedAt` to know production serves the new build (docs/12 §3).
|
||||
|
||||
`generatedAt` is a build timestamp, so this file changes on every deploy even
|
||||
when the data does not. That is fine here — but it is exactly why `/rss.xml`
|
||||
@@ -155,7 +158,8 @@ byte-determinism is a contract, this file's is not.
|
||||
|
||||
`/rss.xml` item: title = app name, link = `/apps/<slug>`, description =
|
||||
`summary.en`, pubDate = `addedAt`, guid = slug (stable). The existing
|
||||
`notify.py` cross-poster consumes this feed on its GitHub Actions cron and
|
||||
`notify.py` cross-poster consumes this feed on its own schedule, in its own
|
||||
repository, and
|
||||
announces new items to Telegram / Discord / Bluesky / Mastodon / X /
|
||||
Facebook — no new announcement code needed in this repo (integration notes:
|
||||
docs/13 §5). It announces every guid it has not seen, so `check:feed`
|
||||
@@ -177,7 +181,7 @@ first paint: static HTML (grid server-rendered with ALL apps, A–Z)
|
||||
re-render of content); the URL follows (replaceState)
|
||||
errors anywhere: own-origin errors, unhandled rejections, CSP violations,
|
||||
hydration errors → ring buffer (A5)
|
||||
└─ ShBugReport builds prefilled GitHub issue URL (A6)
|
||||
└─ ShBugReport builds a prefilled GitLab issue URL (A6)
|
||||
```
|
||||
|
||||
Graceful degradation: with JS disabled, the full grid, category pages, and
|
||||
|
||||
@@ -111,14 +111,14 @@ duplicates, link provenance, invisible characters, quarantine) are L2,
|
||||
|
||||
| Value | Meaning | Examples |
|
||||
|---|---|---|
|
||||
| `free` | Fully usable forever at $0. Includes freemium products **whose free tier alone is self-sufficient** even if the paid upgrade is a subscription (criterion C3). | VLC, 7-Zip, Bitwarden (free tier) — 339 entries |
|
||||
| `free-onetime` | Free tier + optional **single lifetime payment** unlock. | FreeFileSync, eM Client, HWiNFO, Shottr, AltTab — 16 entries |
|
||||
| `onetime` | Paid once, perpetual license, optional paid major upgrades allowed. | Sublime Text, REAPER, Total Commander, Fork — 18 entries |
|
||||
| `free` | Fully usable forever at $0. Includes freemium products **whose free tier alone is self-sufficient** even if the paid upgrade is a subscription (criterion C3). | VLC, 7-Zip, Bitwarden (free tier) — 354 entries |
|
||||
| `free-onetime` | Free tier + optional **single lifetime payment** unlock. | FreeFileSync, eM Client, HWiNFO, Shottr, AltTab — 17 entries |
|
||||
| `onetime` | Paid once, perpetual license, optional paid major upgrades allowed. | Sublime Text, REAPER, Total Commander, Fork — 19 entries |
|
||||
| *(excluded)* | Subscription required for core desktop use; time-limited trials; crippled demos. | Adobe CC, MS 365 |
|
||||
|
||||
Ambiguous cases → decision log (docs/15 §4) before merge.
|
||||
|
||||
## 4. Category registry (12 at launch, 14 since 2026-10-23)
|
||||
## 4. Category registry (12 at launch, 14 since 2026-10-23, 15 since 2026-11-09)
|
||||
|
||||
`src/data/categories.json` — id · EN · VI · lucide icon:
|
||||
|
||||
@@ -247,8 +247,8 @@ and the renderer draws the initials (D23). VSCodium itself now resolves to
|
||||
}
|
||||
```
|
||||
|
||||
As of v1.4 no entry uses `local:` (`src/assets/logos/` does not exist yet):
|
||||
127 entries use `simple-icons:`, 246 `monogram` (373 in all).
|
||||
As of batch 4 (2026-11-24) no entry uses `local:` (`src/assets/logos/` does
|
||||
not exist yet): 130 entries use `simple-icons:`, 260 `monogram` (390 in all).
|
||||
|
||||
## 6. Quarantine files
|
||||
|
||||
|
||||
+51
-33
@@ -246,8 +246,8 @@ Two implementation notes from M5:
|
||||
identical, while `/api/apps.json` legitimately differs because
|
||||
`generatedAt` is a build timestamp (docs/03 §6).
|
||||
- **The tie-break collator is pinned** — `Intl.Collator('en')`, not a bare
|
||||
`localeCompare()`. Builds run on Workers Builds, GitHub runners and
|
||||
laptops; if two machines' ICU defaults disagreed, the 50-item window could
|
||||
`localeCompare()`. Builds run on the CI runner's container, the deploy
|
||||
job and laptops; if two machines' ICU defaults disagreed, the 50-item window could
|
||||
change membership between builds and notify.py would announce apps that
|
||||
are not new. `en` matches the order production served at launch (checked
|
||||
byte-for-byte against the live feed). `/api/apps.json` is likewise sorted
|
||||
@@ -316,46 +316,55 @@ opens a bug report (A6).
|
||||
|
||||
## A6 — Bug-report URL builder
|
||||
|
||||
GitHub Issue Forms prefill fields via query params matching each field `id`
|
||||
in `bug_report.yml` (docs/12 §7).
|
||||
Since D38 (2026-11-24) the report is a new issue on the **GitLab mirror**:
|
||||
the Gitea that holds the source takes no outside sign-ups. GitLab has no
|
||||
issue *forms* to prefill field by field, so the builder writes one Markdown
|
||||
description in the layout of `.gitlab/issue_templates/Bug.md` (docs/12 §7) —
|
||||
change the two together. The addresses live in `src/lib/forge.ts`.
|
||||
|
||||
```ts
|
||||
// src/lib/issueUrl.ts
|
||||
const REPO = 'https://github.com/poli0981/softharbor';
|
||||
export const BUDGET = 5000; // total-URL budget, measured by spike S3 (below)
|
||||
// src/lib/issueUrl.ts (abridged)
|
||||
export const BUG_FORM_URL = newIssue('Bug'); // …/-/issues/new?issuable_template=Bug
|
||||
export const BUDGET = 5000; // total-URL budget (below)
|
||||
|
||||
export function bugDescription(consoleText: string, ctx: BugContext): string {
|
||||
const logs = consoleText || '(buffer empty)';
|
||||
const fence = fenceFor(logs); // more backticks than the logs hold
|
||||
return ['### Page URL', '', ctx.href, '',
|
||||
'### What happened / expected', '', '<!-- … -->', '',
|
||||
'### Browser & OS', '', `${ctx.userAgent} · lang=${ctx.lang}`, '',
|
||||
'### Console output', '', `${fence}shell`, logs, fence].join('\n');
|
||||
}
|
||||
|
||||
export function buildBugUrl(consoleText: string, context?: BugContext): string {
|
||||
const ctx = context ?? currentContext(); // { href, userAgent, lang }
|
||||
const u = new URL(`${REPO}/issues/new`);
|
||||
u.searchParams.set('template', 'bug_report.yml');
|
||||
u.searchParams.set('labels', 'bug');
|
||||
u.searchParams.set('page-url', ctx.href);
|
||||
u.searchParams.set('environment', `${ctx.userAgent} · lang=${ctx.lang}`);
|
||||
const ctx = context ?? currentContext(); // { href, userAgent, lang }
|
||||
const url = (logs: string) => {
|
||||
const u = new URL(NEW_ISSUE_URL); // https://gitlab.com/poli0981/softharbor/-/issues/new
|
||||
u.searchParams.set('issue[title]', 'Bug: ');
|
||||
u.searchParams.set('issue[description]', bugDescription(logs, ctx));
|
||||
return u.toString();
|
||||
};
|
||||
// Newest lines matter most, so truncate from the head — measured on the
|
||||
// REAL encoded URL, not an estimate.
|
||||
let logs = consoleText;
|
||||
const withLogs = (s: string) => {
|
||||
const probe = new URL(u.toString());
|
||||
probe.searchParams.set('console-output', s || '(buffer empty)');
|
||||
return probe.toString();
|
||||
};
|
||||
while (logs.length > 0 && withLogs(logs).length > BUDGET) {
|
||||
while (logs.length > 0 && url(logs).length > BUDGET) {
|
||||
const nl = logs.indexOf('\n');
|
||||
logs = nl === -1 ? '' : logs.slice(nl + 1);
|
||||
}
|
||||
u.searchParams.set('console-output', logs || '(buffer empty)');
|
||||
return u.toString();
|
||||
return url(logs);
|
||||
}
|
||||
```
|
||||
|
||||
`ShBugReport` rebuilds the URL on hover, focus and click — it embeds the
|
||||
*current* page and buffer — and renders a real `<a target="_blank">`, so the
|
||||
visitor can see, copy or middle-click the target. Opening it sends the
|
||||
prefilled fields to GitHub as URL parameters; nothing is filed until the
|
||||
visitor submits the form (docs/09 §8).
|
||||
visitor can see, copy or middle-click the target. Before hydration (or
|
||||
without JS) it points at `BUG_FORM_URL`, the bare template. Opening it sends
|
||||
the prefilled report to GitLab as URL parameters; nothing is filed until the
|
||||
visitor submits the issue (docs/09 §8). A signed-out visitor is sent to
|
||||
GitLab's sign-in first.
|
||||
|
||||
**`BUDGET = 5000`** — measured by spike S3 against github.com (2026-07-27,
|
||||
two probes per length):
|
||||
**`BUDGET = 5000`** — first measured by spike S3 against github.com
|
||||
(2026-07-27, two probes per length):
|
||||
|
||||
| Total URL length | GitHub response |
|
||||
|---|---|
|
||||
@@ -364,13 +373,22 @@ two probes per length):
|
||||
| ~8 160 | connection reset |
|
||||
| ≥ 8 360 | `414` URI Too Long |
|
||||
|
||||
The important part is the *shape*: GitHub does not degrade gracefully into a
|
||||
414. There is a ~1.3 KB band where it plainly 500s, and the only person who
|
||||
ever meets it is a user who just clicked "Report a bug" — the worst possible
|
||||
moment for an error page. So the budget sits **~25 % below the first observed
|
||||
failure (6 660)**, not at 80 % of the hard 414 limit: 80 % of 8 360 is 6 688,
|
||||
which lands inside the 500 band. Re-measure if GitHub changes; the constant is
|
||||
an observation, not a standard.
|
||||
GitHub did not degrade gracefully into a 414: there was a ~1.3 KB band where
|
||||
it plainly 500'd, and the only person who ever meets it is a user who just
|
||||
clicked "Report a bug". So the budget sat **~25 % below the first observed
|
||||
failure (6 660)**.
|
||||
|
||||
Re-measured against **gitlab.com** on 2026-11-24, on this project's
|
||||
new-issue URL with `issuable_template`, `issue[title]` and a padded
|
||||
`issue[description]` (signed out, so a success is the redirect to sign-in):
|
||||
|
||||
| Total URL length | GitLab response |
|
||||
|---|---|
|
||||
| 4 000 · 5 000 · 6 500 · 8 000 | `302` → `/users/sign_in` |
|
||||
| 12 000 | `400` |
|
||||
|
||||
The same budget is well inside what GitLab takes, so it stays. Re-measure if
|
||||
GitLab changes; the constant is an observation, not a standard.
|
||||
|
||||
## A7 — Legal-gate version check
|
||||
|
||||
|
||||
+3
-2
@@ -107,7 +107,8 @@ line "Code GPL-3.0 · Data CC BY-SA 4.0", build date) · **Browse** (Apps,
|
||||
Categories, Search) · **Open data** (`/api/apps.json`, `/rss.xml`, the CC
|
||||
BY-SA 4.0 data licence) · **Legal** (all seven documents, the
|
||||
Accessibility Statement last) · **Project**
|
||||
(Contact, GitHub ↗, Releases ↗, `ShBugReport` "Report a bug").
|
||||
(Contact, Source code ↗ and Releases ↗ on Gitea, `ShBugReport` "Report a bug"
|
||||
— a prefilled issue on the GitLab mirror; D38).
|
||||
|
||||
## 5. Pages
|
||||
|
||||
@@ -184,7 +185,7 @@ lists all seven on every page, and repeating them a screen apart is noise.
|
||||
**Contact `/contact`** — one card per purpose (nine `@poli0981.dev`
|
||||
addresses from `src/lib/contacts.ts`, ordered by urgency: security first,
|
||||
press and collaboration last; the DMCA card links Terms `#copyright`), a
|
||||
panel pointing everything else to GitHub issues, and a languages note.
|
||||
panel pointing everything else to issues on the GitLab mirror, and a languages note.
|
||||
Gate-exempt: a security or copyright notice must never wait behind "I
|
||||
understand and accept".
|
||||
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
1. Log in to the Cloudflare dashboard → **Workers & Pages**.
|
||||
2. If the account has no `workers.dev` subdomain yet, set it once
|
||||
(Workers & Pages → account **Subdomain**). Since the domain arrived
|
||||
(2026-07-20) it only shapes **PR preview URLs**
|
||||
(`<version>-softharbor.<subdomain>.workers.dev`) — production lives on
|
||||
`softharbor.net`.
|
||||
(2026-07-20) it only shaped **PR preview URLs**
|
||||
(`<version>-softharbor.<subdomain>.workers.dev`), which nothing makes since
|
||||
D38 — production lives on `softharbor.net`.
|
||||
3. Copy the **Account ID** (right sidebar of the Workers overview).
|
||||
4. Onboard the `softharbor.net` zone — Free plan, nameservers, DNSSEC —
|
||||
per **docs/16 §2** (action item H2). The zone must exist before the
|
||||
@@ -46,9 +46,10 @@ them untouched. Re-creating the Worker from a fresh clone therefore needs
|
||||
both domains re-attached by hand (docs/16 §3), plus the runtime secret
|
||||
(Part E).
|
||||
|
||||
**Never run `wrangler deploy` by hand while Workers Builds builds are
|
||||
queued** (A4): a queued *older* build would land after yours and roll
|
||||
production back. A local deploy also bypasses `ci`. Prefer merging.
|
||||
**Prefer merging to a hand deploy** (A4): the CI `deploy` job is the
|
||||
pipeline, and a local `wrangler deploy` bypasses `ci`. If one is ever
|
||||
needed, run it from the commit `main` points at, so the next CI deploy
|
||||
does not surprise anyone.
|
||||
|
||||
Verify after any deploy: `https://softharbor.net/` renders,
|
||||
`/apps/does-not-exist` returns **HTTP 404** with our page (not a blank
|
||||
@@ -56,37 +57,33 @@ Cloudflare 404), `_headers` rules apply (`curl -I` shows `frame-ancestors`
|
||||
— docs/09 §4), and the old `softharbor.<subdomain>.workers.dev` no longer
|
||||
serves (`workers_dev: false`). Full domain checklist: docs/16 §10.
|
||||
|
||||
### A4. Continuous deploys & previews (Workers Builds)
|
||||
### A4. Continuous deploys (the CI `deploy` job, D38)
|
||||
|
||||
- **Production:** Cloudflare **Workers Builds** — the dashboard's git
|
||||
integration, not a GitHub workflow (docs/12 §3) — builds every push to
|
||||
`main` with `pnpm run build` and deploys with `npx wrangler deploy`.
|
||||
- **PR previews:** the same integration builds each PR push and uploads a
|
||||
version with `wrangler versions upload`, producing a per-version preview
|
||||
URL (enabled by `"preview_urls": true`) that it reports on the PR.
|
||||
Previews run the legal gate — expected — and carry `X-Robots-Tag:
|
||||
noindex` from `_headers` (docs/16 §3).
|
||||
- **Builds run one at a time.** After a burst of PR pushes, a `main` merge
|
||||
can wait about **20 minutes** before its build starts, and a superseded
|
||||
queued build of `main` may be skipped (observed 2026-10-21: `ff95578`
|
||||
never deployed, `3743cfb` did). The **"Workers Builds" check run appears
|
||||
on a `main` commit only once its build starts** — its absence right after
|
||||
a merge means "queued", not "broken". A gap in `wrangler deployments
|
||||
list` means no commit reached `main`, nothing more.
|
||||
- **Release step — verify production after every merge** (docs/13 §3):
|
||||
1. wait until the merge commit's "Workers Builds" check is green;
|
||||
2. then check production itself: the new content-hashed `/_astro/` asset
|
||||
names are served, the headers (`curl -I`), the per-page CSP meta,
|
||||
`POST /api/verify` (Part E), and `/rss.xml`;
|
||||
3. never "help" with a manual `wrangler deploy` while builds are queued
|
||||
(A3).
|
||||
- The **build environment is Cloudflare's**: it must match `.nvmrc`
|
||||
(Node 26 since 2026-10-23; the image preinstalls only 22 and 24, so 26 is
|
||||
downloaded per build) and `packageManager` (pnpm 11), or production can
|
||||
differ from what CI validated — re-check after any toolchain bump
|
||||
(docs/13 §2). Node 25+ ships no Corepack; should a build ever fail to find
|
||||
pnpm, the Workers Builds variable `PNPM_VERSION=11.28.11` (the
|
||||
`packageManager` version) is the fix.
|
||||
- **Production:** `ci.yml`'s **`deploy`** job on the Gitea runner (docs/12
|
||||
§3) — after `build` and `gates` pass on a push to `main`, it runs
|
||||
`pnpm build` and `pnpm exec wrangler deploy --message "main <sha7>"` with
|
||||
the user-level secrets `CLOUDFLARE_API_TOKEN` / `CLOUDFLARE_ACCOUNT_ID`,
|
||||
then polls `/api/apps.json` until production serves the new build.
|
||||
- **Until 2026-11-24** Cloudflare **Workers Builds** (the dashboard's git
|
||||
integration) built and deployed every push to `main` from the GitHub
|
||||
repository, and uploaded a preview version per PR. It stopped with the
|
||||
GitHub account; it is **not** reconnected to the GitLab mirror, which
|
||||
would deploy a second time on every mirror push. The Worker's Settings →
|
||||
Builds shows no connected repository — keep it that way.
|
||||
- **No PR previews.** Gitea hands same-repository PRs (Renovate's
|
||||
included) the secrets, so no job a branch can run carries the Cloudflare
|
||||
token. `"preview_urls": true` stays, and `_headers` still marks
|
||||
`*.workers.dev` `noindex` (docs/16 §3), for a hand-made
|
||||
`wrangler versions upload`.
|
||||
- **The runner is the maintainer's PC:** a merge deploys when the PC is on;
|
||||
otherwise the job waits and runs when the runner comes back.
|
||||
- **Release step — verify production after every merge** (docs/13 §3): the
|
||||
job's last step already waits for the new build; then check the headers
|
||||
(`curl -I`), the per-page CSP meta, `POST /api/verify` (Part E), `/rss.xml`
|
||||
and the content-hashed `/_astro/` names.
|
||||
- The **build environment is the job container**: it reads `.nvmrc`
|
||||
(Node 26) and `packageManager` (pnpm 11) like CI, so production is built
|
||||
exactly as CI validated it.
|
||||
- Rollback: dashboard → the Worker → **Deployments** → promote a previous
|
||||
version, or `wrangler rollback`.
|
||||
|
||||
@@ -252,7 +249,7 @@ and `registerSW.js` plus the manifest link referenced from `dist/index.html`.
|
||||
Every one of the service-worker bugs this project has had was silent at
|
||||
build time, so the config being right is not evidence that the output is.
|
||||
Spike S5 verifies: SW registers under the production origin
|
||||
(`softharbor.net` — a preview URL is acceptable for early iterations, but
|
||||
(`softharbor.net` — a preview URL was acceptable for early iterations, but
|
||||
the final pass runs on the real origin), fallback fires in airplane mode,
|
||||
`autoUpdate` swaps SW without a stale lockout, and the legal gate behaves
|
||||
on the offline page (it is exempt — the page declares `gateExempt`, docs/14
|
||||
@@ -311,8 +308,9 @@ script — all let the person in.
|
||||
|
||||
**Secrets.** `TURNSTILE_SECRET` is a **runtime** secret: dashboard →
|
||||
Workers & Pages → softharbor → Settings → Variables and Secrets, or
|
||||
`wrangler secret put TURNSTILE_SECRET`. A Workers Builds *build* variable is
|
||||
invisible to the Worker at runtime. Missing → every check answers 503 and
|
||||
`wrangler secret put TURNSTILE_SECRET`. A build-time variable (a CI
|
||||
`env:`) is invisible to the Worker at runtime, and a deploy never touches
|
||||
the runtime secret. Missing → every check answers 503 and
|
||||
the gate fails open, so the site works but nobody is verified — check it
|
||||
after re-creating the Worker (docs/13 §2). Set in production: verified
|
||||
2026-10-21 — a junk token got `403 {"error":"rejected"}`, not
|
||||
|
||||
+61
-52
@@ -18,10 +18,10 @@ honest-privacy story.
|
||||
|---|---|---|---|
|
||||
| T1 | Visitors' machines | A listed app is/becomes malware; user installs it trusting us | Inclusion criteria C5–C7; vetting checklist §6; dated `security.status` (never a guarantee — hard rule 4); quarantine pipeline (docs/03 §5); monthly re-verification (docs/13 §6); Disclaimer (docs/14 §3a) |
|
||||
| T2 | Visitors | Typosquat/mirror `links.download` sneaks into a PR | Official-domain rule (hard rule 8); L4 human review compares domain to vendor's known domain; lychee catches parked/dead domains; PRs from non-maintainers never auto-merge |
|
||||
| T3 | Site integrity | Supply-chain compromise of a dependency poisons the build | §7: frozen lockfile, `allowBuilds` allowlist, Dependabot + osv-scanner + `pnpm audit`, SHA-pinned actions, CodeQL + SonarCloud, minimal dependency count |
|
||||
| T3 | Site integrity | Supply-chain compromise of a dependency poisons the build | §7: frozen lockfile, `allowBuilds` allowlist, Renovate (3-day release age) + osv-scanner + `pnpm audit`, SHA-pinned actions, the ops `security.yml` (gitleaks, Opengrep, osv-scanner) + Qodana, minimal dependency count |
|
||||
| T4 | Site integrity | XSS via data fields | All rendering through Astro's default escaping; `set:html` lint-banned (`astro/no-set-html-directive`) except five named files that inline build-time SVG, JSON-LD or one constant (docs/10 §3); JSON-LD escapes `<`; schema constrains URLs to https; CSP §4 as backstop |
|
||||
| T5 | Visitors | Clickjacking / framing on a look-alike site | `frame-ancestors 'none'` + `X-Frame-Options: DENY` (and on Worker responses, §4a) |
|
||||
| T6 | Repo | Malicious PR alters workflows/scripts/the Worker | Ruleset on `main`: PR required, **signed commits**, required checks (docs/12 §8); CODEOWNERS on `.github/**`, `scripts/**`, `src/data/**`, `worker/**`; every workflow declares least `permissions:` (the repo default token is read-write); `persist-credentials: false` on checkout; step outputs reach shell only via `env:` (no `${{ }}` in `run:`) |
|
||||
| T6 | Repo | Malicious PR alters workflows/scripts/the Worker | Gitea branch protection on `main`: PR required, owner-only push, required checks `CI / build (*)` + `CI / gates (*)` (docs/12 §8); only the owner can open PRs on Gitea — outside merge requests arrive on the GitLab mirror, where no CI runs, and are applied by hand (D38); CODEOWNERS on `.gitea/`, `scripts/`, `src/data/`, `worker/`; every workflow declares least `permissions:` (the repo default token is read-write); `persist-credentials: false` on checkout; step outputs reach shell only via `env:` (no `${{ }}` in `run:`) |
|
||||
| T7 | Availability | DDoS, floods, runaway scrapers | Cloudflare's edge DDoS protection absorbs volumetric attacks before any code runs. Above that, the Worker's site-wide limit (D32, docs/08 Part F): 60 requests per 10 s per IPv4 or IPv6 /64 for every page, feed and data file, answered with our own 429 page or JSON — measured to hold a client on one connection (every browser, most scrapers) but not a flood opening a new connection per request, which is what the recommended zone rule in front of it is for (docs/16 §9.1). The files a page loads are never limited, so a page that passed loads whole; the limit and `/api/verify` both fail open, so an outage of either locks nobody out (§4a) |
|
||||
| T8 | Users' privacy | Tracking/leakage | No cookies, no ads, no fingerprinting by us. Two Cloudflare services only, both started by our code: Web Analytics (cookieless; never under Global Privacy Control or off the production host) and Turnstile (only after the documents are accepted). The CSP allows exactly their origins (§4); storage inventory §8 |
|
||||
| T9 | The domain itself | `softharbor.net` hijack (registrar/DNS) or email spoofing "from" the domain | Registrar transfer lock + auto-renew, DNSSEC enabled, zone changes only via the dashboard (custom domains are attached there, docs/16 §3); SPF + DMARC `p=quarantine` observed 2026-10-21 (→ `reject` planned) — docs/16 §2/§6 |
|
||||
@@ -267,11 +267,10 @@ secret — verified after each deploy (docs/13 §3).
|
||||
|
||||
```
|
||||
Contact: mailto:security@poli0981.dev
|
||||
Contact: https://github.com/poli0981/softharbor/security/advisories/new
|
||||
Preferred-Languages: en, vi
|
||||
Expires: 2027-07-28T00:00:00.000Z
|
||||
Canonical: https://softharbor.net/.well-known/security.txt
|
||||
Policy: https://github.com/poli0981/softharbor/blob/main/SECURITY.md
|
||||
Policy: https://git.poli0981.dev/poli0981/softharbor/src/branch/main/SECURITY.md
|
||||
```
|
||||
|
||||
Served as `text/plain; charset=utf-8` (a `_headers` rule — RFC 9116 §3).
|
||||
@@ -281,9 +280,11 @@ Mail for `poli0981.dev` is delivered to a Google-hosted mailbox (MX
|
||||
`aspmx.l.google.com`, docs/16 §6). `Expires` rolls forward yearly
|
||||
(docs/13 §6).
|
||||
|
||||
Root `SECURITY.md`: supported target = latest deploy only; report via
|
||||
GitHub *Private vulnerability reporting* (action item H4) or
|
||||
`security@poli0981.dev`; acknowledgment ≤ 72 h; scope = the site, its
|
||||
Root `SECURITY.md`: supported target = latest deploy only; report by
|
||||
e-mail to `security@poli0981.dev` — the only private channel since D38
|
||||
(GitHub's private vulnerability reporting, and the second `Contact:` line
|
||||
that pointed at it, went with the GitHub account), never a public issue on
|
||||
the GitLab mirror; acknowledgment ≤ 72 h; scope = the site, its
|
||||
build, its workflows, **the `/api/verify` endpoint** (`worker/`) and the
|
||||
dataset (wrong/dangerous link reports are explicitly welcome and handled via
|
||||
the quarantine flow); out of scope = vulnerabilities in *listed third-party
|
||||
@@ -356,14 +357,18 @@ does not read issue labels.
|
||||
`wrangler deploy --dry-run` in CI, neither of which needs `workerd`.
|
||||
Whether `wrangler dev` (with `.dev.vars`) runs with the script blocked:
|
||||
⚠ verify. Flipping any entry to `true` requires a decision-log line.
|
||||
- **`overrides`** in `pnpm-workspace.yaml` force patched floors for
|
||||
`minimatch` and `fast-uri`, each with the advisory ids in a comment.
|
||||
Both reach us only through dev tooling (the eslint toolchain,
|
||||
`@astrojs/check`'s language server); nothing ships to a visitor.
|
||||
`minimatch` (GHSA-g3hv-75wg-m249, ≥ 11.0.1, added 2026-11-04) crosses a
|
||||
major — eslint and typescript-eslint ask for 10 — which is accepted only
|
||||
because every caller uses API 11 kept and lint covers the same 157 files
|
||||
with the same rules either side. Every minimatch 11 requires
|
||||
- **`overrides`** in `pnpm-workspace.yaml` force patched floors —
|
||||
today only `fast-uri` (≥ 3.1.9, the advisory ids in a comment; ajv 8.20
|
||||
still ranges `^3.0.1`), reached only through `@astrojs/check`'s language
|
||||
server; nothing ships to a visitor. `minimatch` (GHSA-g3hv-75wg-m249,
|
||||
≥ 11.0.1, added 2026-11-04) was **retired on 2026-11-24**:
|
||||
typescript-eslint 8.73 asks for ^11.0.1 itself. It had crossed a major for
|
||||
that one caller, accepted only because the caller used API 11 kept, and
|
||||
had been scoped to it since 2026-11-16 — eslint 10.15 and
|
||||
`@eslint/config-array` asked for ^11.0.5 themselves, and a global
|
||||
`^11.0.1` floor had held them on 11.0.4, below their own range: an
|
||||
override must never be looser than what a caller already asks for. Every
|
||||
minimatch 11 requires
|
||||
brace-expansion ≥ 5.0.12, so that floor was retired the same day, as was
|
||||
`miniflare>undici` once miniflare itself pinned the fixed 7.30.1.
|
||||
`glob` (GHSA-3g3m-2fjr-6pw4) and `serialize-javascript`
|
||||
@@ -372,15 +377,17 @@ does not read issue labels.
|
||||
`@vite-pwa/astro` 2 (nothing depends on glob any more;
|
||||
`@vite-pwa/workbox-build` 8 asks for serialize-javascript ≥ 7.1.4 itself).
|
||||
CI's OSV-Scanner step fails `gates` on any of them, so a new transitive
|
||||
advisory blocks every PR — Dependabot's included — until it is handled
|
||||
advisory blocks every PR — Renovate's included — until it is handled
|
||||
here. Remove a line once upstream's own range moves past it.
|
||||
- **`packageExtensions`** (since 2026-11-09) give `@astrojs/astro2tsx`
|
||||
0.1.3 the `@emnapi/runtime` 1.11.3 that matches the `@emnapi/core` it
|
||||
pins. Rolldown 1.3.0 (Astro 7.4.7) brought `@emnapi/runtime`
|
||||
2.0.0-beta.2 into the graph, pnpm resolved astro2tsx's peer to it, and
|
||||
the mismatched pair threw on import — which `astro check` reports as
|
||||
"`@astrojs/check` is not installed" (Dependabot #67). Remove the entry
|
||||
once an astro2tsx release declares the runtime itself.
|
||||
- **`packageExtensions`** (2026-11-09 → 2026-11-24) gave
|
||||
`@astrojs/astro2tsx` 0.1.3 the `@emnapi/runtime` 1.11.3 that matched the
|
||||
`@emnapi/core` it pinned: Rolldown 1.3.0 (Astro 7.4.7) had brought
|
||||
`@emnapi/runtime` 2.0.0-beta.2 into the graph, pnpm resolved astro2tsx's
|
||||
peer to it, and the mismatched pair threw on import — which `astro check`
|
||||
reported as "`@astrojs/check` is not installed" (GitHub Dependabot PR
|
||||
#67). **Retired on 2026-11-24:** astro2tsx 0.1.4 declares the runtime
|
||||
itself. If `astro check` ever claims it is not installed again, import
|
||||
the package directly with Node to see the real error.
|
||||
- **`@vite-pwa/astro` 2** (adopted 2026-11-09 at 2.0.1, a rewrite on
|
||||
`@unplugin-pwa` 0.0.x). 2.0.0 was refused on 2026-11-04: under pnpm's
|
||||
strict layout it emitted a service worker with bare
|
||||
@@ -400,36 +407,38 @@ does not read issue labels.
|
||||
is gone.
|
||||
- **Advisories no release fixes yet** cannot get an override, so they are
|
||||
skipped by id instead — narrowly, in two places that must agree:
|
||||
`osv-scanner.toml` (`[[IgnoredVulns]]`, each with an `ignoreUntil`
|
||||
expiry and a reason, so the gate fails again and makes someone look) and
|
||||
`auditConfig.ignoreGhsas` in `pnpm-workspace.yaml` for
|
||||
`pnpm audit --prod`. Only for code that merges or reads our own input at
|
||||
build time and ships nothing to a visitor. Current entry (added
|
||||
2026-10-30, expires 2027-01-31): `deepmerge` ≤ 4.3.1,
|
||||
GHSA-gcqx-w48m-w2h4 (low) — 4.3.1 is the latest release; it reaches us
|
||||
through `@sveltejs/vite-plugin-svelte` (merging `svelte.config.js`); its
|
||||
second path, `workbox-build` 7 → `@rollup/plugin-node-resolve`, left with
|
||||
`@vite-pwa/astro` 2 on 2026-11-09. Once a fixed release exists, remove both lines and add an
|
||||
override floor if upstream's range does not reach it.
|
||||
`osv-scanner.toml` (`[[IgnoredVulns]]`, each with an `effectiveUntil`
|
||||
expiry — osv-scanner 2.x deprecated `ignoreUntil` — and a reason, so the
|
||||
gate fails again and makes someone look) and `auditConfig.ignoreGhsas` in
|
||||
`pnpm-workspace.yaml` for `pnpm audit --prod`. Only for code that merges
|
||||
or reads our own input at build time and ships nothing to a visitor.
|
||||
**No entry today.** The last one, `deepmerge` ≤ 4.3.1
|
||||
(GHSA-gcqx-w48m-w2h4, low; skipped 2026-10-30, through
|
||||
`@sveltejs/vite-plugin-svelte` merging `svelte.config.js`), was
|
||||
**withdrawn** by its publisher on 2026-11-16; osv-scanner reported the
|
||||
skip unused, and both lines went on 2026-11-24.
|
||||
- **pnpm 11's default 24 h `minimumReleaseAge`** refuses any release younger
|
||||
than a day; Dependabot's 2-day cooldown keeps its PRs installable under
|
||||
than a day; Renovate's 3-day release age keeps its PRs installable under
|
||||
`--frozen-lockfile` (docs/12 §6).
|
||||
- **Dependabot** (weekly, npm + github-actions, docs/12 §6) replaced
|
||||
Renovate on 2026-10-21 — Renovate was never installed and never ran.
|
||||
Dependabot security updates are enabled in the repository settings.
|
||||
`osv-scanner` + `pnpm audit --prod` gate every PR and push to `main`
|
||||
(`ci.yml` `gates` job — docs/01 §5, docs/12 §2). CodeQL runs on PRs,
|
||||
pushes and weekly; SonarQube Cloud's CI-based analysis (`ci.yml` `sonar`
|
||||
job, `sonar-project.properties`) covers workflows, scripts and the site
|
||||
code, with coverage, on every PR and push to `main`; Qodana (`qodana-js`,
|
||||
D35) adds WebStorm's inspections over the same scope, its findings in
|
||||
GitHub code scanning beside CodeQL's.
|
||||
- All GitHub Actions in this repository's workflows pinned to **commit
|
||||
SHAs** with a version comment (Dependabot bumps both); the org's own
|
||||
reusable workflows (`poli0981/.github`) are tracked at `@main` on purpose.
|
||||
`notify.yml` passes the one secret it needs, not `secrets: inherit`.
|
||||
- **Signed commits** are required on `main` by the ruleset; the quarantine
|
||||
bot signs through the API (docs/12 §4/§8).
|
||||
- **Renovate** (since D38, the owner's self-hosted Renovate on Gitea —
|
||||
`renovate.json` extends `poli0981/renovate-config`, docs/12 §6): grouped
|
||||
non-major PRs, a 3-day release age for npm, and OSV security PRs that
|
||||
skip the wait. (Dependabot did this from 2026-10-21 until the GitHub
|
||||
account was suspended.) `osv-scanner` + `pnpm audit --prod` gate every PR
|
||||
and push to `main` (`ci.yml` `gates` job — docs/01 §5, docs/12 §2). The
|
||||
ops `security.yml` — gitleaks over the whole history, Opengrep SAST,
|
||||
osv-scanner — runs on PRs, pushes and weekly, replacing CodeQL; Qodana
|
||||
(`qodana-js`, D35) adds WebStorm's inspections, its findings in Qodana
|
||||
Cloud. SonarQube Cloud left with GitHub (D38).
|
||||
- Every action in this repository's workflows is pinned to a **commit
|
||||
SHA** with a version comment (Renovate bumps both); the ops repository's
|
||||
reusable workflows are pinned to the commit of an ops tag (bumped by
|
||||
hand), never a moving branch. `notify.yml` passes the one secret it needs,
|
||||
not `secrets: inherit`.
|
||||
- **Signed commits:** the maintainer's are GPG-signed and Gitea verifies
|
||||
them against the key on the account; branch protection does **not**
|
||||
require them since D38, because the bots' commits (quarantine,
|
||||
vt-recheck) cannot be signed through Gitea's API (docs/12 §4/§8).
|
||||
- Dependency budget: adding any new runtime dependency requires a
|
||||
decision-log entry; prefer zero-dependency utilities.
|
||||
|
||||
@@ -462,7 +471,7 @@ what — the list the Privacy Policy mirrors (`/legal/privacy`):
|
||||
| Our Worker's rate limit (D32) | every page, feed and data request | the IP address (IPv6: its /64) as the key of a counter Cloudflare's rate limiter keeps for 10 s; never logged — a refusal logs only its kind (docs/08 Part F) |
|
||||
| Cloudflare Web Analytics (D26) | page loads on `softharbor.net` only, **never** when `navigator.globalPrivacyControl === true` | page URL, referrer, load timings, user-agent; cookieless; we see totals |
|
||||
| Cloudflare Turnstile (D25) | once, after the documents are accepted | browser/device signals inside its iframe; the token plus IP go to Siteverify via our Worker (§4a) |
|
||||
| GitHub | only if the visitor opens "Report a bug" | the prefilled URL carries page URL, user-agent and recent error lines — GitHub receives them **when the link is opened**; nothing is filed until the visitor submits (docs/05 §A6) |
|
||||
| GitLab (the mirror, D38) | only if the visitor opens "Report a bug" | the prefilled URL carries page URL, user-agent and recent error lines — GitLab receives them **when the link is opened**; nothing is filed until the visitor submits (docs/05 §A6). GitHub until 2026-11-24 |
|
||||
| Google | only if someone emails us | `@poli0981.dev` mail is delivered to a Google-hosted mailbox |
|
||||
|
||||
Adding a party, a key or a store is a change to this table, to the
|
||||
|
||||
@@ -153,15 +153,16 @@ break parity would be the one edit that skips the gate.
|
||||
|
||||
Conventional Commits, lowercase, imperative: `feat:`, `fix:`, `data:`
|
||||
(dataset changes — custom type, allowed), `docs:`, `chore:`, `ci:`,
|
||||
`refactor:`, `test:`. Scope optional (`feat(search): …`); Dependabot uses
|
||||
`fix(deps)` / `chore(deps)` / `ci`. One logical change per PR; PR
|
||||
`refactor:`, `test:`. Scope optional (`feat(search): …`); dependency PRs
|
||||
(Renovate's, or the maintainer's upkeep) use `chore(deps)` / `fix(deps)`. One logical change per PR; PR
|
||||
description links the doc section it implements and follows
|
||||
`.github/PULL_REQUEST_TEMPLATE.md` (checks, the accessibility checklist,
|
||||
data-PR checklist — v1.4).
|
||||
|
||||
Commits are **signed** — the `main` ruleset rejects unsigned ones (docs/12
|
||||
§8). **Squash is the only merge method**: GitHub cannot sign a rebase merge
|
||||
under that rule, and a merge commit breaks the required linear history. The
|
||||
The maintainer's commits are **GPG-signed**; Gitea verifies them against
|
||||
the key on the account. Branch protection does not *require* signatures
|
||||
since D38 — the bots cannot sign (docs/12 §8). **Squash is the merge
|
||||
method**: one commit per change on `main`, a linear history. The
|
||||
squash title must itself be a valid conventional commit (it feeds the
|
||||
changelog), and the squash body lists every commit subject of the branch.
|
||||
|
||||
@@ -213,5 +214,5 @@ same PR — divergence is a defect.
|
||||
gets one keyboard-only pass and a screen-reader spot check, and keeps
|
||||
working at 320 px, at 200 % zoom and in forced colours. A rule that
|
||||
cannot be met is explained in the PR, never disabled silently.
|
||||
9. After the squash merge: the "Workers Builds" check on the merge commit
|
||||
is green and production is verified (docs/13 §3).
|
||||
9. After the squash merge: the merge commit's CI run — its `deploy` job
|
||||
included — is green and production is verified (docs/13 §3).
|
||||
+14
-8
@@ -44,10 +44,9 @@ Thresholds are a **ratchet**: statements 96 · branches 85 · functions 95 ·
|
||||
lines 97, just under the measured 96.7 / 85.6 / 95.5 / 97.6 (2026-10-23;
|
||||
they were 93/78/90/93 over the narrower scope). Raise them when coverage
|
||||
rises; never lower them to land a change. CI runs `pnpm coverage` as *the*
|
||||
unit step, so a drop fails the PR, and the `sonar` job sends the same
|
||||
`coverage/lcov.info` to SonarQube Cloud (docs/12 §2), which indexes no
|
||||
`.svelte`/`.astro` file — the islands' entries are reported unresolved — and
|
||||
excludes only the root `*.config.*` files.
|
||||
unit step, so a drop fails the PR. (Until D38 the `sonar` job also sent
|
||||
`coverage/lcov.info` to SonarQube Cloud; the report is still written, for
|
||||
local reading.)
|
||||
|
||||
## 2. Unit targets (`vitest`)
|
||||
|
||||
@@ -143,7 +142,13 @@ Neither is optional — both change shipped behavior:**
|
||||
- **Exit:** all green; `trinh duyet`, `trình duyệt`, `TRINH DUYET`,
|
||||
decomposed `trình duyệt` return identical result sets.
|
||||
|
||||
### S3 — GitHub Issue-Forms prefill limit
|
||||
### S3 — Issue prefill limit (GitHub, then GitLab)
|
||||
|
||||
> **2026-11-24 (D38):** bug reports moved to the GitLab mirror, which takes a
|
||||
> Markdown `issue[description]` instead of form fields. Re-measured on
|
||||
> gitlab.com: 4 000 – 8 000 characters → `302` (signed out: to sign-in),
|
||||
> 12 000 → `400`; `BUDGET = 5000` stands (docs/05 §A6). The GitHub
|
||||
> record below is history.
|
||||
- **Goal:** find the real max URL length github.com accepts with form-field
|
||||
prefill, and confirm params map to field ids.
|
||||
- **Method:** hand-craft URLs against a scratch repo's `bug_report.yml`,
|
||||
@@ -285,7 +290,8 @@ blocks merge:
|
||||
- **`gates` job:** validate:data, i18n:check, osv-scanner, `pnpm audit
|
||||
--prod`, and on PRs a lychee sweep of the official links the PR changed.
|
||||
|
||||
CodeQL also runs per PR (its check is required). The weekly full link
|
||||
The ops `security.yml` (gitleaks, Opengrep, osv-scanner) also runs per PR
|
||||
— not required. The weekly full link
|
||||
sweep runs on schedule (docs/12 §5). There is no lychee pass over `dist/`
|
||||
internal links; `check:assets` verifies every same-origin asset a page
|
||||
references, and page-to-page links are covered by the e2e page set.
|
||||
@@ -329,5 +335,5 @@ D33; it was serious/critical only).
|
||||
**Not covered by `astro preview`:** `_headers` and the Worker — which is
|
||||
why the `worker` project exists. What neither server can show — the real
|
||||
edge, the production secret, Cloudflare's distributed counters — is
|
||||
verified on the Workers Builds preview URL and in production after each
|
||||
merge (docs/13 §3).
|
||||
verified in production after each merge, by the CI `deploy` job's own
|
||||
check and docs/13 §3 (preview versions went with Workers Builds, D38).
|
||||
+341
-584
File diff suppressed because it is too large.
Load diff
+32
-24
@@ -12,9 +12,13 @@ TypeScript 7, CI-based SonarQube Cloud, catalogue batch 2 (2026-10-23),
|
||||
**`v1.4.0`** for accessibility — the statement, the "/" switch, the WCAG
|
||||
2.2 fixes and the Accessibility category (D33, D34, 2026-11-09),
|
||||
**`v1.4.1`** for the start of maintenance mode and Qodana (D36, D35,
|
||||
2026-11-15),
|
||||
minor tags when a feature phase ships. Publishing a GitHub Release fires `notify.yml` →
|
||||
Discord (docs/12 §2). Data changes never tag. `CHANGELOG.md`
|
||||
2026-11-15), **`v1.5.0`** for the move to Gitea — the forge, CI, deploy and
|
||||
the GitLab bug report — with catalogue batch 4 alongside (D38, D39,
|
||||
2026-11-24; the first release tagged and published on Gitea),
|
||||
minor tags when a feature phase ships. Publishing a release — on Gitea since
|
||||
D38, by hand — fires `notify.yml` → Discord (docs/12 §2). Tags v1.0.0–v1.4.1
|
||||
were GitHub releases; the tags moved to Gitea with the code, their release
|
||||
pages did not. Data changes never tag. `CHANGELOG.md`
|
||||
(Keep-a-Changelog, dates UTC) records feature work and anything a visitor
|
||||
should know — v1.1.0 leads with the privacy changes — not app additions:
|
||||
the RSS feed *is* the data changelog.
|
||||
@@ -23,8 +27,8 @@ the RSS feed *is* the data changelog.
|
||||
**patch** (`v1.4.x`) when a fix is worth announcing — a security fix, a
|
||||
bug or accessibility fix a visitor would notice, an urgent dependency or
|
||||
runtime update — and a **minor** for a platform major (TypeScript 7
|
||||
alone, Astro, Wrangler). Routine Dependabot merges and data changes
|
||||
still never tag.
|
||||
alone, Astro, Wrangler, the forge — D38). Routine dependency merges
|
||||
(Renovate's) and data changes still never tag.
|
||||
|
||||
## 2. Launch checklist (gate for calling it v1.0.0)
|
||||
|
||||
@@ -139,14 +143,14 @@ Quality bar
|
||||
## 3. Release sequence (every merge, every tagged release)
|
||||
|
||||
**After every merge to `main` — verify production, never assume it.**
|
||||
Workers Builds runs one build at a time; after a burst of PR pushes a
|
||||
`main` merge can wait about 20 minutes, and a superseded queued `main` build
|
||||
may be skipped (docs/12 §3).
|
||||
The merge commit's CI run deploys: `build` and `gates`, then the `deploy`
|
||||
job (`wrangler deploy`, docs/12 §3). The runner is the maintainer's PC, so
|
||||
the run waits while it is off.
|
||||
|
||||
1. **Wait** until the merge commit's **"Workers Builds" check is green**
|
||||
(check run `Workers Builds: softharbor`, beside `build`, `gates` and
|
||||
`codeql`). The check appears only once the build *starts* — no check
|
||||
yet means "queued", not "failed".
|
||||
1. **Wait** until the merge commit's **CI run is green, its `deploy` job
|
||||
included** — that job's last step already polls `/api/apps.json` until
|
||||
production answers with the new build's `generatedAt`. (Until D38 this
|
||||
step waited for Workers Builds' "Workers Builds: softharbor" check.)
|
||||
2. **Then verify production itself:**
|
||||
- the new content-hashed `/_astro/` asset names are served (compare the
|
||||
page source with the local `dist/`), so the new build is live;
|
||||
@@ -169,17 +173,21 @@ may be skipped (docs/12 §3).
|
||||
page: `429`, `Retry-After: 10`, `Cache-Control: no-store` and the
|
||||
`_headers` set. Ten seconds later everything is `200` again;
|
||||
- `/rss.xml` serves the expected items (guid = slug, docs/05 §A4).
|
||||
3. **Never run `wrangler deploy` by hand while builds are queued** — the
|
||||
queued older build would land after it and roll production back
|
||||
(docs/08 A3).
|
||||
3. **Prefer re-running the `deploy` job to a hand `wrangler deploy`** —
|
||||
a local deploy bypasses CI (docs/08 A3).
|
||||
|
||||
**Tagged release** (`v1.1.0` and later):
|
||||
|
||||
1. Merge (squash, signed — docs/12 §8), then complete the three steps above.
|
||||
2. Update `CHANGELOG.md` and `package.json` `version`; tag `vX.Y.Z` and
|
||||
publish the GitHub Release — **release notes must be accurate before
|
||||
publishing**: `notify.yml` announces them to Discord at once (docs/12 §2;
|
||||
the manual re-run takes a `tag` input, passed on as `tag_override`).
|
||||
1. Merge (squash — docs/12 §8), then complete the three steps above.
|
||||
2. Update `CHANGELOG.md` and `package.json` `version` in the release PR;
|
||||
after it is merged and verified, push a **signed** annotated tag
|
||||
(`git tag -s vX.Y.Z`, then `git push origin vX.Y.Z`) and **publish the
|
||||
Gitea release by hand** (https://git.poli0981.dev/poli0981/softharbor/releases → New release → the tag; notes
|
||||
from the CHANGELOG section, links only — no binaries). **Release notes
|
||||
must be accurate before publishing**: `notify.yml` announces them to
|
||||
Discord at once (docs/12 §2; a manual re-run takes a `tag` input, passed
|
||||
on as `tag_override`). A release a workflow created with the job token
|
||||
would not fire `release: published`, which is why this step is manual.
|
||||
3. Manual posts where the automation doesn't reach (Discord announcement
|
||||
channels with role pings, pinned messages).
|
||||
|
||||
@@ -229,7 +237,7 @@ free tier self-sufficient → `free` (C3); Sublime Text — perpetual license
|
||||
## 5. Ongoing announcements (notify.py integration)
|
||||
|
||||
The existing cross-poster consumes `/rss.xml` (guid = slug, docs/03 §7) on
|
||||
its GitHub Actions cron and posts new items to Telegram, Discord webhook,
|
||||
its own schedule, in its own repository, and posts new items to Telegram, Discord webhook,
|
||||
Bluesky, Mastodon, X, Facebook. It announces **every `<guid>` it has not
|
||||
seen**, so its failure modes are public and irreversible. SoftHarbor-side
|
||||
contract: never reuse or rename a slug; never backdate `addedAt`; the feed
|
||||
@@ -245,11 +253,11 @@ shape or the 50-item window's order without meaning to announce.
|
||||
|---|---|
|
||||
| per-PR | vetting checklist on new/changed entries |
|
||||
| per issue / PR | triage against D36 (maintenance mode): listings, re-checks, bugs, UI/UX and accessibility are in scope; a feature request is closed as *not planned* with `wontfix` |
|
||||
| **after every merge** | wait for the merge commit's "Workers Builds" check, then verify production (§3) |
|
||||
| **after every merge** | wait for the merge commit's CI run (its `deploy` job), then verify production (§3) |
|
||||
| daily (auto) | quarantine sweep (docs/12 §4) |
|
||||
| weekly (auto) | link-check triage — the one `link-rot` issue is refreshed or closed (docs/12 §5); fix, replace with official mirror, or flag |
|
||||
| weekly (auto, Monday) | Dependabot PRs (npm + actions, 2-day cooldown) — merge when CI is green; osv/audit findings fail CI on their own |
|
||||
| daily (auto, 00:41 UTC) | VirusTotal re-check (docs/12 §4b): checks older than 90 days are re-scanned into the one `vt/recheck` PR — review and merge it; triage any `[vt] <slug>` issue (false positive → back to `clean` with a note; confirmed → `flagged` + `pnpm quarantine`). GitHub disables a public repo's schedules after 60 days without activity — re-enable the workflow if it ever goes quiet |
|
||||
| daily (auto, 13:31 UTC) | Renovate (central, D38): a grouped non-major PR when something is due (npm releases ≥ 3 days old, action pins), OSV security PRs at once — merge when CI is green; osv/audit findings fail CI on their own. The Dependency Dashboard issue lists what is pending |
|
||||
| daily (auto, 13:59 UTC) | VirusTotal re-check (docs/12 §4b): checks older than 90 days are re-scanned into the one `vt/recheck` PR — review and merge it; triage any `[vt] <slug>` issue (false positive → back to `clean` with a note; confirmed → `flagged` + `pnpm quarantine`). Scheduled runs need the maintainer's PC on (13:00–16:00 UTC); a run waits up to 24 h for it |
|
||||
| monthly (manual, ~10 min) | GSC review: Coverage, Core Web Vitals, hreflang errors; skim DMARC reports (docs/16 §6/§8) |
|
||||
| **annually (manual, ~2 min)** | **Roll `Expires` in `public/.well-known/security.txt` forward one year** (docs/09 §5). An expired `security.txt` is treated as invalid by scanners and researchers — and nothing else in this repo would notice. |
|
||||
| **by 2026-12-31** | **Renew the Qodana Ultimate licence** (Qodana Cloud; the scan log prints its end date) — without it every `qodana` run is red from 2027-01-01 (docs/12 §2, D35) |
|
||||
|
||||
+20
-14
@@ -16,7 +16,7 @@
|
||||
|
||||
| Scope | License | File |
|
||||
|---|---|---|
|
||||
| Code (everything except below) | **GPL-3.0-only** | `LICENSE` (add via GitHub license picker — full text, unmodified) |
|
||||
| Code (everything except below) | **GPL-3.0-only** | `LICENSE` (the full text, unmodified) |
|
||||
| Dataset `src/data/**` (app entries + category registry) | **CC BY-SA 4.0** | `LICENSE-DATA.md` |
|
||||
| Docs `docs/**` | GPL-3.0-only (with the code) | — |
|
||||
|
||||
@@ -32,7 +32,8 @@ Creative Commons Attribution-ShareAlike 4.0 International license
|
||||
(CC BY-SA 4.0): https://creativecommons.org/licenses/by-sa/4.0/
|
||||
|
||||
**Attribution format:** "SoftHarbor contributors —
|
||||
https://github.com/poli0981/softharbor (CC BY-SA 4.0)".
|
||||
https://git.poli0981.dev/poli0981/softharbor (CC BY-SA 4.0)" — the repository's address since D38 (2026-11-24);
|
||||
an attribution made earlier names `https://github.com/poli0981/softharbor`.
|
||||
|
||||
You may copy, redistribute, and adapt the dataset, including commercially,
|
||||
provided you give the attribution above, link the license, indicate
|
||||
@@ -178,8 +179,8 @@ maximum extent permitted by law we accept no liability for damages arising
|
||||
from software you obtain via links on this site. (6) **Reporting a
|
||||
listing:** a dangerous one — a hijacked, look-alike or malicious download
|
||||
link — goes privately to `security@poli0981.dev`, not to a public issue, so
|
||||
the bad link is not spread further; outdated or wrong information goes to a
|
||||
GitHub issue; a developer who wants their entry changed or removed writes
|
||||
the bad link is not spread further; outdated or wrong information goes to an
|
||||
issue on the GitLab mirror (a GitHub issue until 2026-11-24, D38); a developer who wants their entry changed or removed writes
|
||||
to `takedown@poli0981.dev`.
|
||||
|
||||
**VI.** SoftHarbor là trang tổng hợp phần mềm desktop độc lập, phi thương
|
||||
@@ -200,7 +201,8 @@ trong phạm vi tối đa pháp luật cho phép, chúng tôi không chịu trá
|
||||
cho thiệt hại phát sinh. (6) **Báo cáo một mục:** mục nguy hiểm — liên kết
|
||||
tải về bị chiếm quyền, giả mạo hoặc độc hại — hãy báo riêng tới
|
||||
`security@poli0981.dev`, đừng mở issue công khai, để liên kết xấu không bị
|
||||
lan rộng thêm; thông tin lỗi thời hoặc sai hãy báo qua GitHub issue; nhà
|
||||
lan rộng thêm; thông tin lỗi thời hoặc sai hãy báo qua issue trên bản sao
|
||||
GitLab của dự án; nhà
|
||||
phát triển muốn sửa hoặc gỡ mục của mình có thể viết tới
|
||||
`takedown@poli0981.dev`.
|
||||
|
||||
@@ -247,10 +249,11 @@ analytics") stopped being true with D25/D26 and is not reproduced here
|
||||
- **`#email`** — `@poli0981.dev` mail is delivered to a Google-hosted
|
||||
mailbox; used only to deal with what was written; deleted when no longer
|
||||
needed, or sooner on request.
|
||||
- **`#bug-reports`** — "Report a bug" is a link to a prefilled GitHub issue
|
||||
form: **GitHub receives** the page URL, user-agent and recent error lines
|
||||
**as soon as the link is opened**; nothing is filed until the visitor
|
||||
submits it.
|
||||
- **`#bug-reports`** — "Report a bug" is a link to a new, prefilled issue
|
||||
on the GitLab mirror: **GitLab receives** the page URL, user-agent and
|
||||
recent error lines **as soon as the link is opened**; nothing is filed
|
||||
until the visitor submits it. (GitHub until 2026-11-24 — the change that
|
||||
moved `LEGAL_VERSION` to 2026-11-24, D38.)
|
||||
- **`#links`** — developers' sites have their own policies.
|
||||
- **`#rights`** — Global Privacy Control turns statistics off; blocking
|
||||
challenges.cloudflare.com still lets you in; clearing site data removes
|
||||
@@ -312,7 +315,8 @@ vector marks, no distortion), at reasonable UI sizes, next to accurate
|
||||
information, sourced from the Simple Icons set or the vendor's official
|
||||
brand assets. "SoftHarbor" and the SoftHarbor wordmark identify this
|
||||
project. **Takedown:** if you own a mark and want its use changed or
|
||||
removed, email `takedown@poli0981.dev` or open a GitHub issue — we comply
|
||||
removed, email `takedown@poli0981.dev` or open an issue on our GitLab
|
||||
mirror — we comply
|
||||
promptly and remove the entry's logo (or the entry) while discussing.
|
||||
|
||||
**VI.** Mọi tên sản phẩm, thương hiệu và logo trên SoftHarbor là nhãn hiệu
|
||||
@@ -324,7 +328,7 @@ biến dạng), ở kích thước hợp lý, đi kèm thông tin chính xác, l
|
||||
Simple Icons hoặc bộ nhận diện chính thức của nhà phát triển. "SoftHarbor"
|
||||
và wordmark SoftHarbor nhận diện dự án này. **Yêu cầu gỡ bỏ:** nếu bạn là
|
||||
chủ sở hữu nhãn hiệu và muốn thay đổi/gỡ việc sử dụng, hãy email
|
||||
`takedown@poli0981.dev` hoặc mở GitHub issue — chúng tôi sẽ xử lý nhanh chóng và
|
||||
`takedown@poli0981.dev` hoặc mở issue trên bản sao GitLab của dự án — chúng tôi sẽ xử lý nhanh chóng và
|
||||
tạm gỡ logo (hoặc mục liên quan) trong quá trình trao đổi.
|
||||
|
||||
### 3e. Third-Party Notices — `/legal/third-party`
|
||||
@@ -342,8 +346,10 @@ asset dependencies and their licenses:
|
||||
Since v1.1 the page has two more sections. **`#services`** — the services
|
||||
that receive requests while the site is used, each with a link to its own
|
||||
privacy policy: Cloudflare (hosting and delivery, the `/api/verify`
|
||||
endpoint, Web Analytics, Turnstile) and GitHub (the repository, issues, the
|
||||
prefilled bug-report form). **`#packages` — "Every package in this
|
||||
endpoint, Web Analytics, Turnstile) and GitLab (since D38: the public
|
||||
mirror of the repository, issues, the prefilled bug-report issue — the
|
||||
source itself is on the owner's Gitea; GitHub held all three until
|
||||
2026-11-24). **`#packages` — "Every package in this
|
||||
build"**: each `dependencies` entry of `package.json` with its *installed*
|
||||
version and the license it declares, generated at **build time** by
|
||||
`src/lib/licenses.ts` (server-only, read from `node_modules`), so it cannot
|
||||
@@ -389,7 +395,7 @@ from the footer. It is still gate-exempt like every other `/legal/*` route.
|
||||
### 3g. Accessibility Statement — `/legal/accessibility`
|
||||
|
||||
Added 2026-11-09 (D33, v1.4). The visitor-facing twin of `ACCESSIBILITY.md`
|
||||
at the repository root (GitHub's community-profile "Accessibility" file):
|
||||
at the repository root:
|
||||
the two must state the same target, test record, limitations and response
|
||||
times — change one, change the other in the same PR. Plain language, user
|
||||
experiences rather than criterion numbers; English canonical, Vietnamese a
|
||||
|
||||
+22
-9
@@ -18,11 +18,18 @@ Total ≈ 17–20 focused days, **plus ~1 day for the `softharbor.net` domain
|
||||
package** (docs/16 §10) slotted between M5 and M6. Data entry (M6)
|
||||
parallelizes with earlier milestones once M2 lands.
|
||||
|
||||
**Where it stands (2026-11-15).** **Maintenance mode** since v1.4.1,
|
||||
**Where it stands (2026-11-24).** **Maintenance mode** since v1.4.1,
|
||||
released 2026-11-15 (D36): the catalogue, fixes and platform upkeep
|
||||
continue; new features do not, and §2's feature items are frozen. **373
|
||||
apps in 15 categories**, 364 `clean` and 9 `unverified`; Qodana joined
|
||||
CodeQL and SonarQube Cloud (D35).
|
||||
continue; new features do not, and §2's feature items are frozen. **390
|
||||
apps in 15 categories**, 379 `clean` and 11 `unverified` (batch 4,
|
||||
D39, added 15 Windows essentials and Local AI apps). Since D38 the
|
||||
repository lives on the owner's Gitea, CI runs on Gitea Actions and
|
||||
production deploys from CI's `deploy` job; Renovate, the ops security
|
||||
checks and Qodana do what Dependabot, CodeQL and SonarQube Cloud did.
|
||||
|
||||
*Where it stood (2026-11-15), for the record:* v1.4.1 — maintenance mode
|
||||
(D36); 373 apps in 15 categories, 364 `clean` and 9 `unverified`; Qodana
|
||||
joined CodeQL and SonarQube Cloud (D35).
|
||||
|
||||
*Where it stood (2026-11-09), for the record:* v1.4.0, released 2026-11-09 — the
|
||||
accessibility release (D33, D34): **373 apps in 15 categories**, 364 `clean`
|
||||
@@ -312,10 +319,9 @@ rule 8) · ads/affiliate links (conflicts with the trust proposition).
|
||||
| 2026-10-21 | **v1.1.0 tagged and released** after #23–#25 (merge 2c40baf: `Workers Builds: softharbor`, `build`, `gates`, `codeql` green; production checked — `/contact`, the v1.1 CSP meta, single immutable `Cache-Control`, `/api/verify` answering from the Worker with the runtime secret set) | ✅ |
|
||||
| 2026-10-21 | **Suite v2.0** (site v1.1) — a MAJOR bump by §6's rule, because D25/D26 amend hard rules 1 and 7: docs/00–16 brought in line with the code — D25–D27, the rows above, superseded statuses marked; claims that could not be checked from the repository or a live probe are marked "⚠ verify" | ✅ |
|
||||
| 2026-10-23 | **D28 — Node 26, and TypeScript 6 and 7 side by side** (amends D7, D21). `.nvmrc` `26`, engines `>=26 <27`, `@types/node` 26 — five days before Node 26's LTS promotion (2026-10-28), at the owner's request; Node 24 had entered maintenance on 2026-10-20. TypeScript follows Microsoft's documented pair: `typescript` → `npm:@typescript/typescript6` (re-exports TS 6.0.3: the API `astro check`'s language server asserts, typescript-eslint's project service and svelte2tsx load) and `@typescript/native` → `npm:typescript@7` (bin `tsc`). `pnpm check` is now `astro check && tsc --noEmit` — and that second half is the first type-check `.ts` files ever had: astro check reports `.astro` diagnostics only. Node 25+ ships no Corepack, so laptops reinstall it (`npm i -g corepack`) and Workers Builds downloads Node 26 per build (`PNPM_VERSION` is the fallback) | ✅ (owner, 2026-10-23) |
|
||||
| 2026-10-23 | **D29 — SonarQube Cloud: CI-based analysis with coverage**, replacing Automatic Analysis (which cannot import coverage and must stay off). `ci.yml` job `sonar`, not a required check; `sonar-project.properties` replaces `.sonarcloud.properties`; `sonarqube-scan-action` 8.3 with the newest CLI (8.2); `sonar.projectVersion` from `package.json` so the "previous version" new-code period finally has a baseline (every analysis until now was "not provided"). Coverage now measures what Sonar analyses instead of excluding it: the build scripts through Vitest 5's `autoAttachSubprocess` (their child-process runs count), the head scripts, the endpoints and the schema through new tests — ratchet 93/78/90/93 → **96/85/95/97**. The schema tests caught a real bug: an impossible or malformed date made `toISOString()` throw, crashing `astro build` with a bare RangeError instead of naming the field | ✅ |
|
||||
| 2026-10-23 | **D29 — SonarQube Cloud: CI-based analysis with coverage**, replacing Automatic Analysis (which cannot import coverage and must stay off). `ci.yml` job `sonar`, not a required check; `sonar-project.properties` replaces `.sonarcloud.properties`; `sonarqube-scan-action` 8.3 with the newest CLI (8.2); `sonar.projectVersion` from `package.json` so the "previous version" new-code period finally has a baseline (every analysis until now was "not provided"). Coverage now measures what Sonar analyses instead of excluding it: the build scripts through Vitest 5's `autoAttachSubprocess` (their child-process runs count), the head scripts, the endpoints and the schema through new tests — ratchet 93/78/90/93 → **96/85/95/97**. The schema tests caught a real bug: an impossible or malformed date made `toISOString()` throw, crashing `astro build` with a bare RangeError instead of naming the field | ✅ ⛔ superseded 2026-11-24 (D38: SonarQube Cloud left with GitHub) |
|
||||
| 2026-10-23 | **D30 — VirusTotal re-check, assisted not decided** (docs/09 §6 step 5; docs/12 §4b). `scripts/vt-recheck.mjs` + `vt-recheck.yml`: daily on `main`, checks older than 90 days are re-scanned (download page, VT API v3, 4/min, ≤ 440 of 500 requests a day) and only the three `security` lines change; `checkedAt` now means "latest scan" (docs/04, docs/09 §6). The bot never flags and never promotes on its own: a detection turns `clean` into `unverified` plus a `[vt] <slug>` issue, and `unverified` → `clean` happens only for slugs the maintainer passes as `promote`. Dispatched on a data branch it previews a PR's new entries as an artifact. Terms fit: the Public API is offered to sites free to consumers; SoftHarbor is free and ad-free and submits only public URLs. The site's own copy moved with it — the "no known warnings" note and the AI Disclosure now describe the re-scan (`LEGAL_UPDATED.aiDisclosure` 2026-10-23; `LEGAL_VERSION` unchanged) | ✅ (owner, 2026-10-23) |
|
||||
| 2026-10-23 | **D31 — Catalogue batch 2: 38 apps, two categories** (§2 item 10). Exempt from docs/03 §1's one-app-per-PR rule like D24 (38 researched entries, one PR). Categories `ai-local` and `cad-3d` (owner). **Not added:** Docker Desktop and Parsec — both free only under licence terms (Docker: not for larger companies; Parsec: personal, non-commercial use only), a C3 case the owner rules out; GPT4All and Ice — C5, unmaintained with open problems; QuickHash GUI — C4/C5, its only download site unreachable and no release since 2023. **C3 rulings:** LM Studio, Insomnia and RustDesk are `free` — the free tier serves the core purpose without a time limit and their subscriptions are optional add-ons (LM Studio's only for the separate Bionic agent's cloud models). **Store-only delivery meets C4** when the official download page on the developer's own domain hands off to the store (Lossless Scaling → Steam/Humble). **Licences as the sources grant them:** ShareX `GPL-2.0-or-later` (headers), KDE Connect `GPL-2.0-only OR GPL-3.0-only`, EarTrumpet `LicenseRef-EarTrumpet` (MIT plus an exclusion of three named companies), DuckStation `CC-BY-NC-ND-4.0` (source-available). Each entry was researched with AI assistance against docs/09 §6 steps 1–4 and scanned by the `vt-recheck` preview before merge (36 of 38 download pages with no detections); the owner reviewed the Vietnamese and promoted 30 to `clean`. Held `unverified`: Flameshot (unpatched advisory in its stable release), Bulk Crap Uninstaller (unsigned builds, antivirus history), OpenSCAD (2021 stable predates two CVE fixes), LM Studio (closed source, antivirus history), RustDesk (CVE backlog), AutoHotkey and LocalSend (one VirusTotal detection each), Lossless Scaling | ✅ (owner, 2026-10-23) |
|
||||
|
||||
| 2026-10-26 | **D32 — site-wide rate limit in the Worker** (amends hard rule 1 and D25; owner request, 2026-10-26). `run_worker_first` becomes `/*` minus the files a page loads — `/_astro/*`, `/icons/*`, the favicons, `apple-touch-icon.png`, the manifest, `sw.js`, `registerSW.js`, `workbox-*.js` — so every page, feed and data request runs `worker/limit.ts` first: `SITE_LIMITER` (namespace 4102), **60 per 10 s per IPv4 address or IPv6 /64**, per location. Over it: the built `/errors/429` page with status 429 (no longer dormant), `Retry-After: 10`, `no-store`; JSON under `/api/` (CORS-readable on the dataset). Fails **open** (no binding, no address, a throwing limiter); logs `{event: "rate_limited", kind}` without the address. `_headers` still apply to `env.ASSETS.fetch()` responses (measured). **Trade-offs accepted:** every routed request is a billed invocation (Workers Paid includes 10 M/month; refusals are billed too, so the limit makes floods cheap, not free); our code now processes every visitor's IP for seconds → Privacy `#rate-limit` and `LEGAL_VERSION` 2026-10-26. **Why not the zone rule alone:** on the Free zone it can only serve Cloudflare's default 429 page and cannot live in the repository; it is kept as an optional edge layer at 150 per 10 s (docs/16 §9.1). Tested end to end under `wrangler dev` by the new e2e project `worker` (docs/11 §5). **Measured on the PR preview:** over one keep-alive connection the limit holds almost exactly (61 × 200, then 429s), but a flood opening a new connection per request got no 429 at all (1 500 requests at ~20/s) — the binding counts per machine — and the production `VERIFY_LIMITER` likewise never refused 40 fresh-connection POSTs in 33 s. So the zone rule (docs/16 §9.1, H13) is the recommended first layer for floods, and the Worker's limit the polite one for browsers and keep-alive scrapers | ✅ (user, 2026-10-26) |
|
||||
| 2026-10-26 | **Suite v3.0** (site v1.3) — a MAJOR bump by §6's rule, because D32 amends hard rule 1 | ✅ |
|
||||
| 2026-11-09 | **D33 — Accessibility statement and target** (§2 item 17; owner request, 2026-11-09, after GitHub's community profile listed "Accessibility" as missing). **Target WCAG 2.2 AA**, stated as a goal and never as conformance (no audit). `ACCESSIBILITY.md` at the root (contributor-facing, GitHub's community file) and its visitor-facing twin `/legal/accessibility` + `/vi/legal/accessibility` — a seventh legal page, informational, gate-exempt, footer + Contact row; the two must say the same thing (docs/14 §3g). New contact **`accessibility@poli0981.dev`** (alias created by the owner the same day; `contacts.ts`). New localStorage key **`sh:keys`** — the display menu's switch for the "/" shortcut, because a bare printable-key shortcut must be possible to turn off (WCAG 2.1.4, level A); Privacy lists it, so **`LEGAL_VERSION` → 2026-11-09** and the gate asks everyone once more (owner's choice over dropping the switch). Fixes found by an audit despite the owner's clean keyboard + Narrator pass: an invisible focus ring on the checked display choice (2.4.7), the header pushing the display button off a 320 px screen (1.4.10 — it now wraps, and `scroll-padding-top` follows its measured height, 2.4.11), forced-colour states, 24 px category links (2.5.8), a status region that exists before its message (4.1.3), table captions/scopes/scrollable regions, the new-tab warning. axe now fails on moderate findings too and also runs on the open gate, filter sheet and display menu; `e2e/a11y.spec.ts` adds keyboard, 320 px reflow and forced-colour checks. `.github/PULL_REQUEST_TEMPLATE.md` (accessibility checklist) and `ISSUE_TEMPLATE/accessibility.yml` (label `accessibility`) | ✅ (user, 2026-11-09) |
|
||||
@@ -324,6 +330,11 @@ rule 8) · ads/affiliate links (conflicts with the trust proposition).
|
||||
| 2026-11-15 | **D35 — Qodana as a third analyser** beside CodeQL and SonarQube Cloud (owner request, 2026-11-15; Qodana Cloud project `softharbor`, **Ultimate** licence, active until 2026-12-31). `.github/workflows/qodana.yml` runs `qodana-js` 2026.2 (WebStorm's engine) in **native mode** on the runner's Node 26 and `pnpm install`, profile `qodana.recommended`, the scope of `sonar-project.properties`, over `.ts`/`.js`/`.mjs`, JSON, YAML, Markdown and CSS — **no plugins**: JetBrains' Astro and Svelte plugins were tried and dropped because their type checks were not deterministic under Qodana (on unchanged code, `Intl` methods in `ShFilterSheet.svelte` unresolved in one run of three; `Base.astro`'s `locale = 'en'` read as `string` — 15 errors in one run, none in the one before; plus 75 unused-import false positives for components used in `.astro` templates), and a gate that flips on its own is worse than none — `astro check` type-checks `.astro` with the real compiler; `failureConditions.severityThresholds.any: 0`; the report as an artifact and the SARIF in GitHub code scanning (tool `QDJS`). **Not a required check**, for D29's reason. **First run: 14 findings, all resolved** — 10 `throw`s caught by their own `try` (`worker/verify.ts` now refuses through one return path, `scripts/vt-recheck.mjs` records failures directly; responses, logs and reasons unchanged), 2 redundant `\}` regex escapes, 1 trivial `if` (`src/lib/filter.ts`), and the twin dark palette in `global.css` (DuplicatedCode — required by design, switched off for that file with the reason). Not in Ultimate: Qodana's vulnerability checker and licence audit (Ultimate Plus) — OSV, `pnpm audit` and Dependabot own the dependencies (docs/12 §2) | ✅ owner |
|
||||
| 2026-11-15 | **D36 — Maintenance mode** (owner decision, 2026-11-15). The project is maintained, not extended. **In scope:** catalogue work (add, correct, remove; VirusTotal re-checks; quarantine); bugs, UI/UX and accessibility fixes; dependency upkeep on Dependabot's weekly schedule, and out of schedule for a High or Critical advisory or a serious Node.js security release; major language and platform moves (TypeScript 6 → 7, Astro, Cloudflare Workers / Wrangler); incidents — the site down, degraded or attacked. **Out of scope:** new features — §2's feature items are frozen, and issues or PRs that propose one are closed as *not planned* (`wontfix`). Releases: a patch tag when a fix is worth announcing, a minor one for a platform major; data never tags (docs/13 §1). Announced in Discussions (https://github.com/poli0981/softharbor/discussions/75); recorded in CLAUDE.md, CONTRIBUTING.md, the README (status badge and section), SECURITY.md, the PR template and a new **Listing change** issue form (label `listing-change`) | ✅ owner |
|
||||
| 2026-11-15 | **v1.4.1 tagged and released** — maintenance mode (D36) and Qodana (D35). **Suite v3.2** (site v1.4.1) — a MINOR bump by §6's rule: no hard rule changes | ✅ |
|
||||
| 2026-11-20 | **D37 — CiselSoft's two apps: watermarked free tier** (#80, #81; suggested by the publisher, CiselSoft, by email on 2026-11-14 — credited on both issues and PRs). **Cisel Media → `onetime`:** its free tier keeps every editing tool, but exports are watermarked, capped at 1080p / 30 FPS and limited to five text and ten visual items — a crippled demo in CONTRIBUTING's sense, so the listing rests on the 49.99 USD Perpetual Pro (an annual plan is also sold; the one-time option is what qualifies it). **CloneSift → `free-onetime`:** scans and results are unlimited and only in-app removal is capped (10 files a day), so the free tier serves the core purpose; Lifetime Pro 14.99 USD. Both are closed source and delivered only through the Microsoft Store from their product pages on ciselsoft.com (C4 per D31), and both are new (first Store releases 2026-10-28 and 2026-11-12, no ratings yet). VirusTotal preview: 0 detections each. **Held `unverified`** (owner) until they have a release history; revisit at the 90-day re-check. Precedent: a free tier whose every export is watermarked counts as a crippled demo — `onetime` when a perpetual licence is sold, excluded otherwise | ✅ owner |
|
||||
| 2026-11-24 | **D38 — The forge moves to Gitea** (the GitHub account was suspended in November 2026; procedure: the owner's runbook `docs/GITEA-MIGRATION.md` in `poli0981/.github` and its softharbor guide, decided 2026-11-23). Repository on `git.poli0981.dev` (canonical, `origin`; the `github` remote is kept and never pushed); outside issues and merge requests on the GitLab push mirror `gitlab.com/poli0981/softharbor` (no CI there); patches by e-mail to `code@`. **CI** = Gitea Actions on the owner's PC runner, every cron inside 13:00–16:00 UTC on a registered slot (quarantine 13:17 daily, vt-recheck 13:59 daily, link-check Monday 14:43, security Tuesday 15:37). **Deploy:** `ci.yml` job `deploy` — `wrangler deploy` on pushes to `main` with user-level Cloudflare secrets, then waits until production serves the build; Workers Builds is gone and is not reconnected to the mirror; **no PR previews** (Gitea gives same-repo PRs the secrets). **Bots:** `scripts/gitea.mjs` opens PRs and issues, dispatches CI and writes commit statuses with the job token; a dispatched run writes no commit status on Gitea 28.4, so `ci.yml`'s `record` job does. **Replaced:** Dependabot → Renovate (`local>poli0981/renovate-config`, 3-day release age, OSV PRs); CodeQL → the ops `security.yml` (gitleaks, Opengrep, osv-scanner); `qodana-action` + SARIF → the ops `reusable-qodana.yml`; the `Run` ruleset → Gitea branch protection (`CI / build (*)`, `CI / gates (*)`; signed commits no longer *required* — the bots cannot sign). **Dropped:** SonarQube Cloud (owner, runbook D1 — supersedes D29), GitHub code scanning, Discussions (D36's announcement, #75, went with them). **Site:** source, releases and LICENSE-DATA link Gitea; "Report a bug" opens a prefilled GitLab issue (`BUDGET` 5000 re-measured on gitlab.com); `security.txt` is e-mail only; the `/api/apps.json` attribution names Gitea (shape unchanged, `schemaVersion` 1); Privacy and Third-party name GitLab instead of GitHub → `LEGAL_VERSION` 2026-11-24, the gate asks everyone again. Ops reusables pinned to `poli0981/.github` v2026.11.2 (`8e6582a`), bumped by hand | ✅ owner |
|
||||
| 2026-11-24 | **D39 — Catalogue batch 4: Windows essentials and Local AI, 15 entries** (owner request, 2026-11-24). Exempt from the one-app-per-PR rule like D24/D31/D34: one researched batch, one owner review. **Windows essentials (10):** qBittorrent, ScreenToGif, QuickLook, Flow Launcher, CopyQ, PDF24 Creator, NAPS2, Equalizer APO, scrcpy, Rainmeter — what a fresh Windows install usually needs next and the catalogue lacked. **Local AI (5):** AnythingLLM, Comfy Desktop, Stability Matrix, KoboldCpp, Buzz — `ai-local` grows from 5 to 10 entries. Optional paid clouds (AnythingLLM Cloud, Comfy Cloud, Stability Matrix's Patreon extras) do not touch local use, so all 15 are `free` (C3, as LM Studio). **Not added:** Snipaste — 2.x is free for personal, non-commercial use only (D31's Docker Desktop / Parsec ruling); XnView MP, IrfanView, FastStone and f.lux were ruled out on the same grounds before drafting. Every entry enters `unverified` with a VirusTotal preview scan of its download page (vt-recheck dispatched on the branch: 14 of 15 with 0 malicious and 0 suspicious on 2026-11-24; Flow Launcher's first scan failed to fetch and its re-scan came back clean the same day). **Owner rulings (2026-11-24):** every entry whose scan came back clean goes to `clean`; qBittorrent is included — the catalogue's first BitTorrent client, legal open-source software that ships no search sources (search is opt-in third-party plugins), so C6 does not apply; the Vietnamese summaries are approved as written | ✅ owner |
|
||||
| 2026-11-28 | **D40 — PC Tweaker: optional subscription beside Free and Lifetime** (#7, #9; suggested by its developer, Aurelio Avila, by email on 2026-11-28 to collab@, who asked whether the subscription affects eligibility — credited in README Acknowledgements and on the request). **`free-onetime`:** the Terms make 48 controls free forever with no account, and Pro is sold either as a monthly or annual subscription or as a one-time Lifetime purchase that does not expire; the free tier is neither watermarked nor capped, so the subscription is one option among others, as with CloneSift (D37). Closed source, one developer, code-signed installer, on winget and the Microsoft Store, release history from 0.4 to 1.20. VirusTotal preview: 0 detections. **Held `unverified`** (owner) like D37's entries; revisit at the 90-day re-check. The Vietnamese summary and `system` + `gaming` approved as written | ✅ owner |
|
||||
| 2026-11-24 | **v1.5.0 tagged and released** — the move to Gitea (D38), with catalogue batch 4 (D39) and the dependency upkeep; the first release tagged, published and announced from Gitea. **Suite v4.0** (site v1.5.0) — a MAJOR bump by §6's rule: D38 supersedes a locked decision (D29) and rewords hard rule 1 (Gitea Actions) | ✅ |
|
||||
|
||||
## 5. Open questions for Kokone
|
||||
|
||||
@@ -400,8 +411,8 @@ Status as of 2026-10-21: v1.0.0 shipped on 2026-07-30 and v1.1.0 on
|
||||
|
||||
## 6. Suite maintenance
|
||||
|
||||
This suite (**v3.2, 2026-11-15, describing site v1.4.1** — v3.1 was
|
||||
2026-11-09, site v1.4; v3.0 was 2026-10-26, site v1.3; v2.0 was 2026-10-21, site v1.1; v1.2 was
|
||||
This suite (**v4.0, 2026-11-24, describing site v1.5.0** — v3.2 was
|
||||
2026-11-15, site v1.4.1; v3.1 was 2026-11-09, site v1.4; v3.0 was 2026-10-26, site v1.3; v2.0 was 2026-10-21, site v1.1; v1.2 was
|
||||
2026-07-27; v1.1 was 2026-07-20 post-domain; v1.0 was 2026-07-15,
|
||||
pre-domain) is the contract. Mind the two numbering schemes: *suite* v1.1
|
||||
is the July domain revision, *site* v1.1 is the October release. Any
|
||||
@@ -411,7 +422,9 @@ rule or locked decision changes — v2.0 was major because it amended hard
|
||||
rules 1 and 7, v3.0 because D32 amends hard rule 1 again; v3.1 is minor
|
||||
(D33/D34 add a statement, a category and an identifier, `sh:keys`, and
|
||||
change no hard rule), and so is v3.2 (D35 adds an analyser, D36 freezes
|
||||
the feature backlog; no hard rule changes).
|
||||
the feature backlog; no hard rule changes). v4.0 is major again: D38 moves
|
||||
the forge, supersedes D29 (SonarQube Cloud) and rewords hard rule 1's
|
||||
"move it to a GitHub Actions workflow" as Gitea Actions.
|
||||
|
||||
**v2.0 caught the docs up with site v1.1** — the code had moved for three
|
||||
months while the suite stood still. D25–D27 and the 2026-10-21 rows of §4
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|---|---|---|
|
||||
| N1 | Canonical origin | **`https://softharbor.net`** — apex, no `www` |
|
||||
| N2 | `www.softharbor.net` | 301 → apex, path + query preserved (zone Redirect Rule) |
|
||||
| N3 | `workers.dev` main route | **Disabled** (`workers_dev: false`); PR previews stay on versioned preview URLs (`preview_urls: true` — must be explicit, since it defaults to follow `workers_dev`) |
|
||||
| N3 | `workers.dev` main route | **Disabled** (`workers_dev: false`); versioned preview URLs stay possible (`preview_urls: true` — must be explicit, since it defaults to follow `workers_dev`), though nothing makes them since D38 |
|
||||
| N4 | Zone plan | **Free** (Workers Paid is account-level and unrelated). Consequence: Cloudflare **Custom Errors stays unavailable** (paid-zone feature) → `/errors/403` and `/errors/500` remain dormant; `/errors/429` is served by the Worker since D32, not by the zone |
|
||||
| N5 | HSTS | Zone-level, phased rollout (§5) — **not** in `_headers` |
|
||||
| N6 | Rate limiting & Bot Fight Mode | Bot Fight Mode **OFF** (§9). Rate limiting: the Worker's site-wide limit since D32 (docs/08 Part F), plus the zone rule as an optional edge layer — recipe §9.1 |
|
||||
@@ -93,14 +93,14 @@ re-created from a fresh clone does **not** get its domains back from the
|
||||
config — re-attach `softharbor.net` and `www.softharbor.net` by hand
|
||||
(R1 must exist first), then set the runtime secret (docs/08 Part E).
|
||||
|
||||
Preview URLs: PR previews keep working at
|
||||
`<version-prefix>-softharbor.<account>.workers.dev`. They are unlinked,
|
||||
Preview URLs: since D38 (2026-11-24) no pipeline makes them — Workers
|
||||
Builds made one per PR until then. A hand-made `wrangler versions upload`
|
||||
still lands at `<version-prefix>-softharbor.<account>.workers.dev`. They are unlinked,
|
||||
short-lived, carry no sitemap, and since v1.1 send **`X-Robots-Tag:
|
||||
noindex`**: `_headers` supports absolute-URL patterns with placeholders,
|
||||
and the rule `https://:version.:subdomain.workers.dev/*` matches preview
|
||||
hosts and never the production domain (docs/09 §4). Their canonicals point
|
||||
at softharbor.net anyway. Never link a preview URL anywhere public except
|
||||
the PR comment.
|
||||
at softharbor.net anyway. Never link a preview URL anywhere public.
|
||||
|
||||
## 4. Redirects
|
||||
|
||||
@@ -337,10 +337,9 @@ on it.
|
||||
> redirects (R1), HSTS is at P3, DMARC is `p=quarantine`, the noindex header
|
||||
> is long gone and the GSC verification record is published (§2.2, §5, §6).
|
||||
> What recurs is the **verification after every merge** — and before it,
|
||||
> waiting for the merge commit's "Workers Builds" check to go green: builds
|
||||
> are serialized and a `main` merge can sit in the queue ~20 minutes, so an
|
||||
> unchanged site right after a merge usually means "not deployed yet", not
|
||||
> "broken" (docs/13 §3). The edge-propagation note below applies on top.
|
||||
> waiting for the merge commit's CI run — its `deploy` job — to go green:
|
||||
> the runner is the maintainer's PC, so an unchanged site right after a
|
||||
> merge usually means "not deployed yet", not "broken" (docs/13 §3, D38). The edge-propagation note below applies on top.
|
||||
>
|
||||
> **Status 2026-07-27 — apex is LIVE.** `wrangler deploy` created the apex DNS
|
||||
> record and provisioned the certificate; `https://softharbor.net` serves the
|
||||
|
||||
+13
-15
@@ -3,18 +3,16 @@
|
||||
#
|
||||
# An entry here is for an advisory that NO release fixes yet — anything with a
|
||||
# patched version gets a floor in `pnpm-workspace.yaml` `overrides` instead.
|
||||
# Every entry carries an expiry, so the gate fails again and makes someone look;
|
||||
# `pnpm-workspace.yaml` `auditConfig.ignoreGhsas` lists the same ids for
|
||||
# `pnpm audit --prod`. Remove both lines once a fixed release exists.
|
||||
|
||||
# deepmerge <= 4.3.1 (CVE-2026-93753, GitHub severity low): mergeObject() lets a
|
||||
# crafted source object set the prototype of the object it returns. 4.3.1 is
|
||||
# the latest release. It reaches us only through build tooling —
|
||||
# @astrojs/svelte -> @sveltejs/vite-plugin-svelte (merging our own
|
||||
# svelte.config.js; the second path, @vite-pwa/astro 1 -> workbox-build 7 ->
|
||||
# @rollup/plugin-node-resolve, left with @vite-pwa/astro 2 on 2026-11-09) — so
|
||||
# every input it merges is ours, and it is not part of anything the site ships.
|
||||
[[IgnoredVulns]]
|
||||
id = "GHSA-gcqx-w48m-w2h4"
|
||||
ignoreUntil = 2027-01-31
|
||||
reason = "No fixed deepmerge release; build tooling merging our own config only (docs/09 §7)"
|
||||
# Every entry carries an expiry, so the gate fails again and makes someone look:
|
||||
#
|
||||
# [[IgnoredVulns]]
|
||||
# id = "GHSA-xxxx-xxxx-xxxx"
|
||||
# effectiveUntil = 2027-01-31 # osv-scanner 2.x; `ignoreUntil` is deprecated
|
||||
# reason = "No fixed release; how it reaches us and why that is acceptable"
|
||||
#
|
||||
# `pnpm-workspace.yaml` `auditConfig.ignoreGhsas` then lists the same id for
|
||||
# `pnpm audit --prod`. Remove both once a fixed release exists.
|
||||
#
|
||||
# No exceptions today. The last one — deepmerge <= 4.3.1, GHSA-gcqx-w48m-w2h4,
|
||||
# skipped from 2026-10-30 — was WITHDRAWN by its publisher on 2026-11-16, and
|
||||
# osv-scanner reported the entry unused (2026-11-24).
|
||||
+29
-29
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "softharbor",
|
||||
"version": "1.4.1",
|
||||
"version": "1.5.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"description": "Bilingual (EN/VI) directory of free and buy-once desktop software",
|
||||
"license": "GPL-3.0-only",
|
||||
"author": "poli0981 / SkullMute",
|
||||
"packageManager": "pnpm@11.28.11",
|
||||
"packageManager": "pnpm@11.29.0",
|
||||
"engines": {
|
||||
"node": ">=26 <27"
|
||||
},
|
||||
@@ -37,51 +37,51 @@
|
||||
"vt:recheck": "node scripts/vt-recheck.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/rss": "^4.0.19",
|
||||
"@astrojs/sitemap": "^3.7.4",
|
||||
"@astrojs/svelte": "^9.1.2",
|
||||
"@astrojs/rss": "^4.0.20",
|
||||
"@astrojs/sitemap": "^3.7.7",
|
||||
"@astrojs/svelte": "^9.1.6",
|
||||
"@fontsource-variable/bricolage-grotesque": "^5.3.0",
|
||||
"@fontsource/be-vietnam-pro": "^5.3.0",
|
||||
"@fontsource/ibm-plex-mono": "^5.3.0",
|
||||
"@iconify-json/lucide": "^1.2.152",
|
||||
"@iconify-json/simple-icons": "^1.2.101",
|
||||
"@iconify-json/lucide": "^1.2.163",
|
||||
"@iconify-json/simple-icons": "^1.2.105",
|
||||
"@tailwindcss/vite": "^4.3.5",
|
||||
"@vite-pwa/astro": "2.0.1",
|
||||
"astro": "^7.4.7",
|
||||
"@vite-pwa/astro": "2.0.5",
|
||||
"astro": "^7.4.14",
|
||||
"minisearch": "^7.2.0",
|
||||
"nanostores": "^1.5.5",
|
||||
"svelte": "^5.57.3",
|
||||
"svelte": "^5.60.1",
|
||||
"tailwindcss": "^4.3.5",
|
||||
"unplugin-icons": "^24.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astrojs/check": "^0.9.12",
|
||||
"@axe-core/playwright": "^4.14.0",
|
||||
"@axe-core/playwright": "^4.14.1",
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@playwright/test": "^1.65.0",
|
||||
"@types/node": "^26.6.6",
|
||||
"@playwright/test": "^1.65.2",
|
||||
"@types/node": "^26.6.11",
|
||||
"@typescript/native": "npm:typescript@^7.0.2",
|
||||
"@vite-pwa/workbox-swkit": "^8.0.14",
|
||||
"@vite-pwa/workbox-window": "^8.0.14",
|
||||
"@vitest/coverage-v8": "5.1.0",
|
||||
"eslint": "^10.14.0",
|
||||
"eslint-plugin-astro": "^3.2.1",
|
||||
"@vite-pwa/workbox-swkit": "^8.0.15",
|
||||
"@vite-pwa/workbox-window": "^8.0.15",
|
||||
"@vitest/coverage-v8": "5.1.2",
|
||||
"eslint": "^10.16.0",
|
||||
"eslint-plugin-astro": "^3.2.3",
|
||||
"eslint-plugin-svelte": "^3.24.1",
|
||||
"globals": "^17.14.0",
|
||||
"globals": "^17.15.0",
|
||||
"happy-dom": "^21.0.4",
|
||||
"knip": "^6.44.2",
|
||||
"lefthook": "^2.2.2",
|
||||
"knip": "^6.51.0",
|
||||
"lefthook": "^2.2.4",
|
||||
"magicast": "^0.5.5",
|
||||
"prettier": "^3.9.10",
|
||||
"prettier": "^3.10.2",
|
||||
"prettier-plugin-astro": "^1.1.2",
|
||||
"prettier-plugin-svelte": "^4.1.1",
|
||||
"prettier-plugin-svelte": "^4.2.0",
|
||||
"prettier-plugin-tailwindcss": "^0.8.1",
|
||||
"rolldown": "1.3.0",
|
||||
"sharp": "^0.35.5",
|
||||
"svelte-eslint-parser": "^1.10.1",
|
||||
"rolldown": "1.3.4",
|
||||
"sharp": "^0.35.6",
|
||||
"svelte-eslint-parser": "^1.13.0",
|
||||
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
||||
"typescript-eslint": "^8.72.1",
|
||||
"vitest": "^5.1.0",
|
||||
"wrangler": "^4.158.0"
|
||||
"typescript-eslint": "^8.74.0",
|
||||
"vitest": "^5.1.2",
|
||||
"wrangler": "^4.171.0"
|
||||
}
|
||||
}
|
||||
+28
-3
@@ -13,10 +13,32 @@
|
||||
// `astro preview` applies neither _headers nor the Worker, so a second server
|
||||
// does: `wrangler dev` on the same dist/ with the real wrangler.jsonc, for the
|
||||
// `worker` project alone (e2e/worker.spec.ts — routing, the rate limits, the
|
||||
// 429 page). Cloudflare's own edge is still verified on the Workers Builds
|
||||
// preview URL.
|
||||
// 429 page). Cloudflare's own edge is verified on production after each
|
||||
// deploy (ci.yml `deploy`, docs/13 §3) — there are no preview versions since
|
||||
// the move to Gitea (D38).
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { defineConfig, devices } from '@playwright/test';
|
||||
|
||||
/**
|
||||
* CPUs this process may actually use when a cgroup v2 quota caps it — the
|
||||
* CI job container runs with `docker --cpus=4` (runner `anon-docker`, since
|
||||
* 2026-12-04), yet `os.cpus()`, which Playwright sizes its pool by, still
|
||||
* reports every core of the host (28). Fourteen workers on four CPUs made
|
||||
* axe on /apps take over 30 s instead of ~9 s and time out. `undefined`
|
||||
* (Playwright's own default) wherever no quota applies, laptops included.
|
||||
*/
|
||||
function cgroupCpuQuota(): number | undefined {
|
||||
try {
|
||||
const [quota, period] = readFileSync('/sys/fs/cgroup/cpu.max', 'utf8').trim().split(/\s+/);
|
||||
if (quota === undefined || quota === 'max' || period === undefined) return undefined;
|
||||
const cpus = Math.floor(Number(quota) / Number(period));
|
||||
return Number.isFinite(cpus) ? Math.max(1, cpus) : undefined;
|
||||
} catch {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
const CPU_QUOTA = cgroupCpuQuota();
|
||||
const PORT = 4321;
|
||||
// Not wrangler's default 8787/8788: another project's `wrangler dev` may hold
|
||||
// those, and reuseExistingServer would then test the wrong site.
|
||||
@@ -26,9 +48,12 @@ const WORKER_SPEC = /worker\.spec\.ts$/;
|
||||
export default defineConfig({
|
||||
testDir: 'e2e',
|
||||
fullyParallel: true,
|
||||
...(CPU_QUOTA === undefined ? {} : { workers: CPU_QUOTA }),
|
||||
forbidOnly: Boolean(process.env['CI']),
|
||||
retries: process.env['CI'] ? 1 : 0,
|
||||
reporter: process.env['CI'] ? [['github'], ['html', { open: 'never' }]] : 'list',
|
||||
// `list` in CI too: Gitea shows no annotations, so the github reporter's
|
||||
// terse `::error` lines would only hide the readable output.
|
||||
reporter: process.env['CI'] ? [['list'], ['html', { open: 'never' }]] : 'list',
|
||||
use: {
|
||||
baseURL: `http://127.0.0.1:${PORT}`,
|
||||
trace: 'retain-on-failure',
|
||||
|
||||
Generated
+1759
-1440
File diff suppressed because it is too large.
Load diff
+23
-46
@@ -21,57 +21,34 @@ allowBuilds:
|
||||
workerd: false
|
||||
|
||||
# Security overrides. Every package here reaches us only through BUILD or DEV
|
||||
# tooling — the eslint toolchain or @astrojs/check's language server; nothing
|
||||
# here ships to a visitor. Each floor is the first release that fixes every
|
||||
# advisory listed. Remove a line once upstream's own range moves past it
|
||||
# (`pnpm why <pkg>` shows who still pins the old version).
|
||||
#
|
||||
# minimatch — GHSA-g3hv-75wg-m249 (<11.0.1). Callers: eslint, @eslint/config-array
|
||||
# and typescript-eslint (`^10.2.x`, matching our own config globs against our
|
||||
# own paths). No patched 10.x exists, so 11 is forced across a major;
|
||||
# acceptable only because every caller uses nothing 11 removed — `minimatch()`,
|
||||
# `minimatch.match()` and `new Minimatch().match()`, never makeRe/regexp/AST/
|
||||
# debug — and `pnpm lint` lints the same 157 files with the same result either
|
||||
# side of the override (checked 2026-11-04). Every 11.x requires
|
||||
# brace-expansion ^5.0.12, which retired that package's own floor
|
||||
# (GHSA-mh99-v99m-4gvg … GHSA-q2hr-2g5m-vwhr, <5.0.12).
|
||||
# tooling — nothing here ships to a visitor. Each floor is the first release
|
||||
# that fixes every advisory listed. Remove a line once upstream's own range
|
||||
# moves past it (`pnpm why <pkg>` shows who still pins the old version).
|
||||
#
|
||||
# fast-uri — GHSA-7p8r-x3mc-p8w7, GHSA-5jgf-p345-68v8, GHSA-f65p-4m7j-42xc,
|
||||
# GHSA-fph4-wmhf-6fwf, GHSA-jqff-g426-hqxp, GHSA-qw65-cvwx-89v3 (<3.1.7) and
|
||||
# GHSA-hrr3-gc8f-f4qj (<3.1.8). Same major as ajv@8's `^3.0.1` range; pnpm kept
|
||||
# the locked 3.1.4 even under `update --depth Infinity`, hence the override.
|
||||
# GHSA-hrr3-gc8f-f4qj (<3.1.8). Same major as ajv@8's `^3.0.1` range (still
|
||||
# so in ajv 8.20); pnpm kept the locked 3.1.4 even under
|
||||
# `update --depth Infinity`, hence the override.
|
||||
#
|
||||
# (Retired 2026-11-09 with @vite-pwa/astro 2, which drops workbox-build 7 and
|
||||
# its 270-odd packages: `glob` ^14.0.2 — GHSA-3g3m-2fjr-6pw4, nothing depends
|
||||
# on glob any more — and `serialize-javascript` ^7.1.3 — GHSA-m5mm-p8h7-m29v,
|
||||
# @vite-pwa/workbox-build 8 asks for ^7.1.4 itself. Retired 2026-11-04:
|
||||
# `miniflare>undici` — miniflare pins the fixed 7.30.1 itself.)
|
||||
# (Retired 2026-11-24: `'@typescript-eslint/typescript-estree>minimatch':
|
||||
# '^11.0.1'` — typescript-eslint 8.73 asks for minimatch ^11.0.1 itself.
|
||||
# Retired 2026-11-09 with @vite-pwa/astro 2: `glob` ^14.0.2 and
|
||||
# `serialize-javascript` ^7.1.3. Retired 2026-11-04: `miniflare>undici`.)
|
||||
overrides:
|
||||
minimatch: '^11.0.1'
|
||||
fast-uri: '^3.1.9'
|
||||
|
||||
# Advisories that NO release fixes yet, so no override can reach them. CI's
|
||||
# `pnpm audit --prod` skips exactly these ids; `osv-scanner.toml` lists the same
|
||||
# ids for OSV-Scanner, with an expiry date and the reasoning. Remove a line (in
|
||||
# both files) once a fixed release exists — then it becomes an override above.
|
||||
# No `auditConfig.ignoreGhsas` and no `packageExtensions` since 2026-11-24:
|
||||
# - the one advisory `pnpm audit --prod` skipped, deepmerge's
|
||||
# GHSA-gcqx-w48m-w2h4, was WITHDRAWN on 2026-11-16 (osv-scanner.toml);
|
||||
# - `@astrojs/astro2tsx` 0.1.4 declares the `@emnapi/runtime` 1.11.3 that
|
||||
# matches its `@emnapi/core` itself — 0.1.3 left it to a peer range that
|
||||
# pnpm resolved to a 2.x beta, and `astro check` then reported the failed
|
||||
# import as "@astrojs/check is not installed" (2026-11-09).
|
||||
#
|
||||
# deepmerge <= 4.3.1 — GHSA-gcqx-w48m-w2h4 (low). Build tooling only, merging
|
||||
# our own config: @astrojs/svelte -> @sveltejs/vite-plugin-svelte (the
|
||||
# @vite-pwa/astro -> workbox-build 7 path left with @vite-pwa/astro 2).
|
||||
auditConfig:
|
||||
ignoreGhsas:
|
||||
- GHSA-gcqx-w48m-w2h4
|
||||
|
||||
# @astrojs/astro2tsx 0.1.3 (astro check's .astro -> TSX step, a wasm module)
|
||||
# pins @emnapi/core 1.11.3 but leaves @emnapi/runtime to the peer range of
|
||||
# @napi-rs/wasm-runtime (`^1.7.1 || ^2.0.0-alpha.4`). Since rolldown 1.3.0
|
||||
# (astro 7.4.7) brought @emnapi/runtime 2.0.0-beta.2 into the graph, pnpm
|
||||
# resolves that peer to the beta; core 1.x with runtime 2.x throws "this.bridge
|
||||
# .setLastError is not a function" on import, and `astro check` reports the
|
||||
# failed import as "@astrojs/check is not installed" (Dependabot #67,
|
||||
# 2026-11-09). Give astro2tsx the runtime that matches its core. Drop this once
|
||||
# an astro2tsx release declares @emnapi/runtime itself.
|
||||
packageExtensions:
|
||||
'@astrojs/astro2tsx@0.1.3':
|
||||
dependencies:
|
||||
'@emnapi/runtime': '1.11.3'
|
||||
# `pnpm install` warns "unmet peer @typescript/native" since typescript-eslint
|
||||
# 8.73: it declares an OPTIONAL peer of that name for TypeScript's native
|
||||
# preview (>= 7.1.0-dev), and our `@typescript/native` is the alias of
|
||||
# typescript@7.0.2 that `tsc --noEmit` uses (D28). Lint is unchanged either
|
||||
# way (same files, same rules, 2026-11-24); leave the warning until either side
|
||||
# moves.
|
||||
@@ -1,6 +1,5 @@
|
||||
Contact: mailto:security@poli0981.dev
|
||||
Contact: https://github.com/poli0981/softharbor/security/advisories/new
|
||||
Preferred-Languages: en, vi
|
||||
Expires: 2027-07-28T00:00:00.000Z
|
||||
Canonical: https://softharbor.net/.well-known/security.txt
|
||||
Policy: https://github.com/poli0981/softharbor/blob/main/SECURITY.md
|
||||
Policy: https://git.poli0981.dev/poli0981/softharbor/src/branch/main/SECURITY.md
|
||||
+7
-6
@@ -1,7 +1,8 @@
|
||||
# Qodana (JetBrains) — the third analyser beside CodeQL and SonarQube Cloud
|
||||
# (D35, docs/12 §2). Read by .github/workflows/qodana.yml; results go to Qodana
|
||||
# Cloud (the QODANA_TOKEN project token carries the Ultimate licence) and to
|
||||
# GitHub code scanning (tool QDJS, category softharbor/qodana).
|
||||
# Qodana (JetBrains) — the code analyser beside the ops repo's Opengrep SAST
|
||||
# (D35, D38, docs/12 §2). Read by .gitea/workflows/qodana.yml (the ops
|
||||
# reusable-qodana.yml runs the Qodana CLI); results go to Qodana Cloud (the
|
||||
# QODANA_TOKEN project token carries the Ultimate licence) and to the run's
|
||||
# `qodana-report` artifact. SonarQube Cloud and CodeQL left with GitHub (D38).
|
||||
version: '1.0'
|
||||
|
||||
# Qodana for JS is WebStorm's engine and runs only under an Ultimate (or
|
||||
@@ -16,7 +17,7 @@ withinDocker: 'false'
|
||||
profile:
|
||||
name: qodana.recommended
|
||||
|
||||
# The same scope as sonar-project.properties: the dataset is CC BY-SA content
|
||||
# The scope SonarQube Cloud had (until D38): the dataset is CC BY-SA content
|
||||
# validated by Zod and validate:data, not code; everything else here is
|
||||
# generated output or local tool state (git-ignored, so absent in CI anyway).
|
||||
exclude:
|
||||
@@ -53,7 +54,7 @@ exclude:
|
||||
# .astro files; ESLint, the Vitest island suites and e2e cover the islands.
|
||||
|
||||
# Any finding fails the job: red on the PR, but not a required check (D35) —
|
||||
# like Sonar's gate, a Qodana Cloud outage must never block a merge.
|
||||
# an outside service's outage must never block a merge.
|
||||
failureConditions:
|
||||
severityThresholds:
|
||||
any: 0
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["local>poli0981/renovate-config"],
|
||||
"packageRules": [
|
||||
{
|
||||
"description": "D21 (amended 2026-10-23): TypeScript runs side by side. `typescript` is the @typescript/typescript6 wrapper (the TS 6 API astro check, typescript-eslint and svelte2tsx load); `@typescript/native` is TypeScript 7's `tsc`. A major of either is a decision (docs/01 §5), not a routine bump.",
|
||||
"matchPackageNames": ["typescript", "@typescript/native", "@typescript/typescript6"],
|
||||
"matchUpdateTypes": ["major"],
|
||||
"enabled": false
|
||||
},
|
||||
{
|
||||
"description": "Node is a platform move (CLAUDE.md, maintenance mode item 4): .nvmrc, engines.node and @types/node move together, deliberately, at the next LTS — never as a routine bump.",
|
||||
"matchPackageNames": ["node", "@types/node"],
|
||||
"matchUpdateTypes": ["major"],
|
||||
"enabled": false
|
||||
},
|
||||
{
|
||||
"description": "pnpm stays on 11.x by decision (docs/01 §5): pnpm 12 is a platform move, not a routine bump. packageManager minors and patches still come through.",
|
||||
"matchPackageNames": ["pnpm"],
|
||||
"matchUpdateTypes": ["major"],
|
||||
"enabled": false
|
||||
},
|
||||
{
|
||||
"description": "The fast-uri override in pnpm-workspace.yaml is a security FLOOR inside the major that ajv@8 asks for (^3.0.1, still so in ajv 8.20). Forcing 4.x on ajv would swap a major under it, so the floor only moves within 3.x; remove the override (not raise it) once ajv's own range moves on.",
|
||||
"matchPackageNames": ["fast-uri"],
|
||||
"matchUpdateTypes": ["major"],
|
||||
"enabled": false
|
||||
}
|
||||
]
|
||||
}
|
||||
+27
-1
@@ -6,7 +6,7 @@
|
||||
// project tree and runs the REAL script in it as a child process — the same
|
||||
// way `pnpm build` and CI invoke it, exit code and all.
|
||||
|
||||
import { spawnSync } from 'node:child_process';
|
||||
import { spawn, spawnSync } from 'node:child_process';
|
||||
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs';
|
||||
import { tmpdir } from 'node:os';
|
||||
import { dirname, join } from 'node:path';
|
||||
@@ -56,3 +56,29 @@ export function run(
|
||||
});
|
||||
return { code: r.status, stdout: r.stdout, out: r.stdout + r.stderr };
|
||||
}
|
||||
|
||||
/**
|
||||
* `run`, without blocking the event loop: for a script that talks to a server
|
||||
* the test itself runs (scripts/gitea.test.ts), which spawnSync would starve.
|
||||
*/
|
||||
export function runAsync(
|
||||
script: string,
|
||||
root: string,
|
||||
opts: { args?: string[]; env?: Record<string, string> } = {},
|
||||
): Promise<Run> {
|
||||
const env = { ...process.env };
|
||||
Reflect.deleteProperty(env, 'GITHUB_OUTPUT');
|
||||
return new Promise((resolve, reject) => {
|
||||
const child = spawn(process.execPath, [join(SCRIPTS, script), ...(opts.args ?? [])], {
|
||||
cwd: root,
|
||||
env: { ...env, ...opts.env },
|
||||
stdio: ['ignore', 'pipe', 'pipe'],
|
||||
});
|
||||
let stdout = '';
|
||||
let stderr = '';
|
||||
child.stdout.setEncoding('utf8').on('data', (d: string) => (stdout += d));
|
||||
child.stderr.setEncoding('utf8').on('data', (d: string) => (stderr += d));
|
||||
child.on('error', reject);
|
||||
child.on('close', (code) => resolve({ code, stdout, out: stdout + stderr }));
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,326 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 (SkullMute)
|
||||
//
|
||||
// docs/12 §4 — the bots' side of the forge (D38): pull requests, issues,
|
||||
// workflow dispatches and commit statuses through Gitea's REST API.
|
||||
//
|
||||
// The `gh` CLI and peter-evans/create-pull-request went with the GitHub
|
||||
// account. The workflows that talk back to the forge (quarantine, vt-recheck,
|
||||
// link-check, ci's `record` job) call this script with the job token; it needs
|
||||
// nothing but Node's fetch.
|
||||
//
|
||||
// GITEA_API ${{ github.api_url }} https://git.poli0981.dev/api/v1
|
||||
// GITEA_REPO ${{ github.repository }} poli0981/softharbor
|
||||
// GITEA_TOKEN ${{ github.token }}
|
||||
//
|
||||
// pr <head> <title> <body-file> [labels] open, or update, the PR <head> → main
|
||||
// pr-open <head> is a PR from <head> open? (open=true|false)
|
||||
// dispatch <ref> <workflow.yml>... run those workflows on <ref>
|
||||
// status <sha> <context> <result> [url] record a job's result as a commit status
|
||||
// quarantine-issues <slug>... one tracking issue per newly quarantined slug
|
||||
// vt-issues <review.json> one tracking issue per entry with detections
|
||||
// link-rot <exit-code> <report> <run-url> refresh, open or close the link-check issue
|
||||
//
|
||||
// Two Gitea facts shape it (runbook §6): an event the job token causes starts
|
||||
// no workflow — so a bot PR gets its checks from `dispatch` — and a dispatched
|
||||
// run writes no commit status — so ci.yml records its own (`status`), under the
|
||||
// names branch protection matches.
|
||||
|
||||
import { appendFileSync, readFileSync } from 'node:fs';
|
||||
|
||||
const BASE = 'main';
|
||||
const PAGE = 50; // Gitea's default MAX_RESPONSE_ITEMS
|
||||
const SLUG = /^[a-z0-9]+(-[a-z0-9]+)*$/;
|
||||
export const LINK_ROT_TITLE = 'link-check: broken official links';
|
||||
|
||||
/** A Gitea API caller for one repository: `call(method, path, body?)` → parsed JSON. */
|
||||
export function client({ api, repo, token }) {
|
||||
return async function call(method, path, body) {
|
||||
const res = await fetch(`${api}/repos/${repo}${path}`, {
|
||||
method,
|
||||
headers: {
|
||||
authorization: `token ${token}`,
|
||||
accept: 'application/json',
|
||||
...(body === undefined ? {} : { 'content-type': 'application/json' }),
|
||||
},
|
||||
body: body === undefined ? undefined : JSON.stringify(body),
|
||||
});
|
||||
const text = await res.text();
|
||||
if (!res.ok) throw new Error(`${method} ${path} → ${res.status} ${text.slice(0, 300)}`);
|
||||
return text ? JSON.parse(text) : null;
|
||||
};
|
||||
}
|
||||
|
||||
/** Every row of a paged list endpoint. */
|
||||
async function all(call, path) {
|
||||
const rows = [];
|
||||
for (let page = 1; ; page++) {
|
||||
const sep = path.includes('?') ? '&' : '?';
|
||||
const batch = await call('GET', `${path}${sep}limit=${PAGE}&page=${page}`);
|
||||
rows.push(...batch);
|
||||
if (batch.length < PAGE) return rows;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Label names → ids. Gitea attaches labels by id, and its API creates none:
|
||||
* a missing label is left off with a notice instead of failing the bot.
|
||||
*/
|
||||
async function labelIds(call, names, log) {
|
||||
if (names.length === 0) return [];
|
||||
const byName = new Map((await all(call, '/labels')).map((l) => [l.name, l.id]));
|
||||
const ids = [];
|
||||
for (const name of names) {
|
||||
if (byName.has(name)) ids.push(byName.get(name));
|
||||
else log(`::notice::label "${name}" does not exist on this repository — left off`);
|
||||
}
|
||||
return ids;
|
||||
}
|
||||
|
||||
export async function findPull(call, head) {
|
||||
const pulls = await all(call, '/pulls?state=open');
|
||||
return pulls.find((p) => p.head?.ref === head && p.base?.ref === BASE) ?? null;
|
||||
}
|
||||
|
||||
export async function openPull(call, { head, title, body, labels = [], log = console.log }) {
|
||||
const existing = await findPull(call, head);
|
||||
if (existing) {
|
||||
await call('PATCH', `/pulls/${existing.number}`, { title, body });
|
||||
log(`Updated pull request #${existing.number}`);
|
||||
return { number: existing.number, operation: 'updated' };
|
||||
}
|
||||
const pull = await call('POST', '/pulls', {
|
||||
base: BASE,
|
||||
head,
|
||||
title,
|
||||
body,
|
||||
labels: await labelIds(call, labels, log),
|
||||
});
|
||||
log(`Opened pull request #${pull.number}`);
|
||||
return { number: pull.number, operation: 'created' };
|
||||
}
|
||||
|
||||
async function findIssue(call, title) {
|
||||
const issues = await all(call, '/issues?state=open&type=issues');
|
||||
return issues.find((i) => i.title === title) ?? null;
|
||||
}
|
||||
|
||||
/** Opens an issue unless one with the same title is already open. */
|
||||
export async function openIssue(call, { title, body, labels = [], log = console.log }) {
|
||||
const existing = await findIssue(call, title);
|
||||
if (existing) {
|
||||
log(`${title} is already tracked in #${existing.number}`);
|
||||
return null;
|
||||
}
|
||||
const issue = await call('POST', '/issues', {
|
||||
title,
|
||||
body,
|
||||
labels: await labelIds(call, labels, log),
|
||||
});
|
||||
log(`Opened #${issue.number}: ${title}`);
|
||||
return issue.number;
|
||||
}
|
||||
|
||||
export async function dispatch(call, ref, workflows, log = console.log) {
|
||||
for (const file of workflows) {
|
||||
await call('POST', `/actions/workflows/${encodeURIComponent(file)}/dispatches`, { ref });
|
||||
log(`Dispatched ${file} on ${ref}`);
|
||||
}
|
||||
}
|
||||
|
||||
/** A `needs.<job>.result` as a commit status. Cancelled and skipped jobs record nothing. */
|
||||
export async function recordStatus(call, { sha, context, result, url, log = console.log }) {
|
||||
if (result !== 'success' && result !== 'failure') {
|
||||
log(`${context}: ${result || 'no result'} — nothing to record`);
|
||||
return false;
|
||||
}
|
||||
await call('POST', `/statuses/${sha}`, {
|
||||
state: result,
|
||||
context,
|
||||
description:
|
||||
result === 'success'
|
||||
? 'passed in this dispatched run'
|
||||
: 'failed in this dispatched run — see the run',
|
||||
...(url ? { target_url: url } : {}),
|
||||
});
|
||||
log(`${context}: recorded ${result} on ${sha}`);
|
||||
return true;
|
||||
}
|
||||
|
||||
export function quarantineBody(slug) {
|
||||
return `\`${slug}\` was flagged and moved to \`data/quarantine/\`.
|
||||
|
||||
Record here before closing:
|
||||
- [ ] Reason it was flagged
|
||||
- [ ] Evidence link (VirusTotal / vendor advisory)
|
||||
- [ ] Date checked
|
||||
- [ ] Whether users were plausibly exposed (docs/13 §7)
|
||||
|
||||
Restoring is a reviewed PR: status back to \`clean\`/\`unverified\`,
|
||||
a fresh \`checkedAt\`, and the file moved back (docs/03 §5).
|
||||
`;
|
||||
}
|
||||
|
||||
export function vtBody({ slug, evidence, malicious, suspicious, was, status }) {
|
||||
return `VirusTotal re-scanned \`${slug}\`'s download page: **${malicious} malicious, ${suspicious} suspicious** — [the scan](${evidence}).
|
||||
|
||||
Status in the re-check PR: \`${was}\` → \`${status}\`. Nothing was flagged or removed (docs/09 §6).
|
||||
|
||||
Decide and record here:
|
||||
- [ ] Look at which engines said what, and whether the vendor or a second scan agrees
|
||||
- [ ] False positive → set \`status\` back to \`clean\` in a PR and note why here
|
||||
- [ ] Confirmed → \`status: "flagged"\` + \`pnpm quarantine\` in one PR (docs/03 §5)
|
||||
- [ ] Whether users were plausibly exposed (docs/13 §7)
|
||||
`;
|
||||
}
|
||||
|
||||
/** Slugs come from our own scripts; anything else must not reach an issue title. */
|
||||
function validSlugs(slugs, log) {
|
||||
return slugs.filter((slug) => {
|
||||
if (SLUG.test(slug)) return true;
|
||||
log(`::warning::skipping unexpected slug '${slug}'`);
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
export async function quarantineIssues(call, slugs, log = console.log) {
|
||||
for (const slug of validSlugs(slugs, log)) {
|
||||
await openIssue(call, {
|
||||
title: `[quarantine] ${slug}`,
|
||||
body: quarantineBody(slug),
|
||||
labels: ['security', 'quarantine'],
|
||||
log,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export async function vtIssues(call, rows, log = console.log) {
|
||||
const bySlug = new Map(rows.map((r) => [r.slug, r]));
|
||||
for (const slug of validSlugs([...bySlug.keys()], log)) {
|
||||
await openIssue(call, {
|
||||
title: `[vt] ${slug}`,
|
||||
body: vtBody(bySlug.get(slug)),
|
||||
labels: ['security'],
|
||||
log,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ONE tracking issue for the weekly link sweep: refreshed in place while the
|
||||
* sweep fails, closed the first week it comes back clean (docs/12 §5).
|
||||
*/
|
||||
export async function linkRot(call, { failing, report, runUrl, log = console.log }) {
|
||||
const existing = await findIssue(call, LINK_ROT_TITLE);
|
||||
if (failing && existing) {
|
||||
await call('PATCH', `/issues/${existing.number}`, { body: report });
|
||||
await call('POST', `/issues/${existing.number}/comments`, {
|
||||
body: `Still failing in ${runUrl} — the report above was refreshed.`,
|
||||
});
|
||||
log(`Refreshed #${existing.number}`);
|
||||
return 'refreshed';
|
||||
}
|
||||
if (failing) {
|
||||
await openIssue(call, { title: LINK_ROT_TITLE, body: report, labels: ['link-rot'], log });
|
||||
return 'opened';
|
||||
}
|
||||
if (existing) {
|
||||
await call('POST', `/issues/${existing.number}/comments`, {
|
||||
body: `Every official link resolved in ${runUrl}. Closing; the next failure opens a fresh report.`,
|
||||
});
|
||||
await call('PATCH', `/issues/${existing.number}`, { state: 'closed' });
|
||||
log(`Closed #${existing.number}`);
|
||||
return 'closed';
|
||||
}
|
||||
log('All links healthy; nothing to report.');
|
||||
return 'healthy';
|
||||
}
|
||||
|
||||
const USAGE =
|
||||
'usage: gitea.mjs <pr|pr-open|dispatch|status|quarantine-issues|vt-issues|link-rot> …';
|
||||
|
||||
/** How many arguments each command needs at least. */
|
||||
const ARITY = {
|
||||
pr: 3,
|
||||
'pr-open': 1,
|
||||
dispatch: 2,
|
||||
status: 3,
|
||||
'quarantine-issues': 0,
|
||||
'vt-issues': 1,
|
||||
'link-rot': 3,
|
||||
};
|
||||
|
||||
function fail(message) {
|
||||
console.error(`::error::gitea.mjs: ${message}`);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/** Runs one command; its input is already checked. */
|
||||
async function run(call, command, args, out) {
|
||||
switch (command) {
|
||||
case 'pr': {
|
||||
const [head, title, bodyFile, labels = ''] = args;
|
||||
const r = await openPull(call, {
|
||||
head,
|
||||
title,
|
||||
body: readFileSync(bodyFile, 'utf8'),
|
||||
labels: labels
|
||||
.split(',')
|
||||
.map((s) => s.trim())
|
||||
.filter(Boolean),
|
||||
});
|
||||
out('number', r.number);
|
||||
out('operation', r.operation);
|
||||
return;
|
||||
}
|
||||
case 'pr-open': {
|
||||
const pull = await findPull(call, args[0]);
|
||||
console.log(pull ? `#${pull.number} is open` : `No open pull request from ${args[0]}`);
|
||||
out('open', pull ? 'true' : 'false');
|
||||
return;
|
||||
}
|
||||
case 'dispatch':
|
||||
await dispatch(call, args[0], args.slice(1));
|
||||
return;
|
||||
case 'status': {
|
||||
const [sha, context, result, url] = args;
|
||||
await recordStatus(call, { sha, context, result, url });
|
||||
return;
|
||||
}
|
||||
case 'quarantine-issues':
|
||||
await quarantineIssues(call, args);
|
||||
return;
|
||||
case 'vt-issues':
|
||||
await vtIssues(call, JSON.parse(readFileSync(args[0], 'utf8')));
|
||||
return;
|
||||
default: {
|
||||
// 'link-rot' — the last command ARITY knows.
|
||||
const [exitCode, reportFile, runUrl] = args;
|
||||
await linkRot(call, {
|
||||
failing: exitCode !== '0',
|
||||
report: readFileSync(reportFile, 'utf8'),
|
||||
runUrl,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export async function main(argv = process.argv.slice(2), env = process.env) {
|
||||
const out = (key, value) => {
|
||||
if (env['GITHUB_OUTPUT']) appendFileSync(env['GITHUB_OUTPUT'], `${key}=${value}\n`);
|
||||
};
|
||||
const [command = '', ...args] = argv;
|
||||
const { GITEA_API: api, GITEA_REPO: repo, GITEA_TOKEN: token } = env;
|
||||
if (!api || !repo || !token) return fail('GITEA_API, GITEA_REPO and GITEA_TOKEN are required');
|
||||
if (!Object.hasOwn(ARITY, command)) return fail(USAGE);
|
||||
if (args.length < ARITY[command])
|
||||
return fail(`${command} needs ${ARITY[command]} argument(s) — ${USAGE}`);
|
||||
try {
|
||||
await run(client({ api, repo, token }), command, args, out);
|
||||
return 0;
|
||||
} catch (e) {
|
||||
return fail(e.message);
|
||||
}
|
||||
}
|
||||
|
||||
if (import.meta.main) process.exitCode = await main();
|
||||
@@ -0,0 +1,383 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 (SkullMute)
|
||||
//
|
||||
// gitea.mjs — the bots' pull requests, issues, dispatches and commit statuses
|
||||
// (D38). The script runs for real, as the workflows run it, against a small
|
||||
// in-process stand-in for Gitea's REST API that records every request.
|
||||
|
||||
import { createServer, type IncomingMessage, type Server } from 'node:http';
|
||||
import type { AddressInfo } from 'node:net';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { join } from 'node:path';
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
|
||||
import { project, runAsync } from './fixture';
|
||||
|
||||
interface Row {
|
||||
number: number;
|
||||
title: string;
|
||||
body: string;
|
||||
state: string;
|
||||
labels: number[];
|
||||
head?: { ref: string };
|
||||
base?: { ref: string };
|
||||
}
|
||||
|
||||
interface Fake {
|
||||
labels: { id: number; name: string }[];
|
||||
pulls: Row[];
|
||||
issues: Row[];
|
||||
comments: { issue: number; body: string }[];
|
||||
dispatches: { file: string; ref: string }[];
|
||||
statuses: { sha: string; state: string; context: string; target_url?: string }[];
|
||||
requests: string[];
|
||||
failOn?: string;
|
||||
}
|
||||
|
||||
let fake: Fake;
|
||||
let server: Server;
|
||||
let api = '';
|
||||
|
||||
const PREFIX = '/api/v1/repos/poli0981/softharbor';
|
||||
|
||||
async function bodyOf(req: IncomingMessage): Promise<Record<string, unknown>> {
|
||||
let text = '';
|
||||
for await (const chunk of req) text += chunk;
|
||||
return text ? (JSON.parse(text) as Record<string, unknown>) : {};
|
||||
}
|
||||
|
||||
function page<T>(rows: T[], url: URL): T[] {
|
||||
const limit = Number(url.searchParams.get('limit'));
|
||||
const n = Number(url.searchParams.get('page'));
|
||||
return rows.slice((n - 1) * limit, n * limit);
|
||||
}
|
||||
|
||||
beforeEach(async () => {
|
||||
fake = {
|
||||
labels: [
|
||||
{ id: 39, name: 'dependencies' },
|
||||
{ id: 40, name: 'security' },
|
||||
],
|
||||
pulls: [],
|
||||
issues: [],
|
||||
comments: [],
|
||||
dispatches: [],
|
||||
statuses: [],
|
||||
requests: [],
|
||||
};
|
||||
server = createServer((req, res) => {
|
||||
void (async () => {
|
||||
const url = new URL(req.url ?? '/', 'http://x');
|
||||
const path = url.pathname.slice(PREFIX.length);
|
||||
const body = await bodyOf(req);
|
||||
fake.requests.push(`${req.method} ${path}`);
|
||||
const send = (status: number, data?: unknown) => {
|
||||
res.writeHead(status, { 'content-type': 'application/json' });
|
||||
res.end(data === undefined ? '' : JSON.stringify(data));
|
||||
};
|
||||
if (req.headers.authorization !== 'token job-token') return send(401, { message: 'no' });
|
||||
if (!url.pathname.startsWith(PREFIX)) return send(404, { message: 'repo' });
|
||||
if (fake.failOn && path.startsWith(fake.failOn)) return send(500, { message: 'boom' });
|
||||
|
||||
let m: RegExpMatchArray | null;
|
||||
if (req.method === 'GET' && path === '/labels') return send(200, page(fake.labels, url));
|
||||
if (req.method === 'GET' && path === '/pulls')
|
||||
return send(
|
||||
200,
|
||||
page(
|
||||
fake.pulls.filter((p) => p.state === 'open'),
|
||||
url,
|
||||
),
|
||||
);
|
||||
if (req.method === 'GET' && path === '/issues')
|
||||
return send(
|
||||
200,
|
||||
page(
|
||||
fake.issues.filter((i) => i.state === 'open'),
|
||||
url,
|
||||
),
|
||||
);
|
||||
if (req.method === 'POST' && path === '/pulls') {
|
||||
const pull: Row = {
|
||||
number: 100 + fake.pulls.length,
|
||||
title: String(body['title']),
|
||||
body: String(body['body']),
|
||||
state: 'open',
|
||||
labels: body['labels'] as number[],
|
||||
head: { ref: String(body['head']) },
|
||||
base: { ref: String(body['base']) },
|
||||
};
|
||||
fake.pulls.push(pull);
|
||||
return send(201, pull);
|
||||
}
|
||||
if (req.method === 'POST' && path === '/issues') {
|
||||
const issue: Row = {
|
||||
number: 200 + fake.issues.length,
|
||||
title: String(body['title']),
|
||||
body: String(body['body']),
|
||||
state: 'open',
|
||||
labels: body['labels'] as number[],
|
||||
};
|
||||
fake.issues.push(issue);
|
||||
return send(201, issue);
|
||||
}
|
||||
if ((m = /^\/(pulls|issues)\/(\d+)$/.exec(path)) && req.method === 'PATCH') {
|
||||
const rows = m[1] === 'pulls' ? fake.pulls : fake.issues;
|
||||
const row = rows.find((r) => r.number === Number(m?.[2]));
|
||||
if (!row) return send(404, { message: 'no such row' });
|
||||
Object.assign(row, body);
|
||||
return send(200, row);
|
||||
}
|
||||
if ((m = /^\/issues\/(\d+)\/comments$/.exec(path)) && req.method === 'POST') {
|
||||
fake.comments.push({ issue: Number(m[1]), body: String(body['body']) });
|
||||
return send(201, { id: 1 });
|
||||
}
|
||||
if ((m = /^\/actions\/workflows\/([^/]+)\/dispatches$/.exec(path)) && req.method === 'POST') {
|
||||
fake.dispatches.push({ file: decodeURIComponent(m[1] ?? ''), ref: String(body['ref']) });
|
||||
return send(204);
|
||||
}
|
||||
if ((m = /^\/statuses\/([0-9a-f]+)$/.exec(path)) && req.method === 'POST') {
|
||||
fake.statuses.push({ sha: m[1] ?? '', ...(body as Omit<Fake['statuses'][0], 'sha'>) });
|
||||
return send(201, { id: 1 });
|
||||
}
|
||||
return send(404, { message: `unrouted ${req.method} ${path}` });
|
||||
})();
|
||||
});
|
||||
await new Promise<void>((resolve) => server.listen(0, '127.0.0.1', resolve));
|
||||
api = `http://127.0.0.1:${(server.address() as AddressInfo).port}/api/v1`;
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
await new Promise((resolve) => server.close(resolve));
|
||||
});
|
||||
|
||||
function gitea(
|
||||
args: string[],
|
||||
files: Record<string, string> = {},
|
||||
env: Record<string, string> = {},
|
||||
) {
|
||||
const root = project({ 'keep.txt': '', ...files });
|
||||
const output = join(root, 'out.txt');
|
||||
const done = runAsync('gitea.mjs', root, {
|
||||
args,
|
||||
env: {
|
||||
GITEA_API: api,
|
||||
GITEA_REPO: 'poli0981/softharbor',
|
||||
GITEA_TOKEN: 'job-token',
|
||||
GITHUB_OUTPUT: output,
|
||||
...env,
|
||||
},
|
||||
});
|
||||
return done.then((r) => ({ ...r, output: () => readFileSync(output, 'utf8'), root }));
|
||||
}
|
||||
|
||||
const issue = (number: number, title: string): Row => ({
|
||||
number,
|
||||
title,
|
||||
body: '',
|
||||
state: 'open',
|
||||
labels: [],
|
||||
});
|
||||
|
||||
describe('pr', () => {
|
||||
it('opens the pull request with the labels that exist, and says which one is missing', async () => {
|
||||
const r = await gitea(
|
||||
['pr', 'vt/recheck', 'data: VirusTotal re-check', 'body.md', 'security, quarantine'],
|
||||
{
|
||||
'body.md': 'the summary',
|
||||
},
|
||||
);
|
||||
expect(r.code).toBe(0);
|
||||
expect(fake.pulls).toHaveLength(1);
|
||||
expect(fake.pulls[0]).toMatchObject({
|
||||
title: 'data: VirusTotal re-check',
|
||||
body: 'the summary',
|
||||
labels: [40],
|
||||
head: { ref: 'vt/recheck' },
|
||||
base: { ref: 'main' },
|
||||
});
|
||||
expect(r.out).toContain('label "quarantine" does not exist');
|
||||
expect(r.output()).toBe('number=100\noperation=created\n');
|
||||
});
|
||||
|
||||
it('updates the open pull request from the same branch instead of opening another', async () => {
|
||||
fake.pulls.push({ ...issue(7, 'old'), head: { ref: 'vt/recheck' }, base: { ref: 'main' } });
|
||||
fake.pulls.push({
|
||||
...issue(8, 'other'),
|
||||
head: { ref: 'quarantine/auto' },
|
||||
base: { ref: 'main' },
|
||||
});
|
||||
const r = await gitea(['pr', 'vt/recheck', 'new title', 'body.md'], { 'body.md': 'new body' });
|
||||
expect(r.code).toBe(0);
|
||||
expect(fake.pulls).toHaveLength(2);
|
||||
expect(fake.pulls[0]).toMatchObject({ title: 'new title', body: 'new body' });
|
||||
expect(fake.requests).not.toContain('POST /pulls');
|
||||
expect(fake.requests).not.toContain('GET /labels');
|
||||
expect(r.output()).toBe('number=7\noperation=updated\n');
|
||||
});
|
||||
|
||||
it('tells the workflow whether a pull request from a branch is open', async () => {
|
||||
fake.pulls.push({ ...issue(9, 'x'), head: { ref: 'vt/recheck' }, base: { ref: 'main' } });
|
||||
const open = await gitea(['pr-open', 'vt/recheck']);
|
||||
expect(open.output()).toBe('open=true\n');
|
||||
expect(open.out).toContain('#9 is open');
|
||||
const none = await gitea(['pr-open', 'quarantine/auto']);
|
||||
expect(none.output()).toBe('open=false\n');
|
||||
});
|
||||
});
|
||||
|
||||
describe('dispatch and status', () => {
|
||||
it('dispatches each workflow on the ref', async () => {
|
||||
const r = await gitea(['dispatch', 'vt/recheck', 'ci.yml', 'security.yml']);
|
||||
expect(r.code).toBe(0);
|
||||
expect(fake.dispatches).toEqual([
|
||||
{ file: 'ci.yml', ref: 'vt/recheck' },
|
||||
{ file: 'security.yml', ref: 'vt/recheck' },
|
||||
]);
|
||||
});
|
||||
|
||||
it('records a passed or failed job under the check name protection matches', async () => {
|
||||
await gitea(['status', 'abc123', 'CI / build (workflow_dispatch)', 'success', 'https://run/1']);
|
||||
await gitea(['status', 'abc123', 'CI / gates (workflow_dispatch)', 'failure']);
|
||||
expect(fake.statuses).toEqual([
|
||||
expect.objectContaining({
|
||||
sha: 'abc123',
|
||||
state: 'success',
|
||||
context: 'CI / build (workflow_dispatch)',
|
||||
target_url: 'https://run/1',
|
||||
}),
|
||||
expect.objectContaining({ state: 'failure', context: 'CI / gates (workflow_dispatch)' }),
|
||||
]);
|
||||
expect(fake.statuses[1]).not.toHaveProperty('target_url');
|
||||
});
|
||||
|
||||
it('records nothing for a cancelled or skipped job', async () => {
|
||||
const r = await gitea(['status', 'abc123', 'CI / build (workflow_dispatch)', 'cancelled']);
|
||||
expect(r.code).toBe(0);
|
||||
expect(r.out).toContain('cancelled — nothing to record');
|
||||
const empty = await gitea(['status', 'abc123', 'CI / build (workflow_dispatch)', '']);
|
||||
expect(empty.out).toContain('no result — nothing to record');
|
||||
expect(fake.statuses).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
describe('tracking issues', () => {
|
||||
it('opens one quarantine issue per new slug, never a second, never for a malformed one', async () => {
|
||||
fake.labels.push({ id: 41, name: 'quarantine' });
|
||||
fake.issues.push(issue(5, '[quarantine] old-app'));
|
||||
const r = await gitea(['quarantine-issues', 'bad-app', 'old-app', 'Not;a slug']);
|
||||
expect(r.code).toBe(0);
|
||||
expect(fake.issues.map((i) => i.title)).toEqual([
|
||||
'[quarantine] old-app',
|
||||
'[quarantine] bad-app',
|
||||
]);
|
||||
expect(fake.issues[1]?.labels).toEqual([40, 41]);
|
||||
expect(fake.issues[1]?.body).toContain('`bad-app` was flagged and moved to `data/quarantine/`');
|
||||
expect(r.out).toContain('[quarantine] old-app is already tracked in #5');
|
||||
expect(r.out).toContain("skipping unexpected slug 'Not;a slug'");
|
||||
});
|
||||
|
||||
it('opens one issue per VirusTotal detection from the review file', async () => {
|
||||
fake.issues.push(issue(6, '[vt] tracked'));
|
||||
const review = [
|
||||
{
|
||||
slug: 'some-app',
|
||||
evidence: 'https://www.virustotal.com/gui/url/x',
|
||||
malicious: 1,
|
||||
suspicious: 0,
|
||||
was: 'clean',
|
||||
status: 'unverified',
|
||||
},
|
||||
{
|
||||
slug: 'tracked',
|
||||
evidence: 'e',
|
||||
malicious: 2,
|
||||
suspicious: 1,
|
||||
was: 'clean',
|
||||
status: 'unverified',
|
||||
},
|
||||
];
|
||||
const r = await gitea(['vt-issues', 'review.json'], { 'review.json': JSON.stringify(review) });
|
||||
expect(r.code).toBe(0);
|
||||
expect(fake.issues).toHaveLength(2);
|
||||
expect(fake.issues[1]).toMatchObject({ title: '[vt] some-app', labels: [40] });
|
||||
expect(fake.issues[1]?.body).toContain('**1 malicious, 0 suspicious**');
|
||||
expect(fake.issues[1]?.body).toContain('`clean` → `unverified`');
|
||||
});
|
||||
|
||||
it('finds an open issue past the first page', async () => {
|
||||
for (let n = 1; n <= 55; n++) fake.issues.push(issue(n, `filler ${n}`));
|
||||
fake.issues.push(issue(56, '[quarantine] deep'));
|
||||
const r = await gitea(['quarantine-issues', 'deep']);
|
||||
expect(r.out).toContain('already tracked in #56');
|
||||
expect(fake.requests.filter((q) => q === 'GET /issues')).toHaveLength(2);
|
||||
});
|
||||
});
|
||||
|
||||
describe('link-rot', () => {
|
||||
const linkRot = (code: string) =>
|
||||
gitea(['link-rot', code, 'out.md', 'https://run/9'], { 'out.md': '# report' });
|
||||
|
||||
it('opens the tracking issue on the first failure', async () => {
|
||||
fake.labels.push({ id: 42, name: 'link-rot' });
|
||||
await linkRot('2');
|
||||
expect(fake.issues).toEqual([
|
||||
expect.objectContaining({
|
||||
title: 'link-check: broken official links',
|
||||
body: '# report',
|
||||
labels: [42],
|
||||
}),
|
||||
]);
|
||||
});
|
||||
|
||||
it('refreshes the open issue while the sweep keeps failing', async () => {
|
||||
fake.issues.push(issue(12, 'link-check: broken official links'));
|
||||
const r = await linkRot('2');
|
||||
expect(fake.issues[0]?.body).toBe('# report');
|
||||
expect(fake.comments).toEqual([
|
||||
{ issue: 12, body: 'Still failing in https://run/9 — the report above was refreshed.' },
|
||||
]);
|
||||
expect(r.out).toContain('Refreshed #12');
|
||||
});
|
||||
|
||||
it('closes it the first week every link resolves', async () => {
|
||||
fake.issues.push(issue(12, 'link-check: broken official links'));
|
||||
await linkRot('0');
|
||||
expect(fake.issues[0]?.state).toBe('closed');
|
||||
expect(fake.comments[0]?.body).toContain('Every official link resolved in https://run/9');
|
||||
});
|
||||
|
||||
it('does nothing when the sweep is clean and nothing is open', async () => {
|
||||
const r = await linkRot('0');
|
||||
expect(r.out).toContain('All links healthy');
|
||||
expect(fake.requests).toEqual(['GET /issues']);
|
||||
});
|
||||
});
|
||||
|
||||
describe('failures', () => {
|
||||
it('fails loudly on an API error', async () => {
|
||||
fake.failOn = '/actions';
|
||||
const r = await gitea(['dispatch', 'main', 'ci.yml']);
|
||||
expect(r.code).toBe(1);
|
||||
expect(r.out).toContain('::error::gitea.mjs: POST /actions/workflows/ci.yml/dispatches → 500');
|
||||
});
|
||||
|
||||
it('refuses to run without the API, the repository and the token', async () => {
|
||||
const r = await gitea(['pr-open', 'x'], {}, { GITEA_TOKEN: '' });
|
||||
expect(r.code).toBe(1);
|
||||
expect(r.out).toContain('GITEA_API, GITEA_REPO and GITEA_TOKEN are required');
|
||||
});
|
||||
|
||||
it('rejects an unknown command and a missing argument', async () => {
|
||||
const unknown = await gitea(['merge']);
|
||||
expect(unknown.code).toBe(1);
|
||||
expect(unknown.out).toContain('usage: gitea.mjs');
|
||||
const short = await gitea(['status', 'abc123']);
|
||||
expect(short.code).toBe(1);
|
||||
expect(short.out).toContain('status needs 3 argument(s)');
|
||||
});
|
||||
|
||||
it('writes no output file when the workflow gives none', async () => {
|
||||
const r = await gitea(['pr-open', 'x'], {}, { GITHUB_OUTPUT: '' });
|
||||
expect(r.code).toBe(0);
|
||||
});
|
||||
});
|
||||
@@ -17,8 +17,8 @@
|
||||
* - a maintainer, locally: set `security.status` to "flagged", run
|
||||
* `pnpm quarantine`, commit both the flag and the move in one PR — the
|
||||
* `gates` check (validate:data) rejects a flagged entry left in place;
|
||||
* - .github/workflows/quarantine.yml, nightly and on data pushes, as the
|
||||
* safety net. It reads the moved slugs from the `moved` GitHub output.
|
||||
* - .gitea/workflows/quarantine.yml, daily and on data pushes, as the
|
||||
* safety net. It reads the moved slugs from the `moved` step output.
|
||||
*
|
||||
* Idempotent; exits 0 when there is nothing to do.
|
||||
*/
|
||||
@@ -73,7 +73,7 @@ if (existsSync(APPS_DIR)) {
|
||||
|
||||
if (moved.length === 0) console.log('quarantine: nothing flagged');
|
||||
|
||||
// Space-separated, consumed by .github/workflows/quarantine.yml.
|
||||
// Space-separated, consumed by .gitea/workflows/quarantine.yml.
|
||||
if (process.env['GITHUB_OUTPUT']) {
|
||||
appendFileSync(process.env['GITHUB_OUTPUT'], `moved=${moved.join(' ')}\n`);
|
||||
}
|
||||
@@ -165,7 +165,7 @@ for (const file of files) {
|
||||
// A local: logo that does not exist fails the build far away from the
|
||||
// cause. Compared against the directory listing, not existsSync, because
|
||||
// Windows' case-insensitive filesystem would accept a wrong-case name that
|
||||
// Linux CI and Workers Builds then reject.
|
||||
// Linux CI and the deploy job then reject.
|
||||
const local = /^local:(.+)$/.exec(app.logo ?? '');
|
||||
if (local && !logoFiles.has(local[1])) {
|
||||
fail(file, 'missing-logo', `src/assets/logos/${local[1]} not found (names are case-sensitive)`);
|
||||
|
||||
@@ -93,7 +93,7 @@ describe('validate-data', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it('compares local logos case-sensitively, as Linux CI and Workers Builds do', () => {
|
||||
it('compares local logos case-sensitively, as Linux CI and the deploy job do', () => {
|
||||
const extra = { 'src/assets/logos/Firefox.svg': '<svg/>' };
|
||||
const wrongCase = validate(data({ firefox: app({ logo: 'local:firefox.svg' }) }, extra));
|
||||
expect(wrongCase.code).toBe(1);
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
* Files are patched line by line, not re-serialised, so Prettier's layout
|
||||
* survives byte for byte.
|
||||
*
|
||||
* Callers: .github/workflows/vt-recheck.yml — daily on main (a PR accumulates
|
||||
* Callers: .gitea/workflows/vt-recheck.yml — daily on main (a PR accumulates
|
||||
* the results), or dispatched on a data branch as a preview — and a
|
||||
* maintainer with VT_API_KEY set. Options come from the environment so a
|
||||
* workflow never interpolates input into a command line:
|
||||
@@ -462,9 +462,7 @@ export async function main(env = process.env, cwd = process.cwd()) {
|
||||
const today = new Date().toISOString().slice(0, 10);
|
||||
const apiKey = env['VT_API_KEY'];
|
||||
if (!apiKey) {
|
||||
console.log(
|
||||
'vt-recheck: VT_API_KEY is not set — nothing scanned (forks and Dependabot have no secrets)',
|
||||
);
|
||||
console.log('vt-recheck: VT_API_KEY is not set — nothing scanned (a run without the secret)');
|
||||
out('changed', 0);
|
||||
out('review', '');
|
||||
return 0;
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
# SonarQube Cloud, CI-based analysis (docs/12 §2). Read by the scanner in
|
||||
# ci.yml's `sonar` job; Automatic Analysis is off for this project — it and a
|
||||
# CI scan cannot both run, and only a CI scan can import coverage.
|
||||
sonar.organization=poli0981
|
||||
sonar.projectKey=poli0981_softharbor
|
||||
sonar.projectName=SoftHarbor
|
||||
|
||||
# Sources stay rooted at the repo so workflow files under .github/ keep being
|
||||
# analysed (the githubactions rules found unpinned actions there). Tests are
|
||||
# split out so test files are judged by test rules — scripts/fixture.ts is the
|
||||
# scripts' test kit, not shipped code — and the curated dataset is excluded:
|
||||
# it is CC BY-SA content validated by Zod + validate:data, not code.
|
||||
sonar.sources=.
|
||||
sonar.tests=.
|
||||
sonar.exclusions=src/data/**,data/**,docs/**,dist/**,coverage/**,node_modules/**,**/*.test.ts,**/*.test.mjs,e2e/**,scripts/fixture.ts
|
||||
sonar.test.inclusions=**/*.test.ts,**/*.test.mjs,e2e/**,scripts/fixture.ts
|
||||
sonar.cpd.exclusions=src/data/**,src/i18n/**
|
||||
|
||||
# Written by `pnpm coverage` (vitest.config.ts). Sonar indexes no .svelte or
|
||||
# .astro file, so the islands' lcov entries are reported as unresolved and
|
||||
# skipped; every analysed .ts/.js/.mjs file is measured. The only exclusions
|
||||
# are the root toolchain configs — read by the tools themselves, not
|
||||
# unit-testable logic.
|
||||
sonar.javascript.lcov.reportPaths=coverage/lcov.info
|
||||
sonar.coverage.exclusions=*.config.ts,*.config.js,*.config.mjs
|
||||
@@ -6,12 +6,12 @@
|
||||
import ShIcon from './ShIcon.astro';
|
||||
import ShBugReport from './islands/ShBugReport.svelte';
|
||||
import { localePath, t, type Locale } from '../i18n';
|
||||
import { RELEASES_URL, SOURCE_URL, sourceFile } from '../lib/forge';
|
||||
|
||||
interface Props {
|
||||
locale: Locale;
|
||||
}
|
||||
const { locale } = Astro.props;
|
||||
const REPO = 'https://github.com/poli0981/softharbor';
|
||||
|
||||
const legal = [
|
||||
['/legal/disclaimer', 'footer.legal.disclaimer'],
|
||||
@@ -66,7 +66,7 @@ const built = new Intl.DateTimeFormat(locale === 'vi' ? 'vi-VN' : 'en-GB', {
|
||||
<ShIcon name="rss" class="size-4" motion="pop" />
|
||||
{t(locale, 'footer.rss')}
|
||||
</a>
|
||||
<a href={`${REPO}/blob/main/LICENSE-DATA.md`} rel="noopener">
|
||||
<a href={sourceFile('LICENSE-DATA.md')} rel="noopener">
|
||||
CC BY-SA 4.0
|
||||
</a>
|
||||
</nav>
|
||||
@@ -85,11 +85,11 @@ const built = new Intl.DateTimeFormat(locale === 'vi' ? 'vi-VN' : 'en-GB', {
|
||||
{t(locale, 'footer.project')}
|
||||
</h2>
|
||||
<a href={localePath(locale, '/contact')}>{t(locale, 'footer.contact')}</a>
|
||||
<a href={REPO} rel="noopener" class="sh-anim">
|
||||
{t(locale, 'footer.github')}
|
||||
<a href={SOURCE_URL} rel="noopener" class="sh-anim">
|
||||
{t(locale, 'footer.source')}
|
||||
<ShIcon name="arrow-up-right" class="size-3.5" motion="nudge-diag" />
|
||||
</a>
|
||||
<a href={`${REPO}/releases`} rel="noopener" class="sh-anim">
|
||||
<a href={RELEASES_URL} rel="noopener" class="sh-anim">
|
||||
{t(locale, 'footer.releases')}
|
||||
<ShIcon name="arrow-up-right" class="size-3.5" motion="nudge-diag" />
|
||||
</a>
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
<!-- A real link, not a button calling window.open: the user can see the target,
|
||||
middle-click it, or copy it. Nothing is transmitted until they submit the
|
||||
form on GitHub themselves (docs/09 §8, docs/14 §3b). -->
|
||||
issue on the GitLab mirror themselves (docs/09 §8, docs/14 §3b). -->
|
||||
<a
|
||||
{href}
|
||||
rel="noopener"
|
||||
@@ -48,7 +48,7 @@
|
||||
onclick={refresh}
|
||||
class="hover:underline"
|
||||
>
|
||||
{label}{#if count > 0}<span class="text-badge ml-1 font-mono"
|
||||
>({countLabel.replaceAll('{n}', String(count))})</span
|
||||
>{/if}<span class="sr-only">{` ${newTabLabel}`}</span>
|
||||
{label}{#if count > 0}<span class="text-badge ml-1 font-mono">
|
||||
({countLabel.replaceAll('{n}', String(count))})
|
||||
</span>{/if}<span class="sr-only">{` ${newTabLabel}`}</span>
|
||||
</a>
|
||||
@@ -1,9 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 (SkullMute)
|
||||
//
|
||||
// ShBugReport — a plain link whose prefilled GitHub URL is built at the last
|
||||
// ShBugReport — a plain link whose prefilled GitLab URL is built at the last
|
||||
// moment (hover / focus / click), from the page and the ring buffer as they
|
||||
// are THEN. Nothing is sent anywhere until the visitor submits on GitHub.
|
||||
// are THEN. Nothing is sent anywhere until the visitor submits on GitLab.
|
||||
|
||||
import { flushSync, mount, unmount } from 'svelte';
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
|
||||
@@ -36,7 +36,7 @@ describe('ShBugReport', () => {
|
||||
it('points at the bare bug form until the visitor reaches for it', () => {
|
||||
// Works before (and without) hydration; the prefilled URL comes later.
|
||||
expect(link.getAttribute('href')).toBe(
|
||||
'https://github.com/poli0981/softharbor/issues/new?template=bug_report.yml&labels=bug',
|
||||
'https://gitlab.com/poli0981/softharbor/-/issues/new?issuable_template=Bug',
|
||||
);
|
||||
expect(link.getAttribute('rel')).toBe('noopener');
|
||||
expect(link.getAttribute('target')).toBe('_blank');
|
||||
@@ -44,17 +44,17 @@ describe('ShBugReport', () => {
|
||||
expect(link.textContent?.trim()).toBe('Báo lỗi (mở trong thẻ mới)');
|
||||
});
|
||||
|
||||
it('prefills the issue form with the page as it is on focus', () => {
|
||||
it('prefills the issue with the page as it is on focus', () => {
|
||||
link.dispatchEvent(new FocusEvent('focus'));
|
||||
flushSync();
|
||||
const url = new URL(link.href);
|
||||
expect(`${url.origin}${url.pathname}`).toBe(
|
||||
'https://github.com/poli0981/softharbor/issues/new',
|
||||
'https://gitlab.com/poli0981/softharbor/-/issues/new',
|
||||
);
|
||||
expect(url.searchParams.get('template')).toBe('bug_report.yml');
|
||||
expect(url.searchParams.get('page-url')).toBe(location.href);
|
||||
expect(url.searchParams.get('environment')).toContain('lang=vi');
|
||||
expect(url.searchParams.get('console-output')).toBe('(buffer empty)');
|
||||
const description = url.searchParams.get('issue[description]') ?? '';
|
||||
expect(description).toContain(`### Page URL\n\n${location.href}\n`);
|
||||
expect(description).toContain('lang=vi');
|
||||
expect(description).toContain('```shell\n(buffer empty)\n```');
|
||||
});
|
||||
|
||||
it('shows how many errors the buffer caught, and sends them along', () => {
|
||||
@@ -62,6 +62,8 @@ describe('ShBugReport', () => {
|
||||
link.dispatchEvent(new MouseEvent('mouseenter'));
|
||||
flushSync();
|
||||
expect(link.textContent).toContain('(2 lỗi)');
|
||||
expect(new URL(link.href).searchParams.get('console-output')).toBe('[error] a\n[error] b');
|
||||
expect(new URL(link.href).searchParams.get('issue[description]')).toContain(
|
||||
'```shell\n[error] a\n[error] b\n```',
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -82,9 +82,9 @@
|
||||
<IconFilter aria-hidden="true" class="size-[18px]" />
|
||||
{openLabel}
|
||||
{#if $activeFilterCount > 0}
|
||||
<span class="sh-pill bg-sh-accent text-sh-accent-ink border-transparent"
|
||||
>{$activeFilterCount}</span
|
||||
><span class="sr-only">{` ${activeLabel}`}</span>
|
||||
<span class="sh-pill bg-sh-accent text-sh-accent-ink border-transparent">
|
||||
{$activeFilterCount}
|
||||
</span><span class="sr-only">{` ${activeLabel}`}</span>
|
||||
{/if}
|
||||
</button>
|
||||
|
||||
@@ -114,9 +114,9 @@
|
||||
{/each}
|
||||
|
||||
<footer class="mt-auto flex gap-3 pt-4">
|
||||
<button type="button" class="sh-btn" disabled={!$hasActiveFilters} onclick={clearAll}
|
||||
>{clearLabel}</button
|
||||
>
|
||||
<button type="button" class="sh-btn" disabled={!$hasActiveFilters} onclick={clearAll}>
|
||||
{clearLabel}
|
||||
</button>
|
||||
<!-- The visible text IS the accessible name ("Show 42 apps"). It used to
|
||||
carry aria-label="Close filters", which hid the count from screen
|
||||
readers and broke WCAG 2.5.3 Label in Name for voice control. -->
|
||||
|
||||
@@ -70,8 +70,10 @@
|
||||
onclick={() => choose('en')}
|
||||
hreflang="en"
|
||||
lang="en"
|
||||
data-testid="sh-lang-en">EN<span class="sh-sr">{` — ${names.en}`}</span></a
|
||||
data-testid="sh-lang-en"
|
||||
>
|
||||
EN<span class="sh-sr">{` — ${names.en}`}</span>
|
||||
</a>
|
||||
<span aria-current="true" lang="vi">VI<span class="sh-sr">{` — ${names.vi}`}</span></span>
|
||||
{:else}
|
||||
<span aria-current="true" lang="en">EN<span class="sh-sr">{` — ${names.en}`}</span></span>
|
||||
@@ -80,8 +82,10 @@
|
||||
onclick={() => choose('vi')}
|
||||
hreflang="vi"
|
||||
lang="vi"
|
||||
data-testid="sh-lang-vi">VI<span class="sh-sr">{` — ${names.vi}`}</span></a
|
||||
data-testid="sh-lang-vi"
|
||||
>
|
||||
VI<span class="sh-sr">{` — ${names.vi}`}</span>
|
||||
</a>
|
||||
{/if}
|
||||
</nav>
|
||||
|
||||
@@ -92,9 +96,9 @@
|
||||
data-testid="sh-lang-suggest"
|
||||
>
|
||||
<p class="min-w-0 flex-1">{suggestText}</p>
|
||||
<a href={hrefFor('vi')} onclick={() => choose('vi')} class="sh-btn sh-btn-primary"
|
||||
>{suggestAccept}</a
|
||||
>
|
||||
<a href={hrefFor('vi')} onclick={() => choose('vi')} class="sh-btn sh-btn-primary">
|
||||
{suggestAccept}
|
||||
</a>
|
||||
<button type="button" onclick={dismiss} class="sh-btn">{suggestDismiss}</button>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
@@ -226,8 +226,10 @@
|
||||
{#if loading}
|
||||
<span
|
||||
class="text-sh-muted text-badge absolute top-1/2 right-3 -translate-y-1/2 font-mono"
|
||||
aria-hidden="true">{loadingLabel}</span
|
||||
aria-hidden="true"
|
||||
>
|
||||
{loadingLabel}
|
||||
</span>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -7,14 +7,15 @@
|
||||
// link targets (#report from the footer of ACCESSIBILITY.md and the issue
|
||||
// form).
|
||||
import { CONTACTS } from '../../lib/contacts';
|
||||
import { newIssue, sourceFile } from '../../lib/forge';
|
||||
import type { Locale } from '../../i18n';
|
||||
interface Props {
|
||||
locale: Locale;
|
||||
}
|
||||
const { locale } = Astro.props;
|
||||
const MAIL = CONTACTS.accessibility;
|
||||
const FORM = 'https://github.com/poli0981/softharbor/issues/new?template=accessibility.yml';
|
||||
const GUIDE = 'https://github.com/poli0981/softharbor/blob/main/ACCESSIBILITY.md';
|
||||
const FORM = newIssue('Accessibility');
|
||||
const GUIDE = sourceFile('ACCESSIBILITY.md');
|
||||
const WCAG = 'https://www.w3.org/TR/WCAG22/';
|
||||
---
|
||||
|
||||
@@ -101,10 +102,10 @@ const WCAG = 'https://www.w3.org/TR/WCAG22/';
|
||||
<h2 id="report">Report a barrier</h2>
|
||||
<p>
|
||||
Email <a href={`mailto:${MAIL}`}>{MAIL}</a>, or <a href={FORM}>open an accessibility issue</a>{' '}
|
||||
on GitHub (that needs a GitHub account; email does not). If you can, say which page you were
|
||||
on, what you were trying to do, what happened, and which device, browser and assistive
|
||||
technology you use. Screenshots or recordings are welcome but never required, and you never
|
||||
need to tell us about a disability. Write in English or Vietnamese.
|
||||
on our GitLab mirror (that needs a GitLab account; email does not). If you can, say which page
|
||||
you were on, what you were trying to do, what happened, and which device, browser and
|
||||
assistive technology you use. Screenshots or recordings are welcome but never required, and
|
||||
you never need to tell us about a disability. Write in English or Vietnamese.
|
||||
</p>
|
||||
|
||||
<h2 id="response">What happens next</h2>
|
||||
@@ -226,11 +227,11 @@ const WCAG = 'https://www.w3.org/TR/WCAG22/';
|
||||
<h2 id="report">Báo một trở ngại</h2>
|
||||
<p>
|
||||
Gửi email đến <a href={`mailto:${MAIL}`}>{MAIL}</a>, hoặc{' '}
|
||||
<a href={FORM}>mở một issue về trợ năng</a> trên GitHub (cần tài khoản GitHub; email thì không
|
||||
cần). Nếu được, hãy cho biết bạn đang ở trang nào, định làm gì, chuyện gì đã xảy ra, và bạn
|
||||
dùng thiết bị, trình duyệt, công nghệ hỗ trợ nào. Ảnh chụp hay video màn hình luôn được hoan
|
||||
nghênh nhưng không bắt buộc, và bạn không bao giờ cần cho chúng tôi biết về tình trạng khuyết
|
||||
tật. Bạn có thể viết bằng tiếng Việt hoặc tiếng Anh.
|
||||
<a href={FORM}>mở một issue về trợ năng</a> trên bản sao GitLab của dự án (cần tài khoản
|
||||
GitLab; email thì không cần). Nếu được, hãy cho biết bạn đang ở trang nào, định làm gì, chuyện
|
||||
gì đã xảy ra, và bạn dùng thiết bị, trình duyệt, công nghệ hỗ trợ nào. Ảnh chụp hay video màn
|
||||
hình luôn được hoan nghênh nhưng không bắt buộc, và bạn không bao giờ cần cho chúng tôi biết
|
||||
về tình trạng khuyết tật. Bạn có thể viết bằng tiếng Việt hoặc tiếng Anh.
|
||||
</p>
|
||||
|
||||
<h2 id="response">Sau khi bạn báo</h2>
|
||||
|
||||
@@ -68,8 +68,8 @@ const rows = [
|
||||
|
||||
<p>
|
||||
{en
|
||||
? 'Claude models developed by Anthropic, used through Claude Code — Anthropic’s command-line coding tool: Claude Opus 5 (model identifier claude-opus-5) for the site and catalogue through v1.0, and Claude Opus 5.5 (claude-opus-5-5) for the v1.1, v1.2 and v1.3 work of October 2026 and the v1.4 work of November 2026. Earlier work on the project used Claude models through the same tool. No other AI system contributed to this site.'
|
||||
: 'Các mô hình Claude do Anthropic phát triển, sử dụng qua Claude Code — công cụ lập trình dòng lệnh của Anthropic: Claude Opus 5 (mã định danh mô hình claude-opus-5) cho trang web và danh mục đến hết v1.0, và Claude Opus 5.5 (claude-opus-5-5) cho phần việc v1.1, v1.2 và v1.3 vào tháng 10/2026 và v1.4 vào tháng 11/2026. Các giai đoạn trước của dự án cũng dùng mô hình Claude qua chính công cụ này. Không có hệ thống AI nào khác tham gia vào trang web này.'}
|
||||
? 'Claude models developed by Anthropic, used through Claude Code — Anthropic’s command-line coding tool: Claude Opus 5 (model identifier claude-opus-5) for the site and catalogue through v1.0, and Claude Opus 5.5 (claude-opus-5-5) for the v1.1, v1.2 and v1.3 work of October 2026 and the v1.4 and v1.5 work of November 2026. Earlier work on the project used Claude models through the same tool. No other AI system contributed to this site.'
|
||||
: 'Các mô hình Claude do Anthropic phát triển, sử dụng qua Claude Code — công cụ lập trình dòng lệnh của Anthropic: Claude Opus 5 (mã định danh mô hình claude-opus-5) cho trang web và danh mục đến hết v1.0, và Claude Opus 5.5 (claude-opus-5-5) cho phần việc v1.1, v1.2 và v1.3 vào tháng 10/2026, v1.4 và v1.5 vào tháng 11/2026. Các giai đoạn trước của dự án cũng dùng mô hình Claude qua chính công cụ này. Không có hệ thống AI nào khác tham gia vào trang web này.'}
|
||||
</p>
|
||||
|
||||
<h2>{en ? 'Where it was used' : 'Đã dùng ở đâu'}</h2>
|
||||
|
||||
@@ -6,13 +6,14 @@
|
||||
// The reporting routes match SECURITY.md: a dangerous listing is a security
|
||||
// report (private), wrong information is an ordinary issue.
|
||||
import { CONTACTS } from '../../lib/contacts';
|
||||
import { newIssue } from '../../lib/forge';
|
||||
import type { Locale } from '../../i18n';
|
||||
interface Props {
|
||||
locale: Locale;
|
||||
}
|
||||
const { locale } = Astro.props;
|
||||
const { security: SECURITY, takedown: TAKEDOWN } = CONTACTS;
|
||||
const ISSUES = 'https://github.com/poli0981/softharbor/issues';
|
||||
const ISSUES = newIssue('Listing change');
|
||||
const base = locale === 'vi' ? '/vi/legal' : '/legal';
|
||||
---
|
||||
|
||||
@@ -50,8 +51,8 @@ const base = locale === 'vi' ? '/vi/legal' : '/legal';
|
||||
<strong>Reporting a listing:</strong> a dangerous one — a hijacked, look-alike or malicious
|
||||
download link — goes privately to <a href={`mailto:${SECURITY}`}>{SECURITY}</a>, not to a
|
||||
public issue, so the bad link is not spread further. Outdated or wrong information goes to a{' '}
|
||||
<a href={ISSUES}>GitHub issue</a>; a developer who wants their entry changed or removed can
|
||||
write to <a href={`mailto:${TAKEDOWN}`}>{TAKEDOWN}</a>.
|
||||
<a href={ISSUES}>issue on our GitLab mirror</a>; a developer who wants their entry changed
|
||||
or removed can write to <a href={`mailto:${TAKEDOWN}`}>{TAKEDOWN}</a>.
|
||||
</li>
|
||||
</ol>
|
||||
</>
|
||||
@@ -89,8 +90,8 @@ const base = locale === 'vi' ? '/vi/legal' : '/legal';
|
||||
<strong>Báo cáo một mục:</strong> mục nguy hiểm — liên kết tải về bị chiếm quyền, giả mạo
|
||||
hoặc độc hại — hãy báo riêng tới <a href={`mailto:${SECURITY}`}>{SECURITY}</a>, đừng mở
|
||||
issue công khai, để liên kết xấu không bị lan rộng thêm. Thông tin lỗi thời hoặc sai hãy báo
|
||||
qua <a href={ISSUES}>GitHub issue</a>; nhà phát triển muốn sửa hoặc gỡ mục của mình có thể
|
||||
viết tới <a href={`mailto:${TAKEDOWN}`}>{TAKEDOWN}</a>.
|
||||
qua <a href={ISSUES}>issue trên bản sao GitLab của dự án</a>; nhà phát triển muốn sửa hoặc
|
||||
gỡ mục của mình có thể viết tới <a href={`mailto:${TAKEDOWN}`}>{TAKEDOWN}</a>.
|
||||
</li>
|
||||
</ol>
|
||||
</>
|
||||
|
||||
@@ -120,11 +120,11 @@ const PRIVACY = CONTACTS.privacy;
|
||||
|
||||
<h2 id="bug-reports">Bug reports</h2>
|
||||
<p>
|
||||
"Report a bug" is a link to a prefilled GitHub issue form. Its address contains the page's
|
||||
URL, your browser's user-agent string and recent error lines from this site, so{' '}
|
||||
<strong>GitHub receives them as soon as you open the link</strong>. Nothing is filed until you
|
||||
review and submit the form, under GitHub's terms and privacy policy — remove anything you
|
||||
would rather not share first.
|
||||
"Report a bug" is a link to a new, prefilled issue on our GitLab mirror (gitlab.com). Its
|
||||
address contains the page's URL, your browser's user-agent string and recent error lines from
|
||||
this site, so <strong>GitLab receives them as soon as you open the link</strong>. Nothing is
|
||||
filed until you review and submit the issue, under GitLab's terms and privacy policy — remove
|
||||
anything you would rather not share first.
|
||||
</p>
|
||||
|
||||
<h2 id="links">Other sites</h2>
|
||||
@@ -254,11 +254,12 @@ const PRIVACY = CONTACTS.privacy;
|
||||
|
||||
<h2 id="bug-reports">Báo lỗi</h2>
|
||||
<p>
|
||||
"Báo lỗi" là liên kết tới một biểu mẫu issue GitHub được điền sẵn. Địa chỉ của liên kết chứa
|
||||
URL của trang, chuỗi user-agent của trình duyệt và các dòng lỗi gần đây của trang này, nên{' '}
|
||||
<strong>GitHub nhận được chúng ngay khi bạn mở liên kết</strong>. Không có gì được đăng cho
|
||||
tới khi bạn xem lại và tự gửi biểu mẫu, theo điều khoản và chính sách quyền riêng tư của
|
||||
GitHub — hãy xoá những gì bạn không muốn chia sẻ trước khi gửi.
|
||||
"Báo lỗi" là liên kết tới một issue mới được điền sẵn trên bản sao GitLab của dự án
|
||||
(gitlab.com). Địa chỉ của liên kết chứa URL của trang, chuỗi user-agent của trình duyệt và các
|
||||
dòng lỗi gần đây của trang này, nên{' '}
|
||||
<strong>GitLab nhận được chúng ngay khi bạn mở liên kết</strong>. Không có gì được đăng cho
|
||||
tới khi bạn xem lại và tự gửi issue, theo điều khoản và chính sách quyền riêng tư của GitLab —
|
||||
hãy xoá những gì bạn không muốn chia sẻ trước khi gửi.
|
||||
</p>
|
||||
|
||||
<h2 id="links">Trang web khác</h2>
|
||||
|
||||
@@ -4,13 +4,14 @@
|
||||
// docs/14 §3c. Governing law (Vietnam) is a Kokone sign-off item — docs/14 Part 4.
|
||||
// `#copyright` is the notice-and-takedown procedure the Contact page links to.
|
||||
import { CONTACTS } from '../../lib/contacts';
|
||||
import { sourceFile } from '../../lib/forge';
|
||||
import type { Locale } from '../../i18n';
|
||||
interface Props {
|
||||
locale: Locale;
|
||||
}
|
||||
const { locale } = Astro.props;
|
||||
const SITE = 'https://softharbor.net';
|
||||
const LICENSE_DATA = 'https://github.com/poli0981/softharbor/blob/main/LICENSE-DATA.md';
|
||||
const LICENSE_DATA = sourceFile('LICENSE-DATA.md');
|
||||
const { legal: LEGAL, dmca: DMCA, takedown: TAKEDOWN } = CONTACTS;
|
||||
const base = locale === 'vi' ? '/vi/legal' : '/legal';
|
||||
---
|
||||
|
||||
@@ -52,13 +52,12 @@ const services = [
|
||||
policy: 'https://www.cloudflare.com/privacypolicy/',
|
||||
},
|
||||
{
|
||||
name: 'GitHub',
|
||||
name: 'GitLab',
|
||||
what: {
|
||||
en: 'The source repository, issues, and the prefilled "Report a bug" form.',
|
||||
vi: 'Kho mã nguồn, issue và biểu mẫu "Báo lỗi" được điền sẵn.',
|
||||
en: 'The public mirror of the source repository: issues, and the prefilled "Report a bug" issue. The source itself is on our own Gitea (git.poli0981.dev).',
|
||||
vi: 'Bản sao công khai của kho mã nguồn: issue và issue "Báo lỗi" được điền sẵn. Bản gốc của mã nguồn nằm trên máy chủ Gitea của chúng tôi (git.poli0981.dev).',
|
||||
},
|
||||
policy:
|
||||
'https://docs.github.com/en/site-policy/privacy-policies/github-general-privacy-statement',
|
||||
policy: 'https://about.gitlab.com/privacy/',
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -4,13 +4,14 @@
|
||||
// docs/14 §3d. The logo-handling rules here are the ones src/lib/icon.ts and
|
||||
// the Simple Icons caveat in §3e depend on.
|
||||
import { CONTACTS } from '../../lib/contacts';
|
||||
import { newIssue } from '../../lib/forge';
|
||||
import type { Locale } from '../../i18n';
|
||||
interface Props {
|
||||
locale: Locale;
|
||||
}
|
||||
const { locale } = Astro.props;
|
||||
const TAKEDOWN = CONTACTS.takedown;
|
||||
const ISSUES = 'https://github.com/poli0981/softharbor/issues';
|
||||
const ISSUES = newIssue('Listing change');
|
||||
---
|
||||
|
||||
{locale === 'en' ? (
|
||||
@@ -31,8 +32,9 @@ const ISSUES = 'https://github.com/poli0981/softharbor/issues';
|
||||
<h2 id="takedown">Takedown</h2>
|
||||
<p>
|
||||
If you own a mark and want its use changed or removed, email{' '}
|
||||
<a href={`mailto:${TAKEDOWN}`}>{TAKEDOWN}</a> or open a <a href={ISSUES}>GitHub issue</a> — we
|
||||
comply promptly and remove the entry's logo (or the entry) while we discuss it.
|
||||
<a href={`mailto:${TAKEDOWN}`}>{TAKEDOWN}</a> or open an{' '}
|
||||
<a href={ISSUES}>issue on our GitLab mirror</a> — we comply promptly and remove the entry's
|
||||
logo (or the entry) while we discuss it.
|
||||
</p>
|
||||
</>
|
||||
) : (
|
||||
@@ -51,8 +53,9 @@ const ISSUES = 'https://github.com/poli0981/softharbor/issues';
|
||||
<h2 id="takedown">Yêu cầu gỡ bỏ</h2>
|
||||
<p>
|
||||
Nếu bạn là chủ sở hữu nhãn hiệu và muốn thay đổi hoặc gỡ việc sử dụng, hãy email tới{' '}
|
||||
<a href={`mailto:${TAKEDOWN}`}>{TAKEDOWN}</a> hoặc mở <a href={ISSUES}>GitHub issue</a> —
|
||||
chúng tôi đáp ứng kịp thời và gỡ logo của mục (hoặc cả mục) trong khi trao đổi.
|
||||
<a href={`mailto:${TAKEDOWN}`}>{TAKEDOWN}</a> hoặc mở{' '}
|
||||
<a href={ISSUES}>issue trên bản sao GitLab của dự án</a> — chúng tôi đáp ứng kịp thời và gỡ
|
||||
logo của mục (hoặc cả mục) trong khi trao đổi.
|
||||
</p>
|
||||
</>
|
||||
)}
|
||||
@@ -8,13 +8,13 @@
|
||||
import Base from '../../layouts/Base.astro';
|
||||
import ShIcon from '../ShIcon.astro';
|
||||
import { CONTACTS } from '../../lib/contacts';
|
||||
import { NEW_ISSUE_URL } from '../../lib/forge';
|
||||
import { localePath, t, type Locale } from '../../i18n';
|
||||
|
||||
interface Props {
|
||||
locale: Locale;
|
||||
}
|
||||
const { locale } = Astro.props;
|
||||
const ISSUES = 'https://github.com/poli0981/softharbor/issues/new/choose';
|
||||
|
||||
/** Order is urgency: what can hurt someone first, press and collaboration last. */
|
||||
const rows = [
|
||||
@@ -87,7 +87,7 @@ const rows = [
|
||||
<ShIcon name="message-square-text" class="size-5" />
|
||||
</span>
|
||||
<p class="min-w-0 flex-1">{t(locale, 'contact.issues')}</p>
|
||||
<a href={ISSUES} rel="noopener" class="sh-btn sh-btn-primary sh-anim">
|
||||
<a href={NEW_ISSUE_URL} rel="noopener" class="sh-btn sh-btn-primary sh-anim">
|
||||
{t(locale, 'contact.issuesLink')}
|
||||
<ShIcon name="arrow-up-right" class="size-4" motion="nudge-diag" />
|
||||
</a>
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "AnythingLLM",
|
||||
"developer": "Mintplex Labs Inc.",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Desktop app for chatting with your own documents through local or cloud language models, with built-in agents and a local API.",
|
||||
"vi": "Ứng dụng desktop để hỏi đáp về tài liệu của bạn bằng mô hình ngôn ngữ chạy trên máy hoặc trên đám mây, có sẵn agent và API cục bộ."
|
||||
},
|
||||
"categories": ["ai-local", "productivity"],
|
||||
"tags": ["local-llm", "offline-ai", "rag", "chat", "ai-agents", "byok"],
|
||||
"platforms": ["windows", "macos", "linux"],
|
||||
"pricing": "free",
|
||||
"license": "MIT",
|
||||
"links": {
|
||||
"homepage": "https://anythingllm.com",
|
||||
"repo": "https://github.com/Mintplex-Labs/anything-llm",
|
||||
"download": "https://anythingllm.com/download"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/c1c6d25f701b8427110c57cdd74770c58da94f166ddf92865976b011d0dac07a",
|
||||
"checkedAt": "2026-11-24"
|
||||
},
|
||||
"addedAt": "2026-11-24"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "Buzz",
|
||||
"developer": "Chidi Williams",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Transcribes and translates speech in audio and video files offline with Whisper models, and exports TXT, SRT or VTT subtitles.",
|
||||
"vi": "Chép lời và dịch giọng nói trong tệp âm thanh, video hoàn toàn ngoại tuyến bằng mô hình Whisper, rồi xuất phụ đề TXT, SRT hoặc VTT."
|
||||
},
|
||||
"categories": ["ai-local", "media", "productivity"],
|
||||
"tags": ["transcription", "speech-to-text", "whisper", "subtitles", "translation", "offline-ai"],
|
||||
"platforms": ["windows", "macos", "linux"],
|
||||
"pricing": "free",
|
||||
"license": "MIT",
|
||||
"links": {
|
||||
"homepage": "https://chidiwilliams.github.io/buzz/",
|
||||
"repo": "https://github.com/chidiwilliams/buzz",
|
||||
"download": "https://github.com/chidiwilliams/buzz/releases/latest"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/f4105058130f7ebcdcc11a198b57f24bf005fefbcb9cc005d4134c51ab891ae1",
|
||||
"checkedAt": "2026-11-24"
|
||||
},
|
||||
"addedAt": "2026-11-24"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "Cisel Media",
|
||||
"developer": "CiselSoft",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Windows video editor that finds speech pauses to trim, records screen and camera, and makes subtitles offline; free exports carry a watermark.",
|
||||
"vi": "Trình dựng video cho Windows: tìm và cắt khoảng lặng khi nói, quay màn hình và camera, tạo phụ đề ngay trên máy; bản miễn phí xuất có đóng dấu chìm."
|
||||
},
|
||||
"categories": ["media"],
|
||||
"tags": ["video-editing", "subtitles", "screen-recording", "silence-removal"],
|
||||
"platforms": ["windows"],
|
||||
"pricing": "onetime",
|
||||
"license": null,
|
||||
"links": {
|
||||
"homepage": "https://www.ciselsoft.com/urunler/cisel-media/en-us",
|
||||
"repo": null,
|
||||
"download": "https://www.ciselsoft.com/urunler/cisel-media/en-us#download-options"
|
||||
},
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"evidence": "https://www.virustotal.com/gui/url/8f07d4dd8105478f50e624ef6975f9d7d95496dd4794210259f44f9db1ebf212",
|
||||
"checkedAt": "2026-11-20"
|
||||
},
|
||||
"addedAt": "2026-11-20"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "CloneSift",
|
||||
"developer": "CiselSoft",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Finds byte-identical duplicate files across the folders and drives you pick, lets you choose the copy to keep and sends the rest to the Recycle Bin.",
|
||||
"vi": "Tìm tệp trùng lặp giống hệt từng byte trong thư mục và ổ đĩa bạn chọn, cho chọn bản giữ lại và chuyển các bản còn lại vào Thùng rác."
|
||||
},
|
||||
"categories": ["file-management", "utilities"],
|
||||
"tags": ["duplicates", "cleanup", "sha-256"],
|
||||
"platforms": ["windows"],
|
||||
"pricing": "free-onetime",
|
||||
"license": null,
|
||||
"links": {
|
||||
"homepage": "https://www.ciselsoft.com/urunler/clonesift/en-us",
|
||||
"repo": null,
|
||||
"download": "https://www.ciselsoft.com/urunler/clonesift/en-us"
|
||||
},
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"evidence": "https://www.virustotal.com/gui/url/b22fa92931464f3a0ea1e4f6608b79d0a5df11e7d840b24ad90332c7b716f6ed",
|
||||
"checkedAt": "2026-11-20"
|
||||
},
|
||||
"addedAt": "2026-11-20"
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"name": "Comfy Desktop",
|
||||
"developer": "Comfy Org",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Installs and runs ComfyUI, the node-based editor for building image, video and audio generation workflows with models on your own machine.",
|
||||
"vi": "Cài đặt và chạy ComfyUI, trình soạn quy trình dạng nút để tạo ảnh, video và âm thanh bằng các mô hình chạy ngay trên máy của bạn."
|
||||
},
|
||||
"categories": ["ai-local", "graphics"],
|
||||
"tags": [
|
||||
"comfyui",
|
||||
"stable-diffusion",
|
||||
"image-generation",
|
||||
"node-editor",
|
||||
"workflows",
|
||||
"offline-ai"
|
||||
],
|
||||
"platforms": ["windows", "macos", "linux"],
|
||||
"pricing": "free",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"links": {
|
||||
"homepage": "https://comfy.org",
|
||||
"repo": "https://github.com/Comfy-Org/Comfy-Desktop",
|
||||
"download": "https://comfy.org/download"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/f09264b0e669d637fd330af597e9f4b2f02f1fc7a858f895c8859eaa2734e65a",
|
||||
"checkedAt": "2026-11-24"
|
||||
},
|
||||
"addedAt": "2026-11-24"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "CopyQ",
|
||||
"developer": "Lukas Holecek",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Clipboard manager that keeps a searchable history of text and images in tabs, with item editing, tags and scripting.",
|
||||
"vi": "Trình quản lý clipboard lưu lịch sử văn bản và hình ảnh tìm kiếm được, chia theo tab, cho sửa từng mục, gắn thẻ và viết script."
|
||||
},
|
||||
"categories": ["productivity", "utilities"],
|
||||
"tags": ["clipboard", "clipboard-history", "scriptable", "cross-platform", "portable"],
|
||||
"platforms": ["windows", "macos", "linux"],
|
||||
"pricing": "free",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"links": {
|
||||
"homepage": "https://hluk.github.io/CopyQ/",
|
||||
"repo": "https://github.com/hluk/CopyQ",
|
||||
"download": "https://github.com/hluk/CopyQ/releases/latest"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/13518b122ad8054b4c292074a619ba47fd3c167b25963d1515e796d70e8ca46b",
|
||||
"checkedAt": "2026-11-24"
|
||||
},
|
||||
"addedAt": "2026-11-24"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "Equalizer APO",
|
||||
"developer": "Jonas Thedering",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "System-wide equalizer for Windows that hooks into the audio driver chain, applying parametric or graphic EQ and other filters per device.",
|
||||
"vi": "Bộ chỉnh âm toàn hệ thống cho Windows, gắn vào chuỗi xử lý của trình điều khiển âm thanh để áp EQ tham số, EQ đồ hoạ và bộ lọc khác cho từng thiết bị."
|
||||
},
|
||||
"categories": ["media", "system"],
|
||||
"tags": ["audio", "equalizer", "system-wide", "headphones", "audio-filters"],
|
||||
"platforms": ["windows"],
|
||||
"pricing": "free",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"links": {
|
||||
"homepage": "https://sourceforge.net/projects/equalizerapo/",
|
||||
"repo": "https://sourceforge.net/p/equalizerapo/code/",
|
||||
"download": "https://sourceforge.net/projects/equalizerapo/files/"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/6549b9e783c8762103da4ecb9edffc673a2c1f658604672d9f818ae25437c3a2",
|
||||
"checkedAt": "2026-11-24"
|
||||
},
|
||||
"addedAt": "2026-11-24"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "Flow Launcher",
|
||||
"developer": "Flow Launcher Team",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Keyboard launcher for Windows: type to open apps, find files, run commands or do quick sums, with more features from its plugin store.",
|
||||
"vi": "Trình khởi chạy bằng bàn phím cho Windows: gõ để mở ứng dụng, tìm tệp, chạy lệnh hay tính nhanh, thêm tính năng từ kho plugin."
|
||||
},
|
||||
"categories": ["productivity", "utilities"],
|
||||
"tags": ["launcher", "keyboard-shortcuts", "search", "plugins", "portable"],
|
||||
"platforms": ["windows"],
|
||||
"pricing": "free",
|
||||
"license": "MIT",
|
||||
"links": {
|
||||
"homepage": "https://www.flowlauncher.com",
|
||||
"repo": "https://github.com/Flow-Launcher/Flow.Launcher",
|
||||
"download": "https://github.com/Flow-Launcher/Flow.Launcher/releases/latest"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/945ce689582d3c8f42943b50292b74ff3e45ad60e425768ee690c9c6250de0ad",
|
||||
"checkedAt": "2026-11-24"
|
||||
},
|
||||
"addedAt": "2026-11-24"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "KoboldCpp",
|
||||
"developer": "LostRuins (Concedo)",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Single-file program that runs GGUF language models locally and opens a browser UI for chat and story writing, plus compatible APIs.",
|
||||
"vi": "Chương trình một tệp chạy mô hình ngôn ngữ GGUF ngay trên máy, mở giao diện trong trình duyệt để chat, viết truyện, kèm các API tương thích."
|
||||
},
|
||||
"categories": ["ai-local", "developer-tools"],
|
||||
"tags": ["local-llm", "gguf", "offline-ai", "portable", "openai-compatible", "api"],
|
||||
"platforms": ["windows", "macos", "linux"],
|
||||
"pricing": "free",
|
||||
"license": "AGPL-3.0-only",
|
||||
"links": {
|
||||
"homepage": "https://koboldcpp.net",
|
||||
"repo": "https://github.com/LostRuins/koboldcpp",
|
||||
"download": "https://github.com/LostRuins/koboldcpp/releases/latest"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/b91958d214d253017997277b6f173b5f4b6d22b39e0949658b6f054878686c85",
|
||||
"checkedAt": "2026-11-24"
|
||||
},
|
||||
"addedAt": "2026-11-24"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "NAPS2",
|
||||
"developer": "Ben Olden-Cooligan",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Scans paper documents from TWAIN, WIA, SANE or network scanners and saves them as searchable PDFs, images or text via OCR.",
|
||||
"vi": "Quét tài liệu giấy từ máy quét TWAIN, WIA, SANE hoặc máy quét mạng, rồi lưu thành PDF tìm kiếm được, ảnh hoặc văn bản nhờ OCR."
|
||||
},
|
||||
"categories": ["productivity", "utilities"],
|
||||
"tags": ["scanner", "document-scanning", "pdf", "ocr", "twain"],
|
||||
"platforms": ["windows", "macos", "linux"],
|
||||
"pricing": "free",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"links": {
|
||||
"homepage": "https://www.naps2.com",
|
||||
"repo": "https://github.com/cyanfish/naps2",
|
||||
"download": "https://www.naps2.com/download"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/f2d7725c0e9284bd9da128cb49e76cc7c340b5d88c711a63ef361f830775bccd",
|
||||
"checkedAt": "2026-11-24"
|
||||
},
|
||||
"addedAt": "2026-11-24"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "PC Tweaker",
|
||||
"developer": "Aurelio Avila",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Shows what each Windows gaming, privacy or maintenance tweak writes, saves the old value first and puts supported changes back one at a time or all at once.",
|
||||
"vi": "Cho xem từng tinh chỉnh Windows về chơi game, quyền riêng tư hay bảo trì ghi gì, lưu giá trị cũ trước và hoàn tác mục được hỗ trợ từng cái một hoặc tất cả."
|
||||
},
|
||||
"categories": ["system", "gaming"],
|
||||
"tags": ["tweaks", "registry", "reversible", "privacy-settings", "audio", "windows"],
|
||||
"platforms": ["windows"],
|
||||
"pricing": "free-onetime",
|
||||
"license": null,
|
||||
"links": {
|
||||
"homepage": "https://pctweaker.app/",
|
||||
"repo": null,
|
||||
"download": "https://pctweaker.app/"
|
||||
},
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"evidence": "https://www.virustotal.com/gui/url/02dca4b34a1a3b106907096e0b9beb138a5711a6c808595c4489d5ba915fb120",
|
||||
"checkedAt": "2026-11-28"
|
||||
},
|
||||
"addedAt": "2026-11-28"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "PDF24 Creator",
|
||||
"developer": "geek software GmbH",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Offline PDF toolkit for Windows: a virtual PDF printer plus tools to merge, split, compress, convert and OCR documents, free for any use.",
|
||||
"vi": "Bộ công cụ PDF chạy ngoại tuyến cho Windows: máy in PDF ảo cùng các công cụ gộp, tách, nén, chuyển đổi và nhận dạng chữ (OCR), miễn phí cho mọi mục đích."
|
||||
},
|
||||
"categories": ["productivity", "utilities"],
|
||||
"tags": ["pdf", "pdf-printer", "ocr", "converter", "offline"],
|
||||
"platforms": ["windows"],
|
||||
"pricing": "free",
|
||||
"license": null,
|
||||
"links": {
|
||||
"homepage": "https://tools.pdf24.org/en/creator",
|
||||
"repo": null,
|
||||
"download": "https://tools.pdf24.org/en/creator"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/f272825adb68b7a67e34aa1415ac4e14bc36611da33b297102dc14aa3669ac4b",
|
||||
"checkedAt": "2026-11-24"
|
||||
},
|
||||
"addedAt": "2026-11-24"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "qBittorrent",
|
||||
"developer": "The qBittorrent project",
|
||||
"logo": "simple-icons:qbittorrent",
|
||||
"summary": {
|
||||
"en": "Ad-free BitTorrent client with sequential downloading, RSS auto-downloads, per-torrent speed limits and a web interface for remote control.",
|
||||
"vi": "Trình tải BitTorrent không quảng cáo, có tải tuần tự, tự động tải theo RSS, giới hạn tốc độ cho từng torrent và giao diện web để điều khiển từ xa."
|
||||
},
|
||||
"categories": ["file-management", "utilities"],
|
||||
"tags": ["bittorrent", "p2p", "downloads", "rss", "web-ui", "no-ads"],
|
||||
"platforms": ["windows", "macos", "linux"],
|
||||
"pricing": "free",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"links": {
|
||||
"homepage": "https://www.qbittorrent.org",
|
||||
"repo": "https://github.com/qbittorrent/qBittorrent",
|
||||
"download": "https://www.qbittorrent.org/download"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/e7adb6daf0c3dae8ee1371da2bfa821a1320ac3133e24c6ea4b30c9c5d7eb57a",
|
||||
"checkedAt": "2026-11-24"
|
||||
},
|
||||
"addedAt": "2026-11-24"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "QuickLook",
|
||||
"developer": "QL-Win",
|
||||
"logo": "simple-icons:quicklook",
|
||||
"summary": {
|
||||
"en": "Press Space on a file in File Explorer to preview it in a pop-up: images, PDFs, videos, archives, code and more, without opening an app.",
|
||||
"vi": "Chọn tệp trong File Explorer rồi nhấn phím cách để xem trước ảnh, PDF, video, tệp nén, mã nguồn và nhiều loại khác mà không cần mở ứng dụng."
|
||||
},
|
||||
"categories": ["file-management", "utilities"],
|
||||
"tags": ["preview", "file-explorer", "spacebar", "plugins"],
|
||||
"platforms": ["windows"],
|
||||
"pricing": "free",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"links": {
|
||||
"homepage": "https://github.com/QL-Win/QuickLook",
|
||||
"repo": "https://github.com/QL-Win/QuickLook",
|
||||
"download": "https://github.com/QL-Win/QuickLook/releases/latest"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/548183819eb12222619aa9ed245517601547e552b23c93dd368351a4ef9061ee",
|
||||
"checkedAt": "2026-11-24"
|
||||
},
|
||||
"addedAt": "2026-11-24"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "Rainmeter",
|
||||
"developer": "Rainmeter Team",
|
||||
"logo": "simple-icons:rainmeter",
|
||||
"summary": {
|
||||
"en": "Puts skins on the Windows desktop that show clocks, system meters, weather or app shortcuts, each one defined in an editable text file.",
|
||||
"vi": "Đặt các skin lên màn hình nền Windows để hiện đồng hồ, thông số hệ thống, thời tiết hay lối tắt ứng dụng, mỗi skin là một tệp văn bản sửa được."
|
||||
},
|
||||
"categories": ["system", "utilities"],
|
||||
"tags": ["desktop-customization", "widgets", "skins", "system-monitor", "signed-releases"],
|
||||
"platforms": ["windows"],
|
||||
"pricing": "free",
|
||||
"license": "GPL-2.0-only",
|
||||
"links": {
|
||||
"homepage": "https://www.rainmeter.net",
|
||||
"repo": "https://github.com/rainmeter/rainmeter",
|
||||
"download": "https://github.com/rainmeter/rainmeter/releases/latest"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/94b0c9148d252e551a54d5dd8641ec06f2a81297b441a56d8721b3c82ef88d6c",
|
||||
"checkedAt": "2026-11-24"
|
||||
},
|
||||
"addedAt": "2026-11-24"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "scrcpy",
|
||||
"developer": "Genymobile",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Mirrors and controls an Android device from your computer over USB or Wi-Fi, with keyboard and mouse input and nothing installed on the phone.",
|
||||
"vi": "Hiển thị và điều khiển thiết bị Android ngay trên máy tính qua USB hoặc Wi-Fi bằng bàn phím và chuột, không phải cài gì lên điện thoại."
|
||||
},
|
||||
"categories": ["utilities", "developer-tools"],
|
||||
"tags": ["android", "screen-mirroring", "remote-control", "adb", "low-latency", "cli"],
|
||||
"platforms": ["windows", "macos", "linux"],
|
||||
"pricing": "free",
|
||||
"license": "Apache-2.0",
|
||||
"links": {
|
||||
"homepage": "https://github.com/Genymobile/scrcpy",
|
||||
"repo": "https://github.com/Genymobile/scrcpy",
|
||||
"download": "https://github.com/Genymobile/scrcpy/releases/latest"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/9649f57696cece2ef96159956ab36a78acee3677d9dda84f094ebd5c50e32899",
|
||||
"checkedAt": "2026-11-24"
|
||||
},
|
||||
"addedAt": "2026-11-24"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "ScreenToGif",
|
||||
"developer": "Nicke Manarin",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Records a screen area, your webcam or a sketchboard, then lets you edit frame by frame before saving as GIF, APNG, video or images.",
|
||||
"vi": "Quay một vùng màn hình, webcam hoặc bảng vẽ tay, rồi cho chỉnh sửa từng khung hình trước khi lưu thành GIF, APNG, video hay ảnh."
|
||||
},
|
||||
"categories": ["media", "graphics", "utilities"],
|
||||
"tags": ["gif", "screen-recording", "frame-editor", "webcam", "portable"],
|
||||
"platforms": ["windows"],
|
||||
"pricing": "free",
|
||||
"license": "MS-PL",
|
||||
"links": {
|
||||
"homepage": "https://github.com/NickeManarin/ScreenToGif",
|
||||
"repo": "https://github.com/NickeManarin/ScreenToGif",
|
||||
"download": "https://github.com/NickeManarin/ScreenToGif/releases/latest"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/f09b4ebf3cd4f6a74e1c73f921008910c8a1d3c8ae5208a851e905376887a279",
|
||||
"checkedAt": "2026-11-24"
|
||||
},
|
||||
"addedAt": "2026-11-24"
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"name": "Stability Matrix",
|
||||
"developer": "Lykos AI",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Installs and updates Stable Diffusion interfaces such as ComfyUI and Forge in one click, with one shared model library and a model browser.",
|
||||
"vi": "Cài đặt và cập nhật các giao diện Stable Diffusion như ComfyUI, Forge chỉ với một cú nhấp, dùng chung thư viện mô hình, có sẵn công cụ duyệt và tải mô hình."
|
||||
},
|
||||
"categories": ["ai-local", "graphics"],
|
||||
"tags": [
|
||||
"stable-diffusion",
|
||||
"image-generation",
|
||||
"package-manager",
|
||||
"model-manager",
|
||||
"comfyui",
|
||||
"portable"
|
||||
],
|
||||
"platforms": ["windows", "macos", "linux"],
|
||||
"pricing": "free",
|
||||
"license": "AGPL-3.0-only",
|
||||
"links": {
|
||||
"homepage": "https://lykos.ai",
|
||||
"repo": "https://github.com/LykosAI/StabilityMatrix",
|
||||
"download": "https://github.com/LykosAI/StabilityMatrix/releases/latest"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/ff8050c4650c9183724958ece3d8e4841329424633138e7540edf7aece331659",
|
||||
"checkedAt": "2026-11-24"
|
||||
},
|
||||
"addedAt": "2026-11-24"
|
||||
}
|
||||
+2
-2
@@ -20,7 +20,7 @@
|
||||
"contact.copyright": "Licensing of the code or the dataset",
|
||||
"contact.dmca": "A copyright complaint",
|
||||
"contact.intro": "SoftHarbor is run by one person. Each address below reaches the same maintainer, sorted by purpose, so your message is read in the right context.",
|
||||
"contact.issues": "Wrong information, a broken link, or an app to suggest? Open a GitHub issue — it is public, and usually faster.",
|
||||
"contact.issues": "Wrong information, a broken link, or an app to suggest? Open an issue on our GitLab mirror — it is public, needs a GitLab account, and is usually faster.",
|
||||
"contact.issuesLink": "Open an issue",
|
||||
"contact.languages": "We read and reply in English and Vietnamese. Email is handled as the Privacy Policy describes.",
|
||||
"contact.legal": "Terms, the disclaimer and other legal questions",
|
||||
@@ -73,7 +73,6 @@
|
||||
"footer.builtAt": "Built {date}",
|
||||
"footer.contact": "Contact",
|
||||
"footer.data": "Open data",
|
||||
"footer.github": "Source on GitHub",
|
||||
"footer.legal.accessibility": "Accessibility",
|
||||
"footer.legal.aiDisclosure": "AI disclosure",
|
||||
"footer.legal.disclaimer": "Disclaimer",
|
||||
@@ -86,6 +85,7 @@
|
||||
"footer.project": "Project",
|
||||
"footer.releases": "Releases",
|
||||
"footer.rss": "RSS feed",
|
||||
"footer.source": "Source code",
|
||||
"gate.accept": "I understand and accept",
|
||||
"gate.and": "and",
|
||||
"gate.body": "SoftHarbor is a link directory. We don't host downloads, and we can't guarantee third-party software. Statuses like \"no known warnings\" reflect checks on the date shown — verify anything you install. By continuing you accept the",
|
||||
|
||||
+2
-2
@@ -20,7 +20,7 @@
|
||||
"contact.copyright": "Giấy phép của mã nguồn hoặc bộ dữ liệu",
|
||||
"contact.dmca": "Khiếu nại bản quyền",
|
||||
"contact.intro": "SoftHarbor do một người vận hành. Mỗi địa chỉ dưới đây đều tới cùng người bảo trì, được chia theo mục đích để thư của bạn được đọc đúng ngữ cảnh.",
|
||||
"contact.issues": "Thông tin sai, liên kết hỏng, hay muốn đề xuất một ứng dụng? Hãy mở GitHub issue — công khai và thường nhanh hơn.",
|
||||
"contact.issues": "Thông tin sai, liên kết hỏng, hay muốn đề xuất một ứng dụng? Hãy mở issue trên bản sao GitLab của dự án — công khai, cần tài khoản GitLab và thường nhanh hơn.",
|
||||
"contact.issuesLink": "Mở issue",
|
||||
"contact.languages": "Chúng tôi đọc và trả lời bằng tiếng Anh và tiếng Việt. Email được xử lý như Chính sách quyền riêng tư mô tả.",
|
||||
"contact.legal": "Điều khoản, tuyên bố miễn trừ và các câu hỏi pháp lý khác",
|
||||
@@ -73,7 +73,6 @@
|
||||
"footer.builtAt": "Dựng ngày {date}",
|
||||
"footer.contact": "Liên hệ",
|
||||
"footer.data": "Dữ liệu mở",
|
||||
"footer.github": "Mã nguồn trên GitHub",
|
||||
"footer.legal.accessibility": "Trợ năng",
|
||||
"footer.legal.aiDisclosure": "Công bố AI",
|
||||
"footer.legal.disclaimer": "Tuyên bố miễn trừ",
|
||||
@@ -86,6 +85,7 @@
|
||||
"footer.project": "Dự án",
|
||||
"footer.releases": "Các bản phát hành",
|
||||
"footer.rss": "Nguồn RSS",
|
||||
"footer.source": "Mã nguồn",
|
||||
"gate.accept": "Tôi hiểu và chấp nhận",
|
||||
"gate.and": "và",
|
||||
"gate.body": "SoftHarbor là trang tổng hợp liên kết. Chúng tôi không lưu trữ tệp cài đặt và không thể bảo đảm cho phần mềm bên thứ ba. Trạng thái như \"không có cảnh báo đã biết\" chỉ phản ánh việc kiểm tra tại ngày ghi kèm — hãy tự xác minh trước khi cài đặt. Khi tiếp tục, bạn chấp nhận",
|
||||
|
||||
@@ -80,7 +80,7 @@ describe('buildExport — docs/03 §6', () => {
|
||||
// Attribution must name the project and point at the repo — it is the
|
||||
// string re-users are asked to reproduce (docs/14 Part 1).
|
||||
expect(out.attribution).toContain('SoftHarbor contributors');
|
||||
expect(out.attribution).toContain('github.com/poli0981/softharbor');
|
||||
expect(out.attribution).toContain('git.poli0981.dev/poli0981/softharbor');
|
||||
expect(out.generatedAt).toBe('2026-07-28T00:00:00Z');
|
||||
});
|
||||
|
||||
|
||||
Loaded 100 of 109 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user