Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link checks SSL insecure robustness #550

Merged
merged 1 commit into from
Jan 27, 2024
Merged

Conversation

glenn-jocher
Copy link
Member

No description provided.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Type: Enhancement

PR Summary: The pull request updates the GitHub Actions workflow for checking broken links by refining the list of ignored status codes and improving the robustness of the link checking process. It also updates the checkout action version and modifies the cron schedule syntax.

Decision: Comment

📝 Type: 'Enhancement' - not supported yet.
  • Sourcery currently only approves 'Typo fix' PRs.
✅ Issue addressed: this change correctly addresses the issue or implements the desired feature.
No details provided.
✅ Small diff: the diff is small enough to approve with confidence.
No details provided.

General suggestions:

  • Ensure that the use of the --insecure flag is justified and well-documented to avoid potential security risks.
  • Consider the impact of increased max_attempts on the CI run time and adjust if necessary to balance resilience with efficiency.
  • Review the consistency of the --accept flag across different commands to ensure that the intended status codes are being handled correctly in all scenarios.

Thanks for using Sourcery. We offer it for free for open source projects and would be very grateful if you could help us grow. If you like it, would you consider sharing Sourcery on your favourite social media? ✨

Share Sourcery

Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

lychee \
--scheme 'https' \
--timeout 60 \
--insecure \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (llm): Using the --insecure flag may expose the CI process to security vulnerabilities by allowing insecure server connections when fetching URLs. If this is necessary for internal URLs or known exceptions, consider documenting the reason to ensure future maintainers understand the risk.

--scheme 'https' \
--timeout 60 \
--insecure \
--accept 429,999 \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (llm): The --accept flag for the retry command does not include the additional status codes (403, 500, 502) that were added to the initial link check command. If these status codes should also be ignored on retry, they need to be included here as well.

@glenn-jocher glenn-jocher merged commit dd5eebd into master Jan 27, 2024
2 checks passed
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-1 branch January 27, 2024 17:50
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.

1 participant