You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
result.rationale='Only Admins can create public repositories in the organization(s)'
37
37
}elseif(failedOrgs.length){
38
38
result.status='failed'
39
-
result.rationale=`Not Only Admins can create public repositories in the following (${failedOrgs.join(',')}) organization(s)`
40
-
alert.title=`Not Only Admins can create public repositories in the following (${failedOrgs.join(',')}) organization(s)`
39
+
result.rationale=`Not Only Admins can create public repositories in the following (${failedOrgs.join(',')}) organization(s)`
40
+
alert.title=`Not Only Admins can create public repositories in the following (${failedOrgs.join(',')}) organization(s)`
41
41
alert.description=`Check the details on ${check.details_url}`
42
-
task.title=`Limit public repo creation to admins for the following (${failedOrgs.join(',')}) organization(s)`
42
+
task.title=`Limit public repo creation to admins for the following (${failedOrgs.join(',')}) organization(s)`
43
43
task.description=`Check the details on ${check.details_url}`
44
44
}elseif(unknownOrgs.length){
45
45
result.status='unknown'
46
-
result.rationale=`It was not possible to confirm if only admins can create public repositories in the following (${unknownOrgs.join(',')}) organization(s)`
46
+
result.rationale=`It was not possible to confirm if only admins can create public repositories in the following (${unknownOrgs.join(',')}) organization(s)`
Copy file name to clipboardExpand all lines: src/checks/validators/noSensitiveInfoInRepositories.js
+5-5
Original file line number
Diff line number
Diff line change
@@ -32,10 +32,10 @@ function getRepoFailures (repositories) {
32
32
33
33
functionbuildOrgMessage(failedOrgs,unknownOrgs){
34
34
if(failedOrgs.length){
35
-
return`The organization(s) (${failedOrgs.join(',')}) has not enabled secret scanning by default`
35
+
return`The organization(s) (${failedOrgs.join(',')}) has not enabled secret scanning by default`
36
36
}
37
37
if(unknownOrgs.length){
38
-
return`It was not possible to confirm if the organization(s) has enabled secret scanning for new repositories in the following (${unknownOrgs.join(',')}) organization(s)`
38
+
return`It was not possible to confirm if the organization(s) has enabled secret scanning for new repositories in the following (${unknownOrgs.join(',')}) organization(s)`
39
39
}
40
40
return'The organization(s) has secret scanning for new repositories enabled'
taskTitle=`Enable secret scanning for new repositories for the organization(s) (${failedOrgs.join(',')}) and ${failedRepos.length} (${percentageOfFailedRepos}) repositories`
155
+
taskTitle=`Enable secret scanning for new repositories for the organization(s) (${failedOrgs.join(',')}) and ${failedRepos.length} (${percentageOfFailedRepos}) repositories`
156
156
}elseif(failedOrgs.length){
157
-
taskTitle=`Enable secret scanning for new repositories for the organization(s) (${failedOrgs.join(',')})`
157
+
taskTitle=`Enable secret scanning for new repositories for the organization(s) (${failedOrgs.join(',')})`
158
158
}elseif(failedRepos.length){
159
159
constpercentageOfFailedRepos=generatePercentage(
160
160
projectRepositories.length,
161
161
failedRepos.length
162
162
)
163
163
// @TODO: The list of failed repos can be very big, so we might need to truncate it or remove it in future releases based on community feedback.
164
-
taskTitle=`Enable secret scanning for ${failedRepos.length} (${percentageOfFailedRepos}) repositories (${failedRepos.join(',')}) in GitHub`
164
+
taskTitle=`Enable secret scanning for ${failedRepos.length} (${percentageOfFailedRepos}) repositories (${failedRepos.join(',')}) in GitHub`
0 commit comments