Skip to content

Commit ea16035

Browse files
authored
feat: Add Pr Check For Broken Links (hiero-ledger#1206)
Signed-off-by: aceppaluni <[email protected]>
1 parent 855f399 commit ea16035

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: PR Check – Broken Markdown Links
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**/*.md'
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
pr-check-broken-links:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Harden runner (audit outbound calls)
17+
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
18+
with:
19+
egress-policy: audit
20+
21+
- name: Checkout repository
22+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
23+
24+
- name: Check Markdown links
25+
uses: tcort/github-action-markdown-link-check@e7c7a18363c842693fadde5d41a3bd3573a7a225 # v1.1.2
26+
with:
27+
use-quiet-mode: 'yes'
28+
check-modified-files-only: 'yes'
29+
base-branch: 'main'

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This changelog is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.
99

1010

1111
### Added
12+
- Added a GitHub Actions workflow to validate broken Markdown links in pull requests.
1213
- Added method chaining examples to the developer training guide (`docs/sdk_developers/training/coding_token_transactions.md`) (#1194)
1314
- examples/mypy.ini for stricter type checking in example scripts
1415
- Added a GitHub Actions workflow that reminds contributors to link pull requests to issues.

0 commit comments

Comments
 (0)