From e1e60f0a5511b78c2636dcc24dd115f7d00d2a23 Mon Sep 17 00:00:00 2001 From: Aldo Lacuku Date: Fri, 16 Feb 2024 13:47:15 +0100 Subject: [PATCH] new(CI): add link checker Signed-off-by: Aldo Lacuku --- .github/workflows/links.yml | 24 ++++++++++++++++++++++++ .lycheeignore | 18 ++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/links.yml create mode 100644 .lycheeignore diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml new file mode 100644 index 000000000..32c696b6a --- /dev/null +++ b/.github/workflows/links.yml @@ -0,0 +1,24 @@ +name: Links + +on: + push: + branches: + - main + - master + pull_request: + +jobs: + linkChecker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + fetch-depth: 0 + + - name: Link Checker + uses: lycheeverse/lychee-action@c053181aa0c3d17606addfe97a9075a32723548a #v1.9.3 + with: + args: --no-progress './**/*.yml' './**/*.yaml' './**/*.md' './**/*.gotmpl' './**/*.tpl' './**/OWNERS' './**/LICENSE' + token: ${{ secrets.GITHUB_TOKE }} + fail: true diff --git a/.lycheeignore b/.lycheeignore new file mode 100644 index 000000000..ae8683571 --- /dev/null +++ b/.lycheeignore @@ -0,0 +1,18 @@ +nats:/host:port +https://yds.serverless.yandexcloud.net/ +http:/host:port +https://chat.googleapis.com/v1/spaces/XXXXXX/YYYYYY +https://xxxx/hooks/YYYY +https://cliq.zoho.eu/api/v2/channelsbyname/XXXX/message* +https://outlook.office.com/webhook/XXXXXX/IncomingWebhook/YYYYYY +https://outlook.office.com/webhook/XXXXXX/IncomingWebhook/YYYYYY +https://discord.com/api/webhooks/xxxxxxxxxx +http://kafkarest:8082/topics/test +https://api.spyderbat.com/ +https://hooks.slack.com/services/XXXX/YYYY/ZZZZ +http://\{domain* +https://github.com/falcosecurity/falcosidekick/tree/master/deploy/helm/falcosidekick +http://some.url/some/path/ +https://localhost:32765/k8s-audit +https://some.url/some/path/ +http://localhost:8765/versions