Skip to content

Conversation

Copy link

Copilot AI commented Jun 29, 2025

This PR applies the changes from opentelemetry-java-instrumentation#14155 to make it easier to run lychee locally for link checking.

Changes Made

  • Added lychee.toml with minimal configuration matching the current GitHub workflow arguments:

    • max_retries = 6
    • max_concurrency = 1
    • include_fragments = true
    • Exclude patterns for java-contrib issues/PRs
  • Added .github/scripts/check-links.sh script that allows running lychee locally via Docker with the same configuration as CI

  • Added .github/scripts/dependencies.dockerfile to track lychee version for Renovate auto-updates

  • Replaced .github/workflows/reusable-markdown-link-check.yml with .github/workflows/reusable-check-links.yml that uses the new script

  • Updated .github/workflows/build.yml to reference the new workflow

Benefits

  • Developers can now run GITHUB_TOKEN=<token> ./.github/scripts/check-links.sh locally to check links
  • Consistent behavior between local runs and CI
  • Automatic version updates via Renovate
  • No additional dependencies beyond Docker

The lychee.toml file contains only the configuration properties that were used in the GitHub workflow, without any additional comments that weren't present in the original workflow.

Fixes #19.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • activemq.apache.org
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • api.scorecard.dev
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • app.fossa.com
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • cassandra.apache.org
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • central.sonatype.com
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • cloud-native.slack.com
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • cloud.google.com
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • contrib.rocks
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • developer.mend.io
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • docs.aws.amazon.com
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • docs.cloudfoundry.org
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • docs.groovy-lang.org
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • docs.jboss.org
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • docs.oracle.com
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • en.wikipedia.org
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • groovy-lang.org
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • hadoop.apache.org
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • hbase.apache.org
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • img.shields.io
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • kafka.apache.org
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • opentelemetry.io
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • plugins.jenkins.io
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • scorecard.dev
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • semver.org
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • solr.apache.org
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • www.eclipse.org
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)
  • www.jaegertracing.io
    • Triggering command: /usr/local/bin/lychee --verbose --config ./lychee.toml . (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI changed the title [WIP] Make it easier to run lychee locally Make it easier to run lychee locally Jun 30, 2025
Copilot AI requested a review from trask June 30, 2025 00:04
Copilot finished work on behalf of trask June 30, 2025 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make it easier to run lychee locally

3 participants