diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml
index 6dc538f3d..45c3ddd58 100644
--- a/.github/workflows/lint.yaml
+++ b/.github/workflows/lint.yaml
@@ -1,6 +1,11 @@
name: Lint
on:
+ push:
+ branches:
+ - 'master' # Default branch
pull_request:
+ branches:
+ - 'master' # Default branch
permissions:
contents: read
diff --git a/src/shared/common.js b/src/shared/common.js
index 988fd5dfc..15bd527f2 100644
--- a/src/shared/common.js
+++ b/src/shared/common.js
@@ -41,7 +41,11 @@ $common.formatProjectTagLabel = function formatProjectTagLabel(router, tag) {
if (!tag) {
return '';
}
- return `${xssFilters.inHTMLData(tag.name)}`;
+ return `${xssFilters.inHTMLData(
+ tag.name,
+ )}`;
};
/**
@@ -408,7 +412,9 @@ $common.componentClassifierLabelProjectUrlFormatter = (i18n) => {
case 'DEVICE':
case 'FIRMWARE':
case 'FILE':
- return `${i18n.$t(`message.component_${value.toLowerCase()}`)}`;
+ return `${i18n.$t(
+ `message.component_${value.toLowerCase()}`,
+ )}`;
default:
return null;
}
diff --git a/src/views/portfolio/projects/ComponentDetailsModal.vue b/src/views/portfolio/projects/ComponentDetailsModal.vue
index c6906db25..458c05dbd 100644
--- a/src/views/portfolio/projects/ComponentDetailsModal.vue
+++ b/src/views/portfolio/projects/ComponentDetailsModal.vue
@@ -493,7 +493,9 @@ export default {
let url = xssFilters.uriInUnQuotedAttr(
common.valueWithDefault(value, ''),
);
- return `${xssFilters.inHTMLData(common.valueWithDefault(value, ''))}`;
+ return `${xssFilters.inHTMLData(
+ common.valueWithDefault(value, ''),
+ )}`;
},
},
{
diff --git a/src/views/portfolio/projects/ComponentVulnerabilities.vue b/src/views/portfolio/projects/ComponentVulnerabilities.vue
index f983b5ac0..85e6b9f62 100644
--- a/src/views/portfolio/projects/ComponentVulnerabilities.vue
+++ b/src/views/portfolio/projects/ComponentVulnerabilities.vue
@@ -59,7 +59,9 @@ export default {
);
label +=
common.formatSourceLabel(alias.source) +
- ` ${xssFilters.inHTMLData(alias.vulnId)}`;
+ ` ${xssFilters.inHTMLData(
+ alias.vulnId,
+ )}`;
if (i < aliases.length - 1) label += '
';
}
return label;
diff --git a/src/views/portfolio/projects/ProjectDependencyGraph.vue b/src/views/portfolio/projects/ProjectDependencyGraph.vue
index 73553a16e..0fd78df8b 100644
--- a/src/views/portfolio/projects/ProjectDependencyGraph.vue
+++ b/src/views/portfolio/projects/ProjectDependencyGraph.vue
@@ -149,7 +149,11 @@ export default {
this.$route.params.componentUuids,
);
this.loading = true;
- let url = `${this.$api.BASE_URL}/${this.$api.URL_COMPONENT}/project/${this.project.uuid}/dependencyGraph/${encodeURIComponent(this.$route.params.componentUuids)}`;
+ let url = `${this.$api.BASE_URL}/${this.$api.URL_COMPONENT}/project/${
+ this.project.uuid
+ }/dependencyGraph/${encodeURIComponent(
+ this.$route.params.componentUuids,
+ )}`;
this.axios.get(url).then((response) => {
if (response.data && Object.keys(response.data).length > 0) {
this.notFound = false;
diff --git a/src/views/portfolio/projects/ProjectDetailsModal.vue b/src/views/portfolio/projects/ProjectDetailsModal.vue
index 9424cfec1..b86924409 100644
--- a/src/views/portfolio/projects/ProjectDetailsModal.vue
+++ b/src/views/portfolio/projects/ProjectDetailsModal.vue
@@ -587,7 +587,9 @@ export default {
let url = xssFilters.uriInUnQuotedAttr(
common.valueWithDefault(value, ''),
);
- return `${xssFilters.inHTMLData(common.valueWithDefault(value, ''))}`;
+ return `${xssFilters.inHTMLData(
+ common.valueWithDefault(value, ''),
+ )}`;
},
},
{
diff --git a/src/views/portfolio/projects/ProjectFindings.vue b/src/views/portfolio/projects/ProjectFindings.vue
index 7cabc660a..c805c1ed2 100644
--- a/src/views/portfolio/projects/ProjectFindings.vue
+++ b/src/views/portfolio/projects/ProjectFindings.vue
@@ -267,7 +267,9 @@ export default {
);
label +=
common.formatSourceLabel(alias.source) +
- ` ${xssFilters.inHTMLData(alias.vulnId)}`;
+ ` ${xssFilters.inHTMLData(
+ alias.vulnId,
+ )}`;
if (i < aliases.length - 1) label += '
';
}
return label;
diff --git a/src/views/portfolio/projects/ServiceDetailsModal.vue b/src/views/portfolio/projects/ServiceDetailsModal.vue
index 48c6b538f..fac418dc3 100644
--- a/src/views/portfolio/projects/ServiceDetailsModal.vue
+++ b/src/views/portfolio/projects/ServiceDetailsModal.vue
@@ -348,7 +348,9 @@ export default {
let url = xssFilters.uriInUnQuotedAttr(
common.valueWithDefault(value, ''),
);
- return `${xssFilters.inHTMLData(common.valueWithDefault(value, ''))}`;
+ return `${xssFilters.inHTMLData(
+ common.valueWithDefault(value, ''),
+ )}`;
},
},
{
diff --git a/src/views/portfolio/vulnerabilities/VulnerabilityList.vue b/src/views/portfolio/vulnerabilities/VulnerabilityList.vue
index 045cf31b8..b6de2e819 100644
--- a/src/views/portfolio/vulnerabilities/VulnerabilityList.vue
+++ b/src/views/portfolio/vulnerabilities/VulnerabilityList.vue
@@ -97,7 +97,9 @@ export default {
);
label +=
common.formatSourceLabel(alias.source) +
- ` ${xssFilters.inHTMLData(alias.vulnId)}`;
+ ` ${xssFilters.inHTMLData(
+ alias.vulnId,
+ )}`;
if (i < aliases.length - 1) label += '
';
}
return label;