|
18 | 18 | auditpol /get /category:* | Out-File -FilePath $auditFile -Encoding utf8 |
19 | 19 | Get-Content $auditFile | Write-Host |
20 | 20 |
|
| 21 | + - name: Upload auditpol artifact |
| 22 | + uses: actions/upload-artifact@v4 |
| 23 | + with: |
| 24 | + name: auditpol-${{ matrix.os }}-${{ github.run_number }} |
| 25 | + path: AuditpolOutput-${{ matrix.os }}.txt |
| 26 | + retention-days: 10 |
| 27 | + |
21 | 28 | - name: Run registry check script |
22 | 29 | shell: pwsh |
23 | 30 | run: | |
@@ -64,16 +71,49 @@ jobs: |
64 | 71 | $results | Export-Csv -Path $regFile -NoTypeInformation -Encoding UTF8 |
65 | 72 | $results | Format-Table -AutoSize |
66 | 73 |
|
67 | | - - name: Upload auditpol artifact |
| 74 | + - name: Upload CSV artifact |
68 | 75 | uses: actions/upload-artifact@v4 |
69 | 76 | with: |
70 | | - name: auditpol-${{ matrix.os }}-${{ github.run_number }} |
71 | | - path: AuditpolOutput-${{ matrix.os }}.txt |
| 77 | + name: registry-settings-${{ matrix.os }}-${{ github.run_number }} |
| 78 | + path: RegistrySettings-${{ matrix.os }}.csv |
72 | 79 | retention-days: 10 |
73 | 80 |
|
74 | | - - name: Upload CSV artifact |
| 81 | + - name: Checkout repository |
| 82 | + uses: actions/checkout@v4 |
| 83 | + with: |
| 84 | + fetch-depth: 0 |
| 85 | + |
| 86 | + - name: Checkout WELA repository |
| 87 | + uses: actions/checkout@v4 |
| 88 | + with: |
| 89 | + repository: Yamato-Security/WELA |
| 90 | + path: WELA |
| 91 | + |
| 92 | + - name: Run WELA.ps1 audit-settings |
| 93 | + run: | |
| 94 | + cd WELA |
| 95 | + ./WELA.ps1 audit-settings -Baseline YamatoSecurity |
| 96 | +
|
| 97 | + - name: Run WELA.ps1 audit-filesize |
| 98 | + run: | |
| 99 | + cd WELA |
| 100 | + ./WELA.ps1 audit-filesize -Baseline YamatoSecurity |
| 101 | +
|
| 102 | + - name: Rename WELA output files |
| 103 | + run: | |
| 104 | + $os = '${{ matrix.os }}' |
| 105 | + Get-ChildItem -Path WELA -Filter *.csv | ForEach-Object { |
| 106 | + Rename-Item -Path $_.FullName -NewName "$os`_$($_.Name)" |
| 107 | + } |
| 108 | + Get-ChildItem -Path WELA -Filter *.json | ForEach-Object { |
| 109 | + Rename-Item -Path $_.FullName -NewName "$os`_$($_.Name)" |
| 110 | + } |
| 111 | +
|
| 112 | + - name: Upload WELA artifacts |
75 | 113 | uses: actions/upload-artifact@v4 |
76 | 114 | with: |
77 | | - name: registry-settings-${{ matrix.os }}-${{ github.run_number }} |
78 | | - path: RegistrySettings-${{ matrix.os }}.csv |
| 115 | + name: wela-reports-${{ matrix.os }}-${{ github.run_number }} |
| 116 | + path: | |
| 117 | + WELA/${{ matrix.os }}_*.csv |
| 118 | + WELA/${{ matrix.os }}_*.json |
79 | 119 | retention-days: 10 |
0 commit comments