Make it easier to run lychee locally #14
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Apply the changes from open-telemetry/opentelemetry-java-instrumentation#14155 to enable local execution of lychee link checking.
Changes Made
Replaced lychee-action with Docker-based script approach:
Created
lychee.toml- Configuration file containing only properties that were used in the GitHub workflow:include_fragments = truemax_retries = 6max_concurrency = 1^https://github.com/open-telemetry/opentelemetry-java-contrib/(issues|pull)/\d+$Created
.github/scripts/check-links.sh- Executable script for local Docker-based lychee execution:GITHUB_TOKENenvironment variabledependencies.dockerfilefor consistencyCreated
.github/scripts/dependencies.dockerfile- Enables Renovate to auto-update lychee Docker image versionsUpdated workflows:
reusable-markdown-link-check.ymltoreusable-check-links.ymlbuild.ymlto reference the new workflow nameUsage
The link checker can now be run locally with:
Or with a GitHub token for higher rate limits:
Benefits
Fixes #13.
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:
api.scorecard.dev/usr/local/bin/lychee --verbose --config ./lychee.toml .(dns block)app.fossa.com/usr/local/bin/lychee --verbose --config ./lychee.toml .(dns block)central.sonatype.com/usr/local/bin/lychee --verbose --config ./lychee.toml .(dns block)cloud-native.slack.com/usr/local/bin/lychee --verbose --config ./lychee.toml .(dns block)cloud.google.com/usr/local/bin/lychee --verbose --config ./lychee.toml .(dns block)contrib.rocks/usr/local/bin/lychee --verbose --config ./lychee.toml .(dns block)developer.mend.io/usr/local/bin/lychee --verbose --config ./lychee.toml .(dns block)docs.aws.amazon.com/usr/local/bin/lychee --verbose --config ./lychee.toml .(dns block)docs.cloudfoundry.org/usr/local/bin/lychee --verbose --config ./lychee.toml .(dns block)docs.oracle.com/usr/local/bin/lychee --verbose --config ./lychee.toml .(dns block)en.wikipedia.org/usr/local/bin/lychee --verbose --config ./lychee.toml .(dns block)img.shields.io/usr/local/bin/lychee --verbose --config ./lychee.toml .(dns block)opentelemetry.io/usr/local/bin/lychee --verbose --config ./lychee.toml .(dns block)plugins.jenkins.io/usr/local/bin/lychee --verbose --config ./lychee.toml .(dns block)scorecard.dev/usr/local/bin/lychee --verbose --config ./lychee.toml .(dns block)semver.org/usr/local/bin/lychee --verbose --config ./lychee.toml .(dns block)www.jaegertracing.io/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.