|
2 | 2 | <scan_linter_check action="INSERT_OR_UPDATE">
|
3 | 3 | <active>true</active>
|
4 | 4 | <category>manageability</category>
|
5 |
| - <description>Avoid using hard-coded values in scripts, as they can lead to unpredictable results and can be difficult to track down later. Hard coding sys_ids is not recommended, as they may not be the same between instances. </description> |
| 5 | + <description/> |
6 | 6 | <documentation_url>https://developer.servicenow.com/dev.do#!/guides/rome/now-platform/tpb-guide/scripting_technical_best_practices#do-not-use-hard-coded-values</documentation_url>
|
7 | 7 | <finding_type>scan_finding</finding_type>
|
8 | 8 | <name>Do not use hard-coded sys_ids Contri</name>
|
9 | 9 | <priority>3</priority>
|
10 |
| - <resolution_details>Instead, try looking up a value by reference or by creating a property and retrieving the value with gs.getProperty().</resolution_details> |
| 10 | + <resolution_details/> |
11 | 11 | <run_condition/>
|
12 | 12 | <score_max>100</score_max>
|
13 | 13 | <score_min>0</score_min>
|
|
46 | 46 | <sys_created_by>admin</sys_created_by>
|
47 | 47 | <sys_created_on>2024-10-30 10:47:12</sys_created_on>
|
48 | 48 | <sys_id>236a0a79c3a55250a8361dd1b40131dd</sys_id>
|
49 |
| - <sys_mod_count>0</sys_mod_count> |
| 49 | + <sys_mod_count>1</sys_mod_count> |
50 | 50 | <sys_name>Do not use hard-coded sys_ids Contri</sys_name>
|
51 | 51 | <sys_package display_value="Example Instance Checks" source="x_appe_exa_checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_package>
|
52 | 52 | <sys_policy/>
|
53 | 53 | <sys_scope display_value="Example Instance Checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_scope>
|
54 | 54 | <sys_update_name>scan_linter_check_236a0a79c3a55250a8361dd1b40131dd</sys_update_name>
|
55 | 55 | <sys_updated_by>admin</sys_updated_by>
|
56 |
| - <sys_updated_on>2024-10-30 10:47:12</sys_updated_on> |
| 56 | + <sys_updated_on>2024-10-31 10:46:17</sys_updated_on> |
57 | 57 | </scan_linter_check>
|
58 | 58 | <sys_translated_text action="delete_multiple" query="documentkey=236a0a79c3a55250a8361dd1b40131dd"/>
|
| 59 | + <sys_es_latest_script action="INSERT_OR_UPDATE"> |
| 60 | + <id>236a0a79c3a55250a8361dd1b40131dd</id> |
| 61 | + <sys_created_by>admin</sys_created_by> |
| 62 | + <sys_created_on>2024-10-31 10:46:17</sys_created_on> |
| 63 | + <sys_id>3fc31b06c3a55a50a8361dd1b40131ec</sys_id> |
| 64 | + <sys_mod_count>0</sys_mod_count> |
| 65 | + <sys_updated_by>admin</sys_updated_by> |
| 66 | + <sys_updated_on>2024-10-31 10:46:17</sys_updated_on> |
| 67 | + <table>scan_linter_check</table> |
| 68 | + <use_es_latest>false</use_es_latest> |
| 69 | + </sys_es_latest_script> |
59 | 70 | </record_update>
|
0 commit comments