check-build-tags requires every go test/go run in tracked scripts, workflows, and the Makefile to carry -tags=gms_pure_go (ICU-linkage guard): added to the docsync invocations in docs-mintlify.yml and make check-docs, and to the docsmint stage of generate-cli-docs.sh (the flagged workflow job name no longer embeds a bare invocation). docsmint's two variable-path os.ReadFile sites get justified #nosec G304 annotations — both read only repo-owned files derived from the tool's repo-root argument. golangci-lint: 0 issues.
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
name: Docs (Mintlify) checks
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
|
paths:
|
|
- 'docs/**'
|
|
- 'test/docsync/**'
|
|
- 'mint.sh'
|
|
- '.github/scripts/docs-render-check.sh'
|
|
- '.github/workflows/docs-mintlify.yml'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: docs-mintlify-${{ github.event.pull_request.number }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
docsync:
|
|
name: Docs nav/link sync (docsync guard)
|
|
runs-on: ubuntu-latest
|
|
if: github.event.pull_request.draft == false
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
|
|
- name: Run docsync guard
|
|
run: go test -tags=gms_pure_go ./test/docsync
|
|
|
|
broken-links:
|
|
name: Mintlify broken-links (baseline-aware)
|
|
runs-on: ubuntu-latest
|
|
if: github.event.pull_request.draft == false
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
|
with:
|
|
node-version: 22
|
|
|
|
- name: Run baseline-aware broken-link check
|
|
env:
|
|
BASE_REF: origin/${{ github.base_ref }}
|
|
run: .github/scripts/docs-render-check.sh "$BASE_REF"
|