-
-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (28 loc) · 955 Bytes
/
markdown-links.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: markdown-links
on:
pull_request:
branches:
- main
permissions: read-all
jobs:
markdown-links:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Harden runner
uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3
with:
egress-policy: audit
- name: Disable unprivileged user namespaces restrictions
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
shell: bash
- name: Check links in Markdown files
uses: umbrelladocs/action-linkspector@fc382e19892aca958e189954912fe379a8df270c # v1.2.4
with:
fail_on_error: true
filter_mode: nofilter
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review