├── .github └── workflows │ └── hacktrack.yml ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── ca8467c41b9abc10ce0f62c3b24bcbaa ├── README.md ├── author_elective_update │ ├── scan_linter_check_c2db61672f561110a1803e0ef699b64b.xml │ ├── scan_table_check_0306196a07221110e765f9fc7c1ed07b.xml │ ├── scan_table_check_d44f0a4097b29510dd0178300153af7e.xml │ ├── scan_table_check_e660164097b29510dd0178300153af2e.xml │ ├── scan_table_check_eb21adf797697110710650081153af9c.xml │ ├── scan_table_check_fbdce17f2fb2fc505dcb59ab2799b6d0.xml │ ├── sys_scope_privilege_3a88af181b1afc10ce0f62c3b24bcbca.xml │ ├── sys_scope_privilege_3e88af181b1afc10ce0f62c3b24bcbd2.xml │ ├── sys_scope_privilege_4da9ef581b1afc10ce0f62c3b24bcb9e.xml │ ├── sys_scope_privilege_7a88af181b1afc10ce0f62c3b24bcbd0.xml │ ├── sys_scope_privilege_7e886f181b1afc10ce0f62c3b24bcbda.xml │ ├── sys_scope_privilege_ba88af181b1afc10ce0f62c3b24bcbcc.xml │ └── sys_scope_privilege_dfc9a3981b1afc10ce0f62c3b24bcb34.xml ├── checksum.txt ├── sys_app_ca8467c41b9abc10ce0f62c3b24bcbaa.xml └── update │ ├── scan_column_type_check_4514d5c7400730107f44dbb3b15cf295.xml │ ├── scan_column_type_check_57d17e91c3dd56108dbc32f1b4013125.xml │ ├── scan_column_type_check_c5493fd897523110839d76021153afb8.xml │ ├── scan_column_type_check_ee62ee7e97b131106c7cfed11153af4f.xml │ ├── scan_linter_check_0b7623d41b1afc10ce0f62c3b24bcb24.xml │ ├── scan_linter_check_0eeac3042f0730103307235df699b6d1.xml │ ├── scan_linter_check_1043deaf2ffa7c505dcb59ab2799b6a6.xml │ ├── scan_linter_check_1c72ae442fc370905dcb59ab2799b6e2.xml │ ├── scan_linter_check_22a19fd62f4778105dcb59ab2799b6e5.xml │ ├── scan_linter_check_266f89b32f2d7110d53f821df699b626.xml │ ├── scan_linter_check_2e2a8fc02f0730103307235df699b659.xml │ ├── scan_linter_check_4986078c2f6330d05dcb59ab2799b6d9.xml │ ├── scan_linter_check_4bdb65272f561110a1803e0ef699b68e.xml │ ├── scan_linter_check_51e943c02f0730103307235df699b64b.xml │ ├── scan_linter_check_85c352ae2f3db11002eb2ca62799b68e.xml │ ├── scan_linter_check_88cb65272f561110a1803e0ef699b688.xml │ ├── scan_linter_check_90db61672f561110a1803e0ef699b648.xml │ ├── scan_linter_check_b46a4fc02f0730103307235df699b6e0.xml │ ├── scan_linter_check_c0f4d1102f87b0905dcb59ab2799b693.xml │ ├── scan_linter_check_d58d1d3f2f6d7110d53f821df699b63d.xml │ ├── scan_linter_check_e09640b5158330107f4499658835edbb.xml │ ├── scan_linter_check_f7cb61672f561110a1803e0ef699b618.xml │ ├── scan_script_only_check_0376b5332f21b110d53f821df699b664.xml │ ├── scan_script_only_check_0dfff25a2f83301002f0ffecf699b649.xml │ ├── scan_script_only_check_1e7511642f2330100b40bea62799b6f1.xml │ ├── scan_script_only_check_266f17f52f121110a1803e0ef699b6a1.xml │ ├── scan_script_only_check_46f6b819834592106137b6cfeeaad352.xml │ ├── scan_script_only_check_4cfd41f82f43f0107c12db9df699b691.xml │ ├── scan_script_only_check_63ddf5782f6691104f07a1fef699b624.xml │ ├── scan_script_only_check_6b832a7953d1d61000b51901a0490e24.xml │ ├── scan_script_only_check_718e43b42f2330100b40bea62799b67f.xml │ ├── scan_script_only_check_7f8a38342f0330103307235df699b6b3.xml │ ├── scan_script_only_check_9c5f1fb52f121110a1803e0ef699b6ad.xml │ ├── scan_script_only_check_d11fd7f52f121110a1803e0ef699b601.xml │ ├── scan_script_only_check_fb01f46edb7a9190c4ebc5860596190b.xml │ ├── scan_table_check_003db2922f43301002f0ffecf699b617.xml │ ├── scan_table_check_01342bc1c3ed12103acc7275e40131eb.xml │ ├── scan_table_check_01c1c08ec3a19610afa6fc84e401310d.xml │ ├── scan_table_check_076448b12ffd311002eb2ca62799b628.xml │ ├── scan_table_check_110515e547819210b8ca0b02d16d4308.xml │ ├── scan_table_check_1284f489879a855009eaed3e8bbb35d6.xml │ ├── scan_table_check_12b47a84977211108e72fed11153af8e.xml │ ├── scan_table_check_145e91272f367c505dcb59ab2799b6c0.xml │ ├── scan_table_check_1d39dcb22ff9b110b0b62d5df699b6a2.xml │ ├── scan_table_check_22407c16473d35103899fa37536d43e3.xml │ ├── scan_table_check_22a8ebad2fd3301036c51e282799b6b4.xml │ ├── scan_table_check_28d33b441bdabc10ce0f62c3b24bcbcb.xml │ ├── scan_table_check_2b77e92f2fb67c505dcb59ab2799b61f.xml │ ├── scan_table_check_2ca086f597d25d10e6cd3bc3f153afee.xml │ ├── scan_table_check_2dfd38d983ed1210e0def6d6feaad3ee.xml │ ├── scan_table_check_306c378183c5d2100283b955eeaad3f5.xml │ ├── scan_table_check_310106cb2fa57110d53f821df699b661.xml │ ├── scan_table_check_31a4075807f61110ce33f61d7c1ed0e9.xml │ ├── scan_table_check_33687cb02f0330103307235df699b685.xml │ ├── scan_table_check_352f210a97e211108e72fed11153af7f.xml │ ├── scan_table_check_3b163adc2f9bb4505dcb59ab2799b616.xml │ ├── scan_table_check_42653cc9879a855009eaed3e8bbb35f3.xml │ ├── scan_table_check_4b353cc9879a855009eaed3e8bbb35ed.xml │ ├── scan_table_check_532dc24e976611108e72fed11153af9a.xml │ ├── scan_table_check_552c3f3a400330107f44dbb3b15cf2f8.xml │ ├── scan_table_check_589b8c9283251210a765fecfeeaad37a.xml │ ├── scan_table_check_5adc555e2f9b30100b40bea62799b6e3.xml │ ├── scan_table_check_62e0ecfa2ff9b110b0b62d5df699b6ee.xml │ ├── scan_table_check_659f29c297e211108e72fed11153af44.xml │ ├── scan_table_check_6b1a4ee9c34d9210193f37cc0501312e.xml │ ├── scan_table_check_6db4a7081b9abc10ce0f62c3b24bcbd0.xml │ ├── scan_table_check_6f14fe555359161000b51901a0490ef9.xml │ ├── scan_table_check_7334dda283455210ae0854b6feaad378.xml │ ├── scan_table_check_7558925a83211210533ecc50ceaad346.xml │ ├── scan_table_check_7589e10ebc0330107f448f0d4936142b.xml │ ├── scan_table_check_76dc11c747011210b8ca0b02d16d439a.xml │ ├── scan_table_check_7741e65ac3291210766bb3edd40131e6.xml │ ├── scan_table_check_77a6af2f1b363c10b32c642aab4bcb36.xml │ ├── scan_table_check_7818ddaa07221110e765f9fc7c1ed0a5.xml │ ├── scan_table_check_7c3f6f6b1b763c10b32c642aab4bcb10.xml │ ├── scan_table_check_889f5a42976a11108e72fed11153af50.xml │ ├── scan_table_check_88fbb74c1bdabc10ce0f62c3b24bcb22.xml │ ├── scan_table_check_8adbad272f561110a1803e0ef699b626.xml │ ├── scan_table_check_8b90df49839112107b681390ceaad3be.xml │ ├── scan_table_check_8ddb61672f561110a1803e0ef699b68b.xml │ ├── scan_table_check_8de1905683e512103d6c98c6feaad3b9.xml │ ├── scan_table_check_952af3c81bdabc10ce0f62c3b24bcbb6.xml │ ├── scan_table_check_98b51b14477131108fc4750cd36d436c.xml │ ├── scan_table_check_9d4676f6c34d52d08dbc32f1b4013165.xml │ ├── scan_table_check_a1544896c3211210d419de1d050131e8.xml │ ├── scan_table_check_a6f17e0e47d156109c6152e1d16d43d5.xml │ ├── scan_table_check_ae4970f02f0330103307235df699b60b.xml │ ├── scan_table_check_b04679fb2ff2fc505dcb59ab2799b623.xml │ ├── scan_table_check_b31e1c5c2f0e7110b0b62d5df699b619.xml │ ├── scan_table_check_b68a2d5ac3111210eb11ba2ed40131fa.xml │ ├── scan_table_check_b8ae9202976a11108e72fed11153afee.xml │ ├── scan_table_check_b909b0f02f0330103307235df699b62c.xml │ ├── scan_table_check_ba0c998d875251106b0f20af8bbb3515.xml │ ├── scan_table_check_bb3bf7a31bf63c10b32c642aab4bcb75.xml │ ├── scan_table_check_bd68e1cabc0330107f448f0d49361473.xml │ ├── scan_table_check_c4b11137c3511210eb11ba2ed4013189.xml │ ├── scan_table_check_cc993cf02f0330103307235df699b60d.xml │ ├── scan_table_check_cdd8763a8301121059f46b70deaad38b.xml │ ├── scan_table_check_cf0d6b87c3951610eb11ba2ed4013162.xml │ ├── scan_table_check_cf9d1010c34916908dbc32f1b4013184.xml │ ├── scan_table_check_d3f47b4b97823110dd0178300153af08.xml │ ├── scan_table_check_d4be41f82f43f0107c12db9df699b69d.xml │ ├── scan_table_check_dcc8978c2f4a7110b0b62d5df699b603.xml │ ├── scan_table_check_dcd18896c3211210d419de1d05013128.xml │ ├── scan_table_check_df3c9331470271103899fa37536d43ca.xml │ ├── scan_table_check_e19656212ff1311002eb2ca62799b639.xml │ ├── scan_table_check_e6cb0310073a1110ce33f61d7c1ed052.xml │ ├── scan_table_check_eb1388ea2f2a91108e343e0ef699b6b0.xml │ ├── scan_table_check_f0e1a8581b27705088d943fddc4bcbc3.xml │ ├── scan_table_check_f9f9659e977931106c7cfed11153afc7.xml │ ├── scan_table_check_fbdce17f2fb2fc505dcb59ab2799b6d0.xml │ ├── sys_relationship_55e9076607933850be01f03c7c1ed0b2.xml │ ├── sys_relationship_62b6cf6207933850be01f03c7c1ed06d.xml │ ├── sys_relationship_84c903a607933850be01f03c7c1ed09d.xml │ ├── sys_relationship_eb33476e07533850be01f03c7c1ed0fa.xml │ ├── sys_ui_list_control_1b5a4fe607933850be01f03c7c1ed0b8.xml │ ├── sys_ui_list_control_5318c32607933850be01f03c7c1ed0f7.xml │ ├── sys_ui_list_control_b6a74be207933850be01f03c7c1ed068.xml │ ├── sys_ui_list_control_df7a432a07933850be01f03c7c1ed08c.xml │ └── sys_ui_list_control_f336436207933850be01f03c7c1ed002.xml └── sn_source_control.properties /.github/workflows/hacktrack.yml: -------------------------------------------------------------------------------- 1 | #This file is for ServiceNow Dev Program Hacktoberfest Tracking and can be ignored or deleted. 2 | 3 | name: Record Hacktrack Event 4 | on: 5 | push: 6 | branches: master 7 | fork: 8 | branches: master 9 | issues: 10 | types: [opened, closed] 11 | branches: master 12 | pull_request_target: 13 | types: [opened, closed] 14 | branches: master 15 | jobs: 16 | deployment: 17 | if: github.repository == 'ServiceNowDevProgram/example-instancescan-checks' 18 | runs-on: ubuntu-latest 19 | steps: 20 | # - name: Log payload 21 | # env: 22 | # GITHUB_CONTEXT: ${{ toJson(github) }} 23 | # run: | 24 | # echo "$GITHUB_CONTEXT" 25 | - name: Contact DPR 26 | id: myRequest 27 | uses: fjogeleit/http-request-action@v1.8.1 28 | with: 29 | url: ${{ format('https://{0}.service-now.com/api/x_snc_hacktrack/hacktrack', secrets.HT_INSTANCE_NAME) }} 30 | method: 'POST' 31 | contentType: application/json 32 | data: ${{ toJson(github) }} 33 | username: ${{ secrets.ADMIN_USERNAME }} 34 | password: ${{ secrets.ADMIN_PASSWORD }} 35 | - name: Show Response 36 | run: echo ${{ steps.myRequest.outputs.response }} 37 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | ## General requirements 4 | 5 | - Pull request descriptions must be explicit and descriptive to what is being changed. 6 | - Changes that are not within the scope of the description will result in the entire PR being rejected 7 | - Low effort/spam Pull Requests will be marked as spam accordingly. 8 | 9 | ## Process 10 | 11 | 1. Fork this repo 12 | 2. Go to your ServiceNow instance 13 | 3. Go to `System Applications` => `Studio` 14 | 4. Once Studio loads, select `Import From Source Control` 15 | 5. Use your forked repo to [Import your application](https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/new_to_servicenow/app_store_learnv2_devenvironment_quebec_importing_an_application_from_source_control) 16 | 5. Make updates to the application 17 | 6. In Studio, commit your changes to source control 18 | 7. If you added a new Instance Scan check, add documentation of the check to the README.md file. 19 | 8. Submit a pull request to the ServiceNowDevProgram/example-instancescan-checks 20 | `master` branch 21 | -------------------------------------------------------------------------------- /ca8467c41b9abc10ce0f62c3b24bcbaa/README.md: -------------------------------------------------------------------------------- 1 | # Generated files 2 | This repository contains generated files and a checksum. 3 | 4 | If you find yourself unable to import your repository due to the presence of files edited outside an instance of ServiceNow, merge commits that mix files from different revisions, or other data that does not match the checksum, you may recover using either of the following techniques: 5 | * Remove the problem commits: 6 | 1. Clone your repository to a personal computer with the git command line tools installed and open a git command prompt in the repository root 7 | 2. Run `git log` and take note of the SHA1s of the problem commits 8 | 3. Build revert commits using `git revert SHA1` repeatedly, working backward in time, for each commit that introduced changes not generated by a ServiceNow instance 9 | 4. Run `git push` 10 | 11 | * Overwrite the problem code snapshot with a known good one: 12 | 1. Clone your repository to a personal computer with the git command line tools installed and open a git command prompt in the repository root, 13 | 2. Locate a known good code snapshot and record its SHA1. For this step, `git log` can be useful. 14 | 2. Run `git reset --hard SHA1` to a commit that was generated by a ServiceNow instance 15 | 3. Run `git reset HEAD{1}` 16 | 4. Run `git add -A` 17 | 5. Run `git commit` 18 | 6. Run `git push` 19 | -------------------------------------------------------------------------------- /ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt: -------------------------------------------------------------------------------- 1 | vqS62dwsHOftj0lK7PR87gomw2pIhK44opT0jPKRyjaGenHOsrTkyPCKzQ7rEUQHL5wJzSlMh2o7sx36ilRDd4i88RNzKdRmZQrAE43MBZiIP0vH5yIkRc9lrfiqlfrqlDa5QTwro6H3y4_p_S4sJaGSnLteaAJVb5sn7kboEKpPAvpdV8cgu-rlAKAzB9vegqMVyfgzrzzPlsZhChJpJZzGaqAhnN8h8VY1CH05130BFPqoo1M4DPdLevgSBoH_Hdx1UI4gh7XNIc722PYxnWc-suyoupr9vJk1mHKv0TtIG1UVf1UdlYuLplbA83Xjv-BGOzuHYCCBHy6DG97PjEYe_dHt5OE_51l59nDazeJXpYqQUQ21dEF4pnh1ZkKf3opqlxB7cHRtDL4-Fvj0HKemx8WjSoDC2ww_kGolUrR8KNWIewMS8de65BZMOFuvi0DvA2M0RjNSdxtDtGuJbGfd1gXuk8EO8B69uuyTDBD1q7hzowaVGXALNqKfLEk_BqsTv03-3sX1AAC7lU2VNjqCcESKEPimlLbYEh2xZUySwNJ3nsugjviNfHsGofds0xUjVfNJEoQtqEOu3VfMFK0zufXyLkCxLH-HFKwAy1tb2_Z0RvVK8MhrHfcqE5dQSbGTpOKW4J-OR939_Vx2KD1hwu901aNQmO6NMN5ix2c -------------------------------------------------------------------------------- /ca8467c41b9abc10ce0f62c3b24bcbaa/sys_app_ca8467c41b9abc10ce0f62c3b24bcbaa.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | true 4 | true 5 | log 6 | 7 | false 8 | false 9 | helsinki_es5 10 | true 11 | 12 | none 13 | 14 | none 15 | 16 | 17 | Example Instance Checks 18 | false 19 | false 20 | 21 | x_appe_exa_checks 22 | false 23 | Provide Examples of new Instance Checks 24 | x_appe_exa_checks 25 | 26 | 27 | sys_app 28 | 29 | daniel.draes 30 | 2021-08-26 12:31:40 31 | ca8467c41b9abc10ce0f62c3b24bcbaa 32 | 2 33 | admin 34 | 2021-09-30 12:05:06 35 |