Skip to content

Commit

Permalink
Merge pull request #616 from ministryofjustice/cve-2024-22048
Browse files Browse the repository at this point in the history
Updating link-checker to use Lychee/actions
  • Loading branch information
Stephen James authored Jan 25, 2024
2 parents da1cd10 + 1a4a78e commit 933a714
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,24 @@ on:
pull_request:
paths:
- "source/**"

jobs:
check_links:
linkChecker:
runs-on: ubuntu-latest
container:
image: ministryofjustice/tech-docs-github-pages-publisher:v3.0.1
steps:
- uses: actions/checkout@v4
- name: htmlproofer
run: /scripts/deploy.sh no-repository-changes
- uses: actions/checkout@v4

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1.8.0
with:
args: --verbose --exclude-mail --no-progress './**/*.md' './**/*.html' './**/*.erb' --accept 403,200,429
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Create Issue From File
if: env.lychee_exit_code != 0
uses: peter-evans/create-issue-from-file@v4
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: documentation

0 comments on commit 933a714

Please sign in to comment.