|
| 1 | + |
| 2 | +name: "Chocolatey CI workflow" |
| 3 | + |
| 4 | +on: |
| 5 | + push: |
| 6 | + branches: [ main ] |
| 7 | + schedule: |
| 8 | + - cron: '0 0 1 * *' ##execution of a task in the first minute of the month |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | +jobs: |
| 13 | + |
| 14 | + windows-2022-pwsh-choco: |
| 15 | + name: "2022 chocolatey" |
| 16 | + runs-on: windows-2022 |
| 17 | + steps: |
| 18 | + - name: Checkout |
| 19 | + uses: actions/checkout@v1 |
| 20 | + - name: "check if server is virtual" |
| 21 | + run: Systeminfo | findstr /i model |
| 22 | + - name: "check the PROCESSOR_ARCHITECTURE environment variable.64-bit systems will say AMD64 and 32-bit systems should say x86" |
| 23 | + run: wmic OS get OSArchitecture |
| 24 | + - name: "osfingerprinting" |
| 25 | + run: systeminfo | more |
| 26 | + - name: "display all processes, executable path" |
| 27 | + run: wmic process list full |
| 28 | + - name: "list of running services" |
| 29 | + run: tasklist |
| 30 | + - name: "list of all processes along with their corresponding PID, and services that are tied to them" |
| 31 | + run: tasklist /svc |
| 32 | + - name: "look for unusual services" |
| 33 | + run: net start |
| 34 | + - name: "query unusual services" |
| 35 | + run: sc query |
| 36 | + - name: "Install Chocolatey - pwsh script" |
| 37 | + run: .\scripts\Install_chocolatey.ps1 |
| 38 | + shell: pwsh |
| 39 | + - name: "Sysinternals File and Disk Utilities accesschk" |
| 40 | + run: .\scripts\SysinternalsFileDiskUtilities-accesschk.ps1 |
| 41 | + shell: pwsh |
| 42 | + - name: "Sysinternals File and Disk Utilities junction" |
| 43 | + run: | |
| 44 | + md Program-Files |
| 45 | + junction c:\Program-Files "c:\Program Files" |
| 46 | + # junction -s c:\ |
| 47 | + junction -d c:\Program-Files |
| 48 | + shell: pwsh |
| 49 | + |
| 50 | + # windows-latest-pwsh-choco: |
| 51 | + # name: "2019 Datacenter chocolatey" |
| 52 | + # runs-on: windows-latest |
| 53 | + # steps: |
| 54 | + # - name: Checkout |
| 55 | + # uses: actions/checkout@v1 |
| 56 | + # - name: "check if server is virtual" |
| 57 | + # run: Systeminfo | findstr /i model |
| 58 | + # - name: "check the PROCESSOR_ARCHITECTURE environment variable.64-bit systems will say AMD64 and 32-bit systems should say x86" |
| 59 | + # run: wmic OS get OSArchitecture |
| 60 | + # - name: "osfingerprinting" |
| 61 | + # run: systeminfo | more |
| 62 | + # - name: "display all processes, executable path" |
| 63 | + # run: wmic process list full |
| 64 | + # - name: "list of running services" |
| 65 | + # run: tasklist |
| 66 | + # - name: "list of all processes along with their corresponding PID, and services that are tied to them" |
| 67 | + # run: tasklist /svc |
| 68 | + # - name: "look for unusual services" |
| 69 | + # run: net start |
| 70 | + # - name: "query unusual services" |
| 71 | + # run: sc query |
| 72 | + # - name: "Choco packages - pwsh script" |
| 73 | + # run: .\scripts\Install_chocolatey.ps1 |
| 74 | + # shell: pwsh |
| 75 | + # - name: "Sysinternals File and Disk Utilities accesschk" |
| 76 | + # run: .\scripts\SysinternalsFileDiskUtilities-accesschk.ps1 |
| 77 | + # shell: pwsh |
| 78 | + # - name: "Sysinternals File and Disk Utilities junction" |
| 79 | + # run: | |
| 80 | + # md Program-Files |
| 81 | + # junction c:\Program-Files "c:\Program Files" |
| 82 | + # # junction -s c:\ |
| 83 | + # junction -d c:\Program-Files |
| 84 | + # shell: pwsh |
| 85 | + |
| 86 | + |
| 87 | + # windows-2016-pwsh-choco: |
| 88 | + # name: "2016 Datacenter chocolatey" |
| 89 | + # runs-on: windows-2016 |
| 90 | + # steps: |
| 91 | + # - name: Checkout |
| 92 | + # uses: actions/checkout@v1 |
| 93 | + # - name: "check if server is virtual" |
| 94 | + # run: Systeminfo | findstr /i model |
| 95 | + # - name: "check the PROCESSOR_ARCHITECTURE environment variable.64-bit systems will say AMD64 and 32-bit systems should say x86" |
| 96 | + # run: wmic OS get OSArchitecture |
| 97 | + # - name: "osfingerprinting" |
| 98 | + # run: systeminfo | more |
| 99 | + # - name: "display all processes, executable path" |
| 100 | + # run: wmic process list full |
| 101 | + # - name: "list of running services" |
| 102 | + # run: tasklist |
| 103 | + # - name: "list of all processes along with their corresponding PID, and services that are tied to them" |
| 104 | + # run: tasklist /svc |
| 105 | + # - name: "look for unusual services" |
| 106 | + # run: net start |
| 107 | + # - name: "query unusual services" |
| 108 | + # run: sc query |
| 109 | + # - name: "Choco packages - pwsh script" |
| 110 | + # run: .\scripts\Install_chocolatey.ps1 |
| 111 | + # shell: pwsh |
| 112 | + # - name: "Sysinternals File and Disk Utilities accesschk" |
| 113 | + # run: .\scripts\SysinternalsFileDiskUtilities-accesschk.ps1 |
| 114 | + # shell: pwsh |
| 115 | + # - name: "Sysinternals File and Disk Utilities junction" |
| 116 | + # run: | |
| 117 | + # md Program-Files |
| 118 | + # junction c:\Program-Files "c:\Program Files" |
| 119 | + # # junction -s c:\ |
| 120 | + # junction -d c:\Program-Files |
| 121 | + # shell: pwsh |
| 122 | + |
0 commit comments