Skip to content

Commit

Permalink
Composer Vulnerability Mirroring initial
Browse files Browse the repository at this point in the history
Signed-off-by: Valentijn Scholten <[email protected]>
  • Loading branch information
valentijnscholten committed Jan 4, 2025
1 parent e7edb48 commit 4707afe
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 deletions.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/containers/DefaultContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ export default {
},
mounted() {
if (this.$dtrack && this.$dtrack.version.includes('SNAPSHOT')) {
//TODO VS reinstate
// this.$root.$emit('bv::show::modal', 'snapshotModal');
//TODO VS reinstate
// this.$root.$emit('bv::show::modal', 'snapshotModal');
}
this.isSidebarMinimized =
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@
"repository_authentication": "Authentication required",
"repository_created": "Repository created",
"repository_deleted": "Repository deleted",
"repository_type": "Repository Type",
"repository_mirror_vulnerabilities": "Enable mirroring of Security Advisories",
"repository_mirror_vulnerability_aliases": "Enable Vulnerability alias synchronization",
"repository_type": "Repository Type",
"required_confirmPassword": "Password confirmation is required and passwords must match",
"required_email": "Email address is required",
"required_fullname": "Fullname is required",
Expand Down
4 changes: 2 additions & 2 deletions src/shared/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ $common.resolveSourceVulnInfo = function resolveSourceVulnInfo(
sourceInfo.url = 'https://github.com/cloudsecurityalliance/gsd-database';
break;
case 'COMPOSER':
sourceInfo.name = 'Composer';
sourceInfo.url = 'https://packagist.org/apidoc';
sourceInfo.name = 'Composer';
sourceInfo.url = 'https://packagist.org/apidoc';
break;
case 'VULNDB':
sourceInfo.name = 'VulnDB';
Expand Down
12 changes: 8 additions & 4 deletions src/views/administration/repositories/Repositories.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,10 @@ export default {
username: row.username,
password: row.password || 'HiddenDecryptedPropertyPlaceholder',
enabled: row.enabled,
vulnerabilitiyMirroringEnabled: this.parseVulnerabilitiyMirroringEnabled(row),
vulnerabilityMirroringAliasSyncEnabled: this.parseVulnerabilityMirroringAliasSyncEnabled(row),
vulnerabilitiyMirroringEnabled:
this.parseVulnerabilitiyMirroringEnabled(row),
vulnerabilityMirroringAliasSyncEnabled:
this.parseVulnerabilityMirroringAliasSyncEnabled(row),
uuid: row.uuid,
labelIcon: {
dataOn: '\u2713',
Expand Down Expand Up @@ -272,8 +274,10 @@ export default {
internal: this.internal,
authenticationRequired: this.authenticationRequired,
config: JSON.stringify({
vulnerabilitiyMirroringEnabled: this.vulnerabilitiyMirroringEnabled,
vulnerabilityMirroringAliasSyncEnabled: this.vulnerabilityMirroringAliasSyncEnabled,
vulnerabilitiyMirroringEnabled:
this.vulnerabilitiyMirroringEnabled,
vulnerabilityMirroringAliasSyncEnabled:
this.vulnerabilityMirroringAliasSyncEnabled,
}),
username: this.username,
password:
Expand Down
8 changes: 4 additions & 4 deletions src/views/portfolio/vulnerabilities/AffectedProjects.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ export default {
this.currentPage = 1;
this.refreshTable();
},
vulnId() {
// update url when vulnId changes, will trigger table refresh
this.$refs.table.refreshOptions({...this.options, url: this.apiUrl()});
}
vulnId() {
// update url when vulnId changes, will trigger table refresh
this.$refs.table.refreshOptions({ ...this.options, url: this.apiUrl() });
},
},
};
</script>

0 comments on commit 4707afe

Please sign in to comment.