-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request from GHSA-pw32-ffxw-68rh
I was just adding a warning at the start, but then I realized that we can just take the privacy level of the repository into consideration as well. If the project was manually imported, we have no way of knowing the privacy level of the repository (well, maybe we could infer it from the repo URL and if all versions are public). Ref GHSA-pw32-ffxw-68rh
- Loading branch information
Showing
6 changed files
with
123 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
readthedocs/projects/migrations/0112_alter_project_help_text.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Generated by Django 4.2.9 on 2024-01-22 19:16 | ||
|
||
from django.db import migrations, models | ||
|
||
import readthedocs.projects.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("projects", "0111_add_multiple_versions_without_translations"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="historicalproject", | ||
name="external_builds_privacy_level", | ||
field=models.CharField( | ||
choices=[("public", "Public"), ("private", "Private")], | ||
default=readthedocs.projects.models.default_privacy_level, | ||
help_text="Should builds from pull requests be public? <strong>If your repository is public, don't set this to private</strong>.", | ||
max_length=20, | ||
null=True, | ||
verbose_name="Privacy level of Pull Requests", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="project", | ||
name="external_builds_privacy_level", | ||
field=models.CharField( | ||
choices=[("public", "Public"), ("private", "Private")], | ||
default=readthedocs.projects.models.default_privacy_level, | ||
help_text="Should builds from pull requests be public? <strong>If your repository is public, don't set this to private</strong>.", | ||
max_length=20, | ||
null=True, | ||
verbose_name="Privacy level of Pull Requests", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters