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

[Sources] Ban GitHub-generated archives as sources #293

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

giordano
Copy link
Member

No description provided.

test/sources.jl Outdated Show resolved Hide resolved
@giordano giordano merged commit ccfc219 into master Jan 31, 2023
@giordano giordano deleted the mg/no-github-archives branch January 31, 2023 01:25
# <https://github.com/bazel-contrib/SIG-rules-authors/issues/11#issuecomment-1029861300>
# the `/archive/refs/tag` should be more stable, but that didn't happen in the incident
# on 2023-01-30, so it's unclear whether we can trust them.
if contains(url, r"github.com/[^/]+/[^/]+/archive/(refs/tag/)?[^/]+\.(tar\.gz|zip)$")
Copy link

Choose a reason for hiding this comment

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

This won't match manually uploaded release tarballs, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

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.

2 participants