Skip to content

docs: document subprocess environment filtering and the passthrough setting #29

docs: document subprocess environment filtering and the passthrough setting

docs: document subprocess environment filtering and the passthrough setting #29

##
# Copyright (C) 2023-2024 Hedera Hashgraph, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##
# Builds the Hugo site for every PR targeting main and runs htmltest to catch
# broken internal links before merge. External links are skipped for speed and
# to avoid false failures from third-party rate-limiting; run
# `npm run check:links:all` locally to include them.
name: "PR: Link Check"
on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
# Cancel any in-flight run for the same PR branch when a new commit is pushed.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
check-links:
name: Check for broken links
runs-on: hl-solo-docs-lin
if: ${{ !github.event.pull_request.draft }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Setup Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: 24
- name: Setup Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version: '1.23.3'
- name: Install npm dependencies
run: npm ci
- name: Install htmltest
run: go install github.com/wjdp/htmltest@latest
- name: Build Hugo site
run: npm run _hugo -- --minify --baseURL "/"
env:
HUGO_ENV: production
- name: Check links
run: htmltest --skip-external