From 9f95bf9d708003d454adbdb681c7a57fd7b441df Mon Sep 17 00:00:00 2001 From: Kamil-Biegaj-HM Date: Wed, 21 Jan 2026 09:53:14 +0000 Subject: [PATCH 1/8] Adding in link checker and spell checker --- .github/actions/spelling/expect.txt | 12 +++++++++ .github/workflows/link-checker.yaml | 38 ++++++++++++++++++++++++++++ .github/workflows/spell-checker.yaml | 35 +++++++++++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 .github/actions/spelling/expect.txt create mode 100644 .github/workflows/link-checker.yaml create mode 100644 .github/workflows/spell-checker.yaml diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt new file mode 100644 index 0000000..3645306 --- /dev/null +++ b/.github/actions/spelling/expect.txt @@ -0,0 +1,12 @@ +apiVersion +atspotify +backstage +goldenpath +hmcts +lifecycle +metadata +mkdocs +nodejs +opinionated +Spotify +techdocs diff --git a/.github/workflows/link-checker.yaml b/.github/workflows/link-checker.yaml new file mode 100644 index 0000000..f37d007 --- /dev/null +++ b/.github/workflows/link-checker.yaml @@ -0,0 +1,38 @@ +name: Link Checker + +on: + pull_request: + branches: + - main + - master + push: + branches: + - main + - master + +jobs: + linkcheck: + name: Check Links + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Link Checker + uses: lycheeverse/lychee-action@v1 + with: + args: > + --verbose + --no-progress + --accept 200,204,429 + --timeout 20 + --max-retries 3 + --exclude 'linkedin\.com' + --exclude 'twitter\.com' + --exclude 'facebook\.com' + '**/*.md' + '**/*.yaml' + '**/*.yml' + fail: true + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/spell-checker.yaml b/.github/workflows/spell-checker.yaml new file mode 100644 index 0000000..4306530 --- /dev/null +++ b/.github/workflows/spell-checker.yaml @@ -0,0 +1,35 @@ +name: Check Spelling + +on: + pull_request: + branches: + - main + - master + push: + branches: + - main + - master + +jobs: + spellcheck: + name: Check Spelling + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Check Spelling + uses: check-spelling/check-spelling@v0.0.22 + with: + check_file_names: 1 + spell_check_this: check-spelling/spell-check-this@prerelease + post_comment: 0 + use_magic_file: 1 + report-timing: 1 + warnings: bad-regex,binary-file,deprecated-feature,large-file,limited-references,no-newline-at-eof,noisy-file,non-alpha-in-dictionary,token-is-substring,unexpected-line-ending,whitespace-in-dictionary,minified-file,unsupported-configuration,no-files-to-check + experimental_apply_changes_via_bot: 1 + use_sarif: 1 + extra_dictionary_limit: 20 + extra_dictionaries: | + cspell:software-terms/dict/softwareTerms.txt + cspell:node/dict/node.txt From c6cacc238830bc7588bed606287436cc403020f1 Mon Sep 17 00:00:00 2001 From: Kamil-Biegaj-HM Date: Wed, 21 Jan 2026 09:55:51 +0000 Subject: [PATCH 2/8] Adding in link checker and spell checker --- .github/workflows/spell-checker.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/spell-checker.yaml b/.github/workflows/spell-checker.yaml index 4306530..411b832 100644 --- a/.github/workflows/spell-checker.yaml +++ b/.github/workflows/spell-checker.yaml @@ -19,15 +19,13 @@ jobs: uses: actions/checkout@v4 - name: Check Spelling - uses: check-spelling/check-spelling@v0.0.22 + uses: check-spelling/check-spelling@main with: check_file_names: 1 - spell_check_this: check-spelling/spell-check-this@prerelease post_comment: 0 use_magic_file: 1 report-timing: 1 warnings: bad-regex,binary-file,deprecated-feature,large-file,limited-references,no-newline-at-eof,noisy-file,non-alpha-in-dictionary,token-is-substring,unexpected-line-ending,whitespace-in-dictionary,minified-file,unsupported-configuration,no-files-to-check - experimental_apply_changes_via_bot: 1 use_sarif: 1 extra_dictionary_limit: 20 extra_dictionaries: | From 6b9f7f24d682bca93399430155cf9daef9fde9f1 Mon Sep 17 00:00:00 2001 From: Kamil-Biegaj-HM Date: Wed, 21 Jan 2026 10:03:19 +0000 Subject: [PATCH 3/8] Adding in link checker and spell checker --- .github/actions/spelling/advice.md | 6 + .github/actions/spelling/allow.txt | 784 ++++++++++++++++++++++++++ .github/actions/spelling/excludes.txt | 17 + .github/actions/spelling/expect.txt | 194 ++++++- .github/actions/spelling/patterns.txt | 24 + .github/workflows/spell-checker.yaml | 44 +- 6 files changed, 1044 insertions(+), 25 deletions(-) create mode 100644 .github/actions/spelling/advice.md create mode 100644 .github/actions/spelling/allow.txt create mode 100644 .github/actions/spelling/excludes.txt create mode 100644 .github/actions/spelling/patterns.txt diff --git a/.github/actions/spelling/advice.md b/.github/actions/spelling/advice.md new file mode 100644 index 0000000..965eba6 --- /dev/null +++ b/.github/actions/spelling/advice.md @@ -0,0 +1,6 @@ + + +---- + +:pen: Please consider adding a word to the [allow list](allow.txt) if it is flagged as a spelling error but is genuinely used within the project. +:thinking: Think we might see a flagged mistake in another PR in the future? Please consider adding it as an [expected pattern](patterns.txt) diff --git a/.github/actions/spelling/allow.txt b/.github/actions/spelling/allow.txt new file mode 100644 index 0000000..2c68442 --- /dev/null +++ b/.github/actions/spelling/allow.txt @@ -0,0 +1,784 @@ +AAD +aad +AAPSV +aat +ABCD +abcd +acme +acmebot +acmedtssdstest +acr +ActiveGate +activegate +activegates +ada +adf +adminkey +ADMINPW +admins +adoptopenjdk +aee +AFAFDC +afds +afdverify +afe +afm +Ahmed +aks +aksmsnode +alertmanager +alex +allejo +AllPay +allpay +alphagov +alx +Ansible +ansible +apastuhov +apim +AppAttach +appattach +appinsights +AppInsights +apps +artifactory +asr +atim +autoconfigure +autorest +autoscaler +AZP +azuread +azureadmin +azurecr +azuredevops +azureedge +azurefd +azureidentities +azureidentity +azureidentitybinding +azurerm +azuresynapse +backports +baf +BAIS +bais +barrelsby +bau +bdcf +bfaac +bfbce +bfe +bintray +bitnami +blobstorage +blockquote +BODYCONTENT +botkube +bpftool +BPM +bpm +builtfrom +Burtonshaw +busyboxplus +Cairbre +Camunda +camunda +caseman +cbad +ccd +cdk +cdn +cdnverify +cec +Centera +certficates +certs +cfb +CFBF +cft +cftapps +cftprod +cftptl +cftptlintsvc +cftsbox +checkstyle +Chinnareddyvari +CJS +clamav +clcerts +cleardown +cloudapp +cloudbees +cmu +cnp +codeowners +colorizes +commonmarker +comodoca +contino +Corsham +cpeecosystemcache +cpeentry +CPlat +cppdev +crd +CRD +crds +CRDs +crictl +crimeportal +crmpdrepo +crt +CRT +CSRs +ctl +Customisation +customise +customised +cve +CVE +cves +CVEs +cyclomatic +cytool +Datacenter +datadisk +datadisks +datastore +dba +DBaa +dblink +dburl +dcd +dce +dcuser +deno +Deregisters +deserialise +destage +Destage +Destages +Destaging +DETS +dfac +dfff +dfs +dfsg +dhclient +Diskimage +dlrm +dmz +DMZ +docmosis +Docmosis +dra +dts +dtspo +dynakubes +dynatrace +dynatracegateway +dyntrace +Dyntrace +eab +ebc +ebcea +ebe +ecf +edgeconnects +edu +efabe +eftbais +elkadmin +Entra +entra +envsubst +erb +erubis +ethon +eus +eventmachine +ewnn +excludesfile +execjs +Exim +exim +expressjs +Extenda +EXTERNALSPOKE +EXTSVC +fastimage +fbbf +FBF +fcc +fdc +fdisk +ffe +ffi +Firefox +firewalls +fluentbit +fluxcd +fluxcdbot +fluxcloud +flywaydb +FNI +forgerock +Fortigate +Fortigates +Fortinet +Fri +frontdoor +Frontdoors +frontends +frx +fsevent +Fsl +FSlogix +FTPS +fxa +fxr +Gandi +ghpages +gitops +gitpod +gitrepositories +gkf +glimr +globalscape +gobject +googling +Gotcha +gotchas +gotk +govuk +gradle +gradlew +Grafana +hackernoon +haml +hashie +HDD +helmrelease +helmreleases +helpwithcourtfees +hmcts +hmctsfslogixnonprodstor +hmctsfslogixprodstor +hmctsprivate +hmctsprod +hmctspublic +hmctssbox +hmi +HMRC +hns +hotspot +howto +hpa +Iaa +IaaS +iain +IAsync +idam +idamvaultprod +idm +ifas +imagepolicies +imagepolicy +imagerepositories +imagerepository +img +inbox +inotify +Intelli +IntelliJ +intsvc +ipam +irqbalance +Islam +ithc +itnext +ITSM +jattach +javascripts +javatester +jayne +JBOX +JCas +jcmd +jdbase +jdbc +jdk +jenkins +jenkinsci +jenkinsfile +jenkinsssh +jfr +jfrog +JIRA +jmc +JML +JOBLOG +jpa +jps +JRE +jsonpath +jumpbox +jumpboxes +jvm +Karthik +keda +keyvault +keyvaults +klu +knownexploited +kpatch +kramdown +krew +kubectl +kubectx +kubernetes +kured +kustomization +kustomizations +kustomize +kvaps +langpacks +LASTEXITCODE +LATESTIMAGE +lec +letsencrypt +libpolkit +libwbclient +lifecycle +linting +liskov +loadbalance +loadbalancer +localadmin +Logix +logix +lsb +Lsbox +ltd +luigibk +lvc +macbook +macrotask +mafr +mailrelay +makepfx +mangan +Mangans +maxed +maxsize +mcol +mdvdmzjumpl +memoist +mgmt +microservices +microsoft +microtask +misconfiguring +misrouted +mklink +Mohammed +MOJ +mojvpn +Mon +monzo +mountfs +mountvol +MPD +MPDDMZJUMPL +MPDJUMPL +msix +MSIXAA +MSIXAACT +msixbundle +MSIXSS +msnode +mswin +MTAs +multibranch +multipage +mxtool +myaccess +myapps +myusername +Nabil +NATs +NCAPS +NCMAN +ncsc +NDEVOPS +neil +nessuscli +netacl +Neuvector +neuvector +newansible +nfrs +ngmodules +ngrx +nic +Nickin +NICs +NINT +NLE +NMCOL +NOAG +noarch +nocerts +nocrl +NOEM +nokeys +nokogiri +NONINFRINGEMENT +nonprod +nonprodi +noopener +NOPASSWORD +NPCOL +npmjs +NSDT +nsenter +NSG +NSUPS +nta +NTRANS +omsconfig +omsconfigdetailed +onboarded +oneagent +oneagentctl +oneagents +onpush +ooc +opsconfman +oride +osba +oss +OTP +owasp +owaspdependency +owaspdependencycheck +owide +paa +PaaS +palo +panoramaprodukssa +panoramasboxukssa +parslet +PCAPS +PCMAN +pcol +pcq +PDEVOPS +perftest +pfxpassword +pgadmin +pgdump +pid +PID +pid +PIDs +pinlady +pipeable +platops +pls +PMCOL +POAG +portile +possessionclaim +postgre +postgres +postgresql +PPCOL +prebuild +prebuilds +prioritise +privatedns +privatelink +probateman +prodbastion +projectacronym +Protips +PSDT +PSUPS +ptl +PTL +ptlsbox +PTLsbox +pwpush +QAs +racc +Rawstorne +rdbms +rdo +RDWEB +recordsets +redcarpet +redhat +RedHat +rediss +refactorings +referenceid +reformmgmtrg +reformscanaat +reformscanprod +reformscanstaging +releasever +replicasets +repolist +RESTful +retagging +rexml +RHBA +rhel +RHSA +rhscl +rhui +Roamable +rpe +rpms +rse +rubygems +runbook +runbooks +rvm +SaaS +sassc +Sat +sbox +scaledjob +scaledjobs +scaleset +scalesets +scm +SCM +screenshots +sdrs +SDRS +sdshmcts +sdsprod +SDSPTL +SDT +secops +SecOps +servicebus +servicenow +ServiceNow +servolux +sharedservices +SHAREDSERVICESPTL +showpad +shuttername +Shuttersolution +Sitaram +slackernoon +SLAs +slf +SNOW +snyk +SOGs +sonarcloud +sonarqube +spective +spellcheck +splunk +splunkcolddata +splunkdata +spotinstance +springauth +springframework +sscs +sscscor +sshconfig +sshkey +sshpass +sso +ssptl +ssrs +stackoverflow +stakeholders +Staticfile +statuspage +stv +styleguide +subdomain +Sun +svcs +svpn +swaks +SWAKS +Swissknife +synchronised +tabindex +tablist +tabpanel +tamops +templated +templating +terraform +terraformversion +tfcmt +tfenv +Tful +tfvar +tfvars +TGL +Thu +TLS +tmsh +tnc +toboardingextnonprodstor +toc +toml +Touhidul +TProgress +traefik +Traefik +TResult +triaged +TRO +tsv +Tted +ttfunk +ttl +Tue +typescriptlang +ufw +uks +uksouth +ukssa +uninstaller +unsubscribe +untick +updateinfo +upgradable +usr +vaultcore +versioned +Versioning +vhd +vhdx +viewpage +vm +VM +vmdisks +vms +VMs +vmss +vnet +Vnets +VNets +Vodafone +VWAN +waagent +WAl +WCAG +wdm +webpage +webrick +website +Websites +Wed +wikipedia +Wildfly +willw +workflows +wowza +wxyz +Xaa +XDELETE +xdr +XDR +XLATES +xmlp +XSIAM +xss +xui +xuimanag +xxd +yamls +yml +zalando +zeitwerk +Zubair +privatelink +azuresynapse +dfs +vaultcore +svcs +XLATES +VWAN +VNets +Tted +Fortigates +Fortinet +synchronised +Burtonshaw +cytool +oneagents +oneagentctl +azureadmin +loadbalance +mdvdmzjumpl +MPD +MPDJUMPL +Customisation +customised +screenshots +BODYCONTENT +SNAT +panoramaprodukssa +panoramasboxukssa +uks +ukssa +lsb +ufw +Zubair +ATL +resolvconf +apikey +cjscp +maillog +nlv +nessusagent +nfd +eas +Widdowson +Pankaj +mpdjumpl +Satya +Chundur +DARPC +DARPCs +optimisation +servicenowprodukssa +DLQ +XGET +sqladmin +mklabel +gpt +mkpart +mnt +servicenowrestore +zcat +rapidgzip +mkdir +cnf +vcore +joblog +cmdb +Serivce +Sevice +AADUSER +Gharssa +acdf +faa +PUBLICLAW +serviceaccounts +hashivault \ No newline at end of file diff --git a/.github/actions/spelling/excludes.txt b/.github/actions/spelling/excludes.txt new file mode 100644 index 0000000..947a266 --- /dev/null +++ b/.github/actions/spelling/excludes.txt @@ -0,0 +1,17 @@ +ignore$ +\.png$ +\.svg$ +\.drawio$ +\.t$ +^LICENSE\.txt$ +^\.github/ +^\Gemfile* +^\Gemfile.lock +^\Qsource/Certificates/forms/SSL-Certificate-Request-Form.docx\E$ +(?:^|/)accounts\.html\.md\.erb$ +pmd +DEVJUMPL +mpd +onlineplea +wafcc +APIGW \ No newline at end of file diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index 3645306..2573da8 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -1,12 +1,184 @@ -apiVersion -atspotify -backstage +CODEOWNERS +HMCTS +Staticfile +dotnet +excludesfile +iml +monkeyc +terraform +tfstate +tfvars +acmehmctssoc +ACNF +ACRD +aeb +Afresco +agentpool +agw +AJRA +alfapp +alfweb +APIGW +appdir +ASNs +aso +atlassian +atlassiannonprod +atlasssian +AZDO +azinfra +azmk +azsftp +azureserviceoperator +bacpac +bak +Bance +bdf +blogs +cabcdefg +CAHOSTVERIFY +cdef +cdes +Chirag +CJSC +connecttimeout +containerised +copyleft +customisations +CVP +Dac +datacentre +Datlassian +DBfor +dbsetup +dde +deevanapalli +DEVJUMPL +devrot +Dhhmm +dgwzf +dnat +dockerfiles +dsl +eba +EDB +Enda +Eyetan +ffff +ffffffff +ffffffffffff +fileservice +geolocationfile +GEOLOCATIONUPDATES +Glust +gluster goldenpath -hmcts -lifecycle -metadata -mkdocs -nodejs -opinionated -Spotify -techdocs +gufqadefbjgbhkhv +Hashicorp +hashivault +hcp +IMZ +intellij +Jacomb +Jenkinsfiles +jfmd +jfrou +jfrt +jira +journalctl +kalyan +keyfile +labsgoldenpath +labsgoldenpathfelix +ldhx +leaderelection +lhr +libragob +libragobrestore +managedidentity +Manan +mdv +MDVADMVPNHA +mfox +Miniport +mnl +Moj +mojcppprod +mpd +mynodepool +myregistry +nodelocaldns +nodepool +NONLINE +noout +NSGs +NVA +oidc +onlineplea +openvpn +organisations +paramatised +peerings +pki +pmd +postgress +Prereq +prd +PRDATL +prepatch +privatednszonename +privatekeyfilename +PRX +pvc +Qube +recoverypoint +regitries +Resouce +resourcegroups +Rns +ruleset +ruxit +SBZ +sftpmig +sku +SNATd +sourced +sourceregistry +sourcerepository +sourcetag +spn +sqldb +sqlpackage +sshfs +stagingdarts +statefile +statefulset +ste +STECCM +sysagentpool +tblk +Tenables +themisgatewayapi +thw +tns +toset +totp +TTLs +Tunnelblick +Txx +userassignedidentities +utilisation +Verma +Virtualbox +virtualwan +VNETs +vpn +wafcc +wrkagentpool +wsdl +xpack +XXXX +yourname +yye +YYMMD +zshrc diff --git a/.github/actions/spelling/patterns.txt b/.github/actions/spelling/patterns.txt new file mode 100644 index 0000000..baa8922 --- /dev/null +++ b/.github/actions/spelling/patterns.txt @@ -0,0 +1,24 @@ +# Excluded patterns per line in Perl regex + +## Catch lines with https:// urls +.*https?://\S+ +## Catch pod names (containing dashes and chars) +podName=[^\s\/]+ +## Catch container names +.*containerd(.*)$ +## Google analytics ID +.*UA-.*$ +.*.yml +.*.yaml +## Ignore internal links as page names might be concatenated words +\(.*html\) +\(.*erb\) +.*.erb +.*.html +## Ignore all storage account references +\b[a-z0-9]+\.blob\.core\.windows\.net\b +## Ignore azurewebsite links +\b[a-z0-9]+\.azurewebsites\.net\b +## Ignore image references +!\[[^\]]*\]\((.*?)\s*("(?:.*[^"])")?\s*\) +<\s*img\s+[^>]*src\s*=\s*.* diff --git a/.github/workflows/spell-checker.yaml b/.github/workflows/spell-checker.yaml index 411b832..950529f 100644 --- a/.github/workflows/spell-checker.yaml +++ b/.github/workflows/spell-checker.yaml @@ -12,22 +12,38 @@ on: jobs: spellcheck: - name: Check Spelling runs-on: ubuntu-latest + name: Check spelling steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Check Spelling - uses: check-spelling/check-spelling@main + - name: Spell-Check + uses: check-spelling/check-spelling@v0.0.24 with: - check_file_names: 1 - post_comment: 0 - use_magic_file: 1 - report-timing: 1 - warnings: bad-regex,binary-file,deprecated-feature,large-file,limited-references,no-newline-at-eof,noisy-file,non-alpha-in-dictionary,token-is-substring,unexpected-line-ending,whitespace-in-dictionary,minified-file,unsupported-configuration,no-files-to-check - use_sarif: 1 - extra_dictionary_limit: 20 - extra_dictionaries: | + checkout: true + only_check_changed_files: true + suppress_push_for_open_pull_request: 1 + extra_dictionaries: + cspell:npm/dict/npm.txt + cspell:fullstack/dict/fullstack.txt + cspell:php/dict/php.txt + cspell:k8s/dict/k8s.txt + cspell:html/dict/html.txt + cspell:typescript/dict/typescript.txt + cspell:golang/dict/go.txt + cspell:dotnet/dict/dotnet.txt + cspell:mnemonics/src/mnemonics.txt + cspell:rust/dict/rust.txt + cspell:monkeyc/src/monkeyc_keywords.txt + cspell:cryptocurrencies/cryptocurrencies.txt + cspell:scala/dict/scala.txt + cspell:ruby/dict/ruby.txt + cspell:lua/dict/lua.txt + cspell:css/dict/css.txt + cspell:r/src/r.txt + cspell:html-symbol-entities/entities.txt + cspell:java/src/java.txt cspell:software-terms/dict/softwareTerms.txt + cspell:python/src/python/python-lib.txt cspell:node/dict/node.txt + cspell:python/src/common/extra.txt + cspell:public-licenses/src/generated/public-licenses.txt + cspell:aws/aws.txt From e059e669a5dc3502572c2ffb3752dd80eadffc91 Mon Sep 17 00:00:00 2001 From: Kamil-Biegaj-HM Date: Wed, 21 Jan 2026 10:05:18 +0000 Subject: [PATCH 4/8] Fix to spell check error --- .github/actions/spelling/excludes.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/actions/spelling/excludes.txt b/.github/actions/spelling/excludes.txt index 947a266..4c0e776 100644 --- a/.github/actions/spelling/excludes.txt +++ b/.github/actions/spelling/excludes.txt @@ -4,7 +4,6 @@ ignore$ \.drawio$ \.t$ ^LICENSE\.txt$ -^\.github/ ^\Gemfile* ^\Gemfile.lock ^\Qsource/Certificates/forms/SSL-Certificate-Request-Form.docx\E$ From cd82557a6eb7b646fb9d490b4382ed46ee2222cb Mon Sep 17 00:00:00 2001 From: Kamil-Biegaj-HM Date: Wed, 21 Jan 2026 10:08:18 +0000 Subject: [PATCH 5/8] Unrecognized words added to expect.txt --- .github/actions/spelling/expect.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index 2573da8..d1d74c9 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -25,6 +25,7 @@ aso atlassian atlassiannonprod atlasssian +azurewebsite AZDO azinfra azmk @@ -48,7 +49,7 @@ customisations CVP Dac datacentre -Datlassian +datlassian DBfor dbsetup dde @@ -59,6 +60,8 @@ Dhhmm dgwzf dnat dockerfiles +docx +drawio dsl eba EDB @@ -95,6 +98,9 @@ leaderelection lhr libragob libragobrestore +linkcheck +linkedin +lycheeverse managedidentity Manan mdv @@ -130,6 +136,7 @@ privatednszonename privatekeyfilename PRX pvc +Qsource Qube recoverypoint regitries @@ -177,6 +184,7 @@ wafcc wrkagentpool wsdl xpack +XGET XXXX yourname yye From 4875e29bcff9f575fa7ef51eae148474456d7526 Mon Sep 17 00:00:00 2001 From: Kamil-Biegaj-HM Date: Wed, 21 Jan 2026 10:51:23 +0000 Subject: [PATCH 6/8] Link fix and GH_Token implemenetd --- .github/workflows/link-checker.yaml | 2 +- docs/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/link-checker.yaml b/.github/workflows/link-checker.yaml index f37d007..819bc5b 100644 --- a/.github/workflows/link-checker.yaml +++ b/.github/workflows/link-checker.yaml @@ -35,4 +35,4 @@ jobs: '**/*.yml' fail: true env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + GH_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/docs/index.md b/docs/index.md index bdb6cd4..19a683e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -131,7 +131,7 @@ More information on how we configure Azure Front Door can be found in [The HMCTS ### Deploy application -We use [GitOps](https://docs.gitops.weave.works/) principles for application deployment to Kubernetes. +We use [GitOps](https://docs.gitops.weaveworks.org/) principles for application deployment to Kubernetes. Your application will be deployed in the `labs` Kubernetes namespace which has already been created. From ccc77f9268c070b2c6110b1f1c0ac702cf16bf88 Mon Sep 17 00:00:00 2001 From: Kamil-Biegaj-HM Date: Wed, 21 Jan 2026 11:01:47 +0000 Subject: [PATCH 7/8] Adding in configuration file for link checker using lychee --- .github/workflows/link-checker.yaml | 16 +++---------- .lycheerc.toml | 35 +++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 13 deletions(-) create mode 100644 .lycheerc.toml diff --git a/.github/workflows/link-checker.yaml b/.github/workflows/link-checker.yaml index 819bc5b..6ee721c 100644 --- a/.github/workflows/link-checker.yaml +++ b/.github/workflows/link-checker.yaml @@ -21,18 +21,8 @@ jobs: - name: Link Checker uses: lycheeverse/lychee-action@v1 with: - args: > - --verbose - --no-progress - --accept 200,204,429 - --timeout 20 - --max-retries 3 - --exclude 'linkedin\.com' - --exclude 'twitter\.com' - --exclude 'facebook\.com' - '**/*.md' - '**/*.yaml' - '**/*.yml' + args: --config .lycheerc.toml --verbose '**/*.md' '**/*.yaml' '**/*.yml' fail: true + token: ${{ secrets.GH_TOKEN }} env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/.lycheerc.toml b/.lycheerc.toml new file mode 100644 index 0000000..cbbfd2c --- /dev/null +++ b/.lycheerc.toml @@ -0,0 +1,35 @@ +# Lychee link checker configuration +# https://lychee.cli.rs/#/usage/config + +# Maximum number of concurrent network requests +max_concurrency = 10 + +# Maximum number of retries per request +max_retries = 3 + +# Timeout per request in seconds +timeout = 30 + +# Accept specific HTTP status codes as valid +accept = [200, 204, 429] + +# User agent +user_agent = "lychee/link-checker" + +# Exclude URLs matching these patterns +exclude = [ + # Ignore pulls/branches as these do not translate to raw content + '.*github\.com/hmcts/.*(?:pull|tree|commit).*', + # App health should not affect runbook PRs + '.*\.platform\.hmcts\.net.*', + # These return 405s in a browser, which is expected + '.*\.hmcts\.net/sonarqube-webhook/.*', + # Social media sites that often block automated checkers + '.*linkedin\.com.*', + '.*twitter\.com.*', + '.*facebook\.com.*', +] + +# Include additional headers for GitHub authentication +# The GH_TOKEN will be automatically used by lychee when set in the environment +[headers] From 0f3fc5097942c1b773d1e37c0daf51800177e879 Mon Sep 17 00:00:00 2001 From: Kamil-Biegaj-HM Date: Wed, 21 Jan 2026 11:04:29 +0000 Subject: [PATCH 8/8] Updating spell checker patterns and expect lists --- .github/actions/spelling/expect.txt | 1 + .github/actions/spelling/patterns.txt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index d1d74c9..5d452b4 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -113,6 +113,7 @@ mojcppprod mpd mynodepool myregistry +njk nodelocaldns nodepool NONLINE diff --git a/.github/actions/spelling/patterns.txt b/.github/actions/spelling/patterns.txt index baa8922..c329d0d 100644 --- a/.github/actions/spelling/patterns.txt +++ b/.github/actions/spelling/patterns.txt @@ -22,3 +22,5 @@ podName=[^\s\/]+ ## Ignore image references !\[[^\]]*\]\((.*?)\s*("(?:.*[^"])")?\s*\) <\s*img\s+[^>]*src\s*=\s*.* +## Ignore placeholder x's (like xxxxxx or xxxxxxxx) +\bx{5,}\b