From 40cee7fb0717ae038562480860f1db5da455ae4b Mon Sep 17 00:00:00 2001 From: Poornima Krishnasamy Date: Fri, 12 Jan 2024 16:32:46 +0000 Subject: [PATCH] Draft upgrading lychee link-checker --- .github/workflows/link-checker.yml | 8 ++++--- .lycheeignore | 38 ++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 .lycheeignore diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.yml index 286656a5..8e1e24d5 100644 --- a/.github/workflows/link-checker.yml +++ b/.github/workflows/link-checker.yml @@ -3,6 +3,8 @@ name: Links on: repository_dispatch: workflow_dispatch: + pull_request: + types: [opened, synchronize, reopened] schedule: - cron: "00 18 * * *" @@ -13,14 +15,14 @@ jobs: - uses: actions/checkout@v2 - name: Link Checker - uses: lycheeverse/lychee-action@v1.0.9 + uses: lycheeverse/lychee-action@v1.8.0 with: - args: --verbose --no-progress **/*.md **/*.html **/*.erb --exclude-file .ignore-links --accept 200,429,403,400,301,302 --exclude-mail + args: --verbose --no-progress **/*.md **/*.html **/*.erb .ignore-links --accept 200,429,403,400,301,302 --exclude-mail env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Create Issue From File - uses: peter-evans/create-issue-from-file@v3 + uses: peter-evans/create-issue-from-file@v4 with: title: Link Checker Report content-filepath: ./lychee/out.md diff --git a/.lycheeignore b/.lycheeignore new file mode 100644 index 00000000..5a69d067 --- /dev/null +++ b/.lycheeignore @@ -0,0 +1,38 @@ +https://127.0.0.1:4001/ +admin@ec2-35-176-xx-xx.eu-west-2.compute.amazonaws.com +my-name@digital.justice.gov.uk +https://api.david-test1.cloud-platform.service.justice.gov.uk/ +https://login.david-test1.cloud-platform.service.justice.gov.uk/ +https://cert-manager-webhook.cert-manager.svc +https://hooks.slack.com/services/HGJKHJKSH/DFJKHKIUO/DJFHKDUJFKSUHUGIDHKUDGD +https://github.com/search?q=org%3Aministryofjustice+cloud-platform-terraform +https://b04c5fc7828a0515457e141a9610815d.sk1.eu-west-2.eks.amazonaws.com +https://api.xxxxxxx.cloud-platform.service.justice.gov.uk +https://modsec01-nx-modsec-admission.ingress-controllers.svc +https://aws-login.cloud-platform.service.justice.gov.uk/ +https://etcd-a.internal.test-etcd-1.cloud-platform.service.justice.gov.uk +https://etcd-b.internal.test-etcd-1.cloud-platform.service.justice.gov.uk +https://etcd-c.internal.test-etcd-1.cloud-platform.service.justice.gov.uk +https://127.0.0.1 +https://b04c5fc7828a0515457e141a9610815d.sk1.eu-west-2.eks.amazonaws.com/ +https://etcd-x.internal/ +https://concourse.apps.david-test1.cloud-platform.service.justice.gov.uk/ +http://localhost:9090 +https://sonarqube.thistheurl.com/ +https://app.zenhub.com/workspaces/cloud-platform-team-5ccb0b8a81f66118c983c189/board +https://abc123:abc123@grafana.live.cloud-platform.service.justice.gov.uk/api/dashboard/snapshots +https://abc123:abc123@grafana.live.cloud-platform.service.justice.gov.uk/api/snapshots/abcdefg123456 +https://35.179.65.116 +https://github.com/organizations/ministryofjustice/settings/applications +https://github.com/moj-analytical-services/analytical-platform-flux/blob/main/clusters/development/prometheus/prometheus.yaml +https://github.com/ministryofjustice/transit-gateways/tree/master/terraform/cloud-platform +https://github.com/ministryofjustice/transit-gateways +https://github.com/ministryofjustice/deployment-tgw +https://github.com/ministryofjustice/transit-gateways/tree/add-live-2-cluster-tgw +https://github.com/ministryofjustice/transit-gateways/tree/master/terraform/cloud-platform +https://registry-1.docker.io/v2/ministryofjustice/cloud-platform-tools/manifests/2.1 +https://hooks.slack.com/services/xxxxxx/xxxxxx/xxxxx +https://aws.amazon.com/SAML/Attributes/PrincipalTag:GithubTeam +https://drive.google.com/file/d/109QZ6H_Z7a11J8CaKpt2PPgwL2Y_7KWT/view?usp=sharing +https://drive.google.com/file/d/1Jm9hPX0cjZ8ZxTDGsUiC6cb56LWkw2Qm/preview +https://drive.google.com/file/d/109QZ6H_Z7a11J8CaKpt2PPgwL2Y_7KWT/view?usp=sharing