-
-
Notifications
You must be signed in to change notification settings - Fork 13
Make the Security Scanning as a blocking validator #266
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
Open
Xpirix
wants to merge
7
commits into
qgis:master
Choose a base branch
from
Xpirix:blocking_validator_for_security_check
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d22fa58
Make the Security Scanning as a blocking validator for critical bandi…
Xpirix 0f7bc83
Add user notification for pending security validation in plugin versi…
Xpirix 7faed55
Remove wildcard import in tasks/__init__.py
Xpirix 969be71
Use global imports
Xpirix b0fb074
Refactor email notifications in security scan task
Xpirix 1938c9e
Fix import path for run_security_scan in RunSecurityScanTaskTest
Xpirix a2eb015
Refactor security scan task and update auto-approval logic name
Xpirix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
18 changes: 18 additions & 0 deletions
18
qgis-app/plugins/migrations/0020_pluginversion_validation_status.py
This file contains hidden or 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,18 @@ | ||
| # Generated by Django 4.2.28 on 2026-03-12 02:16 | ||
|
|
||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ('plugins', '0019_remove_pluginversion_supports_qt6'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AddField( | ||
| model_name='pluginversion', | ||
| name='validation_status', | ||
| field=models.CharField(choices=[('pending', 'Pending'), ('validating', 'Validating'), ('validated', 'Validated'), ('blocked', 'Blocked')], db_index=True, default='pending', help_text="Validation status based on security and quality checks. New uploads start as 'validating' until checks complete. 'blocked' means critical issues were found and the version is not available for approval or download.", max_length=20, verbose_name='Validation status'), | ||
| ), | ||
| ] |
20 changes: 20 additions & 0 deletions
20
qgis-app/plugins/migrations/0021_alter_pluginversionsecurityscan_scanned_on.py
This file contains hidden or 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,20 @@ | ||
| import django.utils.timezone | ||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ("plugins", "0020_pluginversion_validation_status"), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AlterField( | ||
| model_name="pluginversionsecurityscan", | ||
| name="scanned_on", | ||
| field=models.DateTimeField( | ||
| default=django.utils.timezone.now, | ||
| verbose_name="Scanned on", | ||
| ), | ||
| ), | ||
| ] |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| from plugins.tasks.generate_plugins_xml import * # noqa | ||
| from plugins.tasks.update_qgis_versions import * # noqa | ||
| from plugins.tasks.rebuild_search_index import * # noqa | ||
| from plugins.tasks.get_sustaining_members import * # noqa | ||
| from plugins.tasks.generate_plugins_xml import generate_plugins_xml | ||
| from plugins.tasks.update_qgis_versions import update_qgis_versions | ||
| from plugins.tasks.rebuild_search_index import rebuild_search_index | ||
| from plugins.tasks.get_sustaining_members import get_sustaining_members | ||
| from plugins.tasks.run_security_scan import run_security_scan_task |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.