Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2058 commits
Select commit Hold shift + click to select a range
0db566d
Merge pull request #1430 from microsoft/MrAutomater#1412
MrAutomater Feb 21, 2025
1a908de
Merge pull request #1428 from microsoft/hinderjd#1413
MrAutomater Feb 21, 2025
1fb82b3
Merge pull request #1427 from microsoft/hinderjd#1417
MrAutomater Feb 21, 2025
14936dc
Merge pull request #1426 from microsoft/Hinderjd#1418
MrAutomater Feb 21, 2025
7b42ff0
Merge pull request #1425 from microsoft/hinderjd#1419
MrAutomater Feb 21, 2025
d702e75
Merge pull request #1424 from microsoft/hinderjd#1420
MrAutomater Feb 21, 2025
6120e37
Merge pull request #1423 from microsoft/hinderjd#1421
MrAutomater Feb 21, 2025
e1f4d06
Merge branch '4.25.0' into MrAutomater#1416
MrAutomater Feb 21, 2025
42acfed
Merge pull request #1433 from microsoft/MrAutomater#1416
MrAutomater Feb 21, 2025
b186603
release prep
MrAutomater Feb 21, 2025
fb9fec1
Merge pull request #1434 from microsoft/4.25.0
MrAutomater Feb 21, 2025
5eeb702
Merge pull request #1435 from microsoft/4.25.0
MrAutomater Feb 21, 2025
b72b718
Merge pull request #1436 from microsoft/master
MrAutomater Feb 21, 2025
38a36b8
Initial Fixes
MrAutomater Feb 25, 2025
3bca505
removed conversionstatus="fail" stigs
MrAutomater Feb 26, 2025
b0a4dca
Merge pull request #1438 from microsoft/MrAutomater#1437
MrAutomater Feb 26, 2025
44100e4
fix bad unit test
MrAutomater Feb 27, 2025
58e7872
Merge pull request #1440 from microsoft/4.26.0
MrAutomater Feb 27, 2025
f45b36e
DotNet update
MrAutomater May 21, 2025
4565258
Update Powerstig to parse\apply Microsoft Office 365 ProPlus STIG - V…
MrAutomater May 21, 2025
b557b13
Update Powerstig to parse\apply Microsoft SQL Server 2016 STIG - Ver …
MrAutomater May 21, 2025
7fecc41
Update Powerstig to parse\apply Microsoft Windows 10 STIG
MrAutomater May 21, 2025
1c740b1
Update source/StigData/Processed/WindowsClient-10-3.4.xml
MrAutomater May 21, 2025
b2895ba
Update source/StigData/Processed/WindowsClient-10-3.4.xml
MrAutomater May 21, 2025
6bbc396
Update CHANGELOG.md
MrAutomater May 21, 2025
9f1c4aa
Update source/StigData/Processed/SqlServer-2016-Instance-3.4.xml
MrAutomater May 21, 2025
518b5e6
Update source/StigData/Processed/SqlServer-2016-Instance-3.4.xml
MrAutomater May 21, 2025
c585748
Update CHANGELOG.md
MrAutomater May 21, 2025
a09c9e3
Update source/StigData/Processed/Office-365ProPlus-3.3.xml
MrAutomater May 21, 2025
88b135b
Update CHANGELOG.md
MrAutomater May 21, 2025
0e28ef5
Update Powerstig to parse\apply Microsoft Windows 11 STIG
MrAutomater May 21, 2025
65d5be5
Update Powerstig to parse\apply Microsoft Windows Server 2019 STIG
MrAutomater May 21, 2025
6f1ecf5
Update Powerstig to parse\apply Microsoft Windows Server 2022 STIG - …
MrAutomater May 21, 2025
c4846be
Update Powerstig to parse\apply Mozilla Firefox STIG
MrAutomater May 22, 2025
c4d1318
220906 .a and .b split update
MrAutomater May 22, 2025
e5018b8
Merge branch 'MrAutomater#1448' of https://github.com/microsoft/Power…
MrAutomater May 22, 2025
737b44a
Add Org Value V-271426
MrAutomater May 22, 2025
3537912
add files
MrAutomater May 22, 2025
2d1a758
fix 254444
MrAutomater May 23, 2025
3e56c38
Fix 254444 in MS
MrAutomater May 23, 2025
d5da4c1
Update source/StigData/Processed/WindowsServer-2022-MS-2.4.xml
MrAutomater May 23, 2025
4ffe642
Update source/StigData/Processed/WindowsServer-2022-MS-2.4.xml
MrAutomater May 23, 2025
cf9fa7c
Update Powerstig to parse\apply Microsoft IIS 10.0 STIG
MrAutomater May 23, 2025
69acc39
Update CHANGELOG.md
MrAutomater May 23, 2025
fe37304
Update source/StigData/Processed/IISSite-10.0-2.11.org.default.xml
MrAutomater May 23, 2025
04e038b
Update source/StigData/Processed/IISSite-10.0-2.11.org.default.xml
MrAutomater May 23, 2025
ab887f2
FIX EXTRA ORG SETTING
MrAutomater May 23, 2025
6d48f23
Merge branch 'MrAutomater#1445' of https://github.com/microsoft/Power…
MrAutomater May 23, 2025
72bc2e7
fixes
MrAutomater May 27, 2025
243b4bf
fix218818 dupe
MrAutomater May 27, 2025
26341ce
fix errors
MrAutomater May 27, 2025
d3f0fce
fix org file
MrAutomater May 27, 2025
585e8d8
update test
MrAutomater May 27, 2025
9bcc18a
adjust timespan error
MrAutomater May 27, 2025
5c0092d
Initial Commit OL8 2.4
MrAutomater May 27, 2025
88555de
initial commit
MrAutomater May 28, 2025
793c375
fix archive log
MrAutomater May 28, 2025
df05b62
update log file
MrAutomater May 28, 2025
7e5ceef
fixes
MrAutomater May 28, 2025
aaee7f1
Merge pull request #1456 from microsoft/MrAutomater#1444
MrAutomater May 28, 2025
61a92fb
Merge branch '4.26.0' into MrAutomater#1446
MrAutomater May 28, 2025
f8b8e2b
Merge pull request #1458 from microsoft/MrAutomater#1447
MrAutomater May 28, 2025
820bd42
Merge branch '4.26.0' into MrAutomater#1448
MrAutomater May 28, 2025
52a778f
Merge branch '4.26.0' into MrAutomater#1449
MrAutomater May 28, 2025
6a52929
Update source/StigData/Processed/WindowsServer-2019-MS-3.4.xml
MrAutomater May 28, 2025
b4e8996
Merge branch '4.26.0' into MrAutomater#1450
MrAutomater May 28, 2025
f2b74fb
fix encoding error
MrAutomater May 28, 2025
59c9b05
Merge branch 'MrAutomater#1450' of https://github.com/microsoft/Power…
MrAutomater May 28, 2025
55ffede
Merge branch '4.26.0' into MrAutomater#1451
MrAutomater May 28, 2025
0a252e7
Merge pull request #1462 from microsoft/MrAutomater#1451
MrAutomater May 28, 2025
8bdea78
Merge branch '4.26.0' into MrAutomater#1453
MrAutomater May 28, 2025
d1a9b2b
Merge pull request #1463 from microsoft/MrAutomater#1453
MrAutomater May 28, 2025
207ccd7
Merge branch '4.26.0' into MrAutomater#1445
MrAutomater May 28, 2025
218de2a
Merge branch '4.26.0' into MrAutomater#1454
MrAutomater May 28, 2025
b89db90
Update source/StigData/Processed/OracleLinux-9-1.1.org.default.xml
MrAutomater May 28, 2025
db0676a
Update source/StigData/Processed/OracleLinux-9-1.1.org.default.xml
MrAutomater May 28, 2025
550f440
Merge branch '4.26.0' into MrAutomater#1455
MrAutomater May 28, 2025
16732e2
Merge branch '4.26.0' into MrAutomater#1446
MrAutomater May 28, 2025
66890eb
Merge pull request #1457 from microsoft/MrAutomater#1446
MrAutomater May 28, 2025
9e10b2b
Merge branch '4.26.0' into MrAutomater#1448
MrAutomater May 28, 2025
38547fa
Merge branch '4.26.0' into MrAutomater#1449
MrAutomater May 28, 2025
74f48c8
Merge pull request #1460 from microsoft/MrAutomater#1449
MrAutomater May 28, 2025
9f7fb7f
Merge branch '4.26.0' into MrAutomater#1455
MrAutomater May 28, 2025
4d15727
Merge pull request #1466 from microsoft/MrAutomater#1455
MrAutomater May 28, 2025
148d5d3
Merge branch '4.26.0' into MrAutomater#1454
MrAutomater May 28, 2025
1daedc8
Merge pull request #1465 from microsoft/MrAutomater#1454
MrAutomater May 28, 2025
b6cc788
Merge branch '4.26.0' into MrAutomater#1445
MrAutomater May 28, 2025
0cd7c07
Merge pull request #1464 from microsoft/MrAutomater#1445
MrAutomater May 28, 2025
6ab95b6
Merge branch '4.26.0' into MrAutomater#1450
MrAutomater May 28, 2025
5c6811d
Merge pull request #1461 from microsoft/MrAutomater#1450
MrAutomater May 28, 2025
cfc66be
Merge branch '4.26.0' into MrAutomater#1448
MrAutomater May 28, 2025
46a29ee
Merge pull request #1459 from microsoft/MrAutomater#1448
MrAutomater May 28, 2025
bf26f98
update backup stig unit test
MrAutomater May 28, 2025
b53a517
release info updates
MrAutomater May 29, 2025
d615b34
Merge pull request #1467 from microsoft/4.26.0
MrAutomater May 29, 2025
07cdc5d
Create PowerShell formatting configuration to align with project's st…
SvenAelterman Aug 12, 2025
00651b4
Initial Chrome v2r11 Push
MrAutomater Aug 25, 2025
6503147
Fixed NewLine issue
MrAutomater Aug 25, 2025
b4435ee
Initial Update Push
MrAutomater Aug 26, 2025
923b0be
Initial Edge Push
Aug 26, 2025
a7df355
fix org file issue
MrAutomater Aug 26, 2025
125a2c8
Initial IIS Update
MrAutomater Aug 26, 2025
230e4f0
commit
MrAutomater Aug 27, 2025
8f6af94
Initial Updates
MrAutomater Aug 27, 2025
776355d
fixes
MrAutomater Aug 27, 2025
4be1dae
fixed error
MrAutomater Aug 28, 2025
b3993e4
Initial Files
MrAutomater Aug 28, 2025
3a1e451
Initial Converstion
MrAutomater Aug 28, 2025
030c9bd
Initial SQL 2022 Push
MrAutomater Aug 28, 2025
cbf8c15
Initial 2019 Commit
MrAutomater Aug 28, 2025
f2d974f
Update source/StigData/Processed/WindowsServer-2019-MS-3.5.xml
MrAutomater Aug 28, 2025
ed454aa
encoding changes
MrAutomater Aug 28, 2025
1567c24
Merge branch 'MrAutomater#1493' of https://github.com/microsoft/Power…
MrAutomater Aug 28, 2025
4a01c41
encoding
MrAutomater Aug 28, 2025
714df11
Update source/StigData/Archive/Windows.Server.2019/U_MS_Windows_Serve…
MrAutomater Aug 28, 2025
1b37301
Update source/StigData/Archive/Windows.Server.2019/U_MS_Windows_Serve…
MrAutomater Aug 28, 2025
a3533e7
add blank lines
MrAutomater Aug 28, 2025
fdfb946
Initial 2022 Push
MrAutomater Aug 28, 2025
97409e2
Update source/StigData/Processed/WindowsServer-2022-DC-2.5.xml
MrAutomater Aug 28, 2025
d1e3754
Update source/StigData/Archive/Windows.Server.2022/U_MS_Windows_Serve…
MrAutomater Aug 28, 2025
bf339f0
Update source/StigData/Archive/Windows.Server.2022/U_MS_Windows_Serve…
MrAutomater Aug 28, 2025
fc3d1e9
fix 254444
MrAutomater Aug 28, 2025
165ba5e
update MS fail
MrAutomater Aug 28, 2025
34effb9
Updated my github account in Readme.md
Aug 29, 2025
2f1a95d
Fix missing Org Settings
MrAutomater Aug 29, 2025
abcd9bc
correct Thumbprint for 254442.d
MrAutomater Aug 29, 2025
b5eb228
Merge pull request #1496 from microsoft/MrAutomater#1495
MrAutomater Aug 30, 2025
716aa5f
Merge branch '4.27.0' into MrAutomater#1493
MrAutomater Aug 30, 2025
1c9c558
Merge pull request #1494 from microsoft/MrAutomater#1493
MrAutomater Aug 30, 2025
ad88fea
Merge branch '4.27.0' into MrAutomater#1491
MrAutomater Aug 30, 2025
ff8fc31
Merge pull request #1492 from microsoft/MrAutomater#1491
MrAutomater Aug 30, 2025
18b8c42
Merge branch '4.27.0' into MrAutomater#1489
MrAutomater Aug 30, 2025
f8e6973
Merge pull request #1490 from microsoft/MrAutomater#1489
MrAutomater Aug 30, 2025
e60276b
Merge branch '4.27.0' into MrAutomater#1487
MrAutomater Aug 30, 2025
a9156f3
Merge pull request #1488 from microsoft/MrAutomater#1487
MrAutomater Aug 30, 2025
2565a6c
Merge branch '4.27.0' into MrAutomater#1485
MrAutomater Aug 30, 2025
a48db1c
Merge pull request #1486 from microsoft/MrAutomater#1485
MrAutomater Aug 30, 2025
2bc6194
Merge branch '4.27.0' into MrAutomater#1483
MrAutomater Aug 30, 2025
01a9645
Merge pull request #1484 from microsoft/MrAutomater#1483
MrAutomater Aug 30, 2025
f12fefc
Merge branch '4.27.0' into MrAutomater#1481
MrAutomater Aug 30, 2025
99964c4
Merge pull request #1482 from microsoft/MrAutomater#1481
MrAutomater Aug 30, 2025
10935a0
Merge branch '4.27.0' into MrAutomater#1478
MrAutomater Aug 30, 2025
d46ecef
Merge pull request #1479 from microsoft/MrAutomater#1478
MrAutomater Aug 30, 2025
eb00127
Merge pull request #1474 from SvenAelterman/svaelter/editor-config
MrAutomater Aug 31, 2025
450ab8d
UserRight: Parse Identity=NULL testing
MrAutomater Sep 2, 2025
8940ac8
Update IIS Manual Rule
MrAutomater Sep 2, 2025
905924a
Added error handling
Sep 2, 2025
40cf33b
update readme.md
MrAutomater Sep 2, 2025
cf54efa
update test
MrAutomater Sep 2, 2025
a3f6b59
Merge pull request #1501 from microsoft/MRasmussenGIT#1497
MrAutomater Sep 2, 2025
e065a7a
update tests\Unit\Module\Convert.CommonTests.ps1: line 88
MrAutomater Sep 2, 2025
77a5512
Merge pull request #1500 from microsoft/MrAutomater#1499-Testing
MrAutomater Sep 4, 2025
5adad00
Update vmImage: to 'windows-2022'
MrAutomater Sep 4, 2025
4de5b39
Merge pull request #1502 from microsoft/MrAutomater#1499
MrAutomater Sep 4, 2025
a016d87
4.27 Release
MrAutomater Sep 4, 2025
81b70fa
Merge pull request #1498 from microsoft/4.27.0
MrAutomater Sep 4, 2025
93708a2
Update PowerStig to parse/apply Microsoft IIS 10.0 Server STIG - Ver …
hinderjd Dec 2, 2025
e7e968e
remove n+1
hinderjd Dec 2, 2025
6292e09
Initial Commit of Win 11 v2r5
MrAutomater Dec 2, 2025
81ae5eb
Initial Commit Win10 V3R5
MrAutomater Dec 2, 2025
7f627b7
Initial Commit Server 2019 V3R6
MrAutomater Dec 2, 2025
8bad1dc
Initial Commit Server 2022 V2R6
MrAutomater Dec 2, 2025
745c94a
remove stale rule from log
hinderjd Dec 2, 2025
1cf9e5b
Update PowerStig to parse/apply Microsoft IIS 10.0 Site STIG - Ver 2,…
hinderjd Dec 2, 2025
3013cb2
Update U_MS_IIS_10-0_Site_STIG_V2R13_Manual-xccdf.log
hinderjd Dec 2, 2025
e9b4e8c
fix 254444 fail
MrAutomater Dec 2, 2025
19767d5
Update CHANGELOG.md
MrAutomater Dec 2, 2025
610a539
254444 MS Fix
MrAutomater Dec 3, 2025
133cab5
Defender V2 R6 Initial Commit
MrAutomater Dec 3, 2025
f44fd20
Office 365 V3R4 Initial Commit
MrAutomater Dec 3, 2025
1a59c97
start
MrAutomater Dec 3, 2025
c254b9d
fix missing line
MrAutomater Dec 3, 2025
83cdc63
update changelog
MrAutomater Dec 3, 2025
df5f3fc
fix hklm code issue
MrAutomater Dec 3, 2025
bb9f09a
update Test
MrAutomater Dec 3, 2025
32aca1c
Incorp Changes from brianwest#1506
MrAutomater Dec 3, 2025
b1f8902
Update source/StigData/Processed/WindowsDefender-All-2.6.xml
MrAutomater Dec 3, 2025
b07514f
Changes per Removed invalid character #1505
MrAutomater Dec 3, 2025
306c419
Merge pull request #1525 from microsoft/MrAutomater#1511
MrAutomater Dec 4, 2025
ae8df4d
Merge branch '4.28.0' into MrAutomater#1512
MrAutomater Dec 4, 2025
b00560d
Merge pull request #1519 from microsoft/MrAutomater#1512
MrAutomater Dec 4, 2025
f713181
Merge branch '4.28.0' into MrAutomater#1513
MrAutomater Dec 4, 2025
d542822
Merge pull request #1520 from microsoft/MrAutomater#1513
MrAutomater Dec 4, 2025
368b791
Merge pull request #1521 from microsoft/MrAutomater#1514
MrAutomater Dec 4, 2025
bfa0b4d
Merge branch '4.28.0' into MrAutomater#1515
MrAutomater Dec 4, 2025
7be46c1
Merge pull request #1522 from microsoft/MrAutomater#1515
MrAutomater Dec 4, 2025
86da34a
Merge pull request #1523 from microsoft/MrAutomater#1516
MrAutomater Dec 4, 2025
2d9f2f6
Merge branch '4.28.0' into MrAutomater#1510
MrAutomater Dec 4, 2025
2aa4119
Merge pull request #1524 from microsoft/MrAutomater#1510
MrAutomater Dec 4, 2025
796c1bc
Merge pull request #1517 from microsoft/hinderjd#1508
MrAutomater Dec 4, 2025
28c6a59
Merge branch '4.28.0' into hinderjd#1509
MrAutomater Dec 4, 2025
84c26f8
Merge pull request #1518 from microsoft/hinderjd#1509
MrAutomater Dec 4, 2025
1bf54bc
fix 254444
MrAutomater Dec 5, 2025
fa8077a
release updates
MrAutomater Dec 5, 2025
72f7a5c
Copilot Recommended Changes
MrAutomater Dec 5, 2025
442afa8
Merge pull request #1526 from microsoft/4.28.0
MrAutomater Dec 5, 2025
016393c
Prep for 4.29.0 Release
MrAutomater Dec 5, 2025
ca5aaa9
Update PowerStig to parse/apply Microsoft Excel 2016 STIG - Ver 2, Rel 2
MrAutomater Feb 17, 2026
6a4ee5c
Update Sunsetted and Remove Retired STIGS
MrAutomater Feb 18, 2026
28295ae
CopPilot Fixes
MrAutomater Feb 18, 2026
4b2350e
misc fixes
MrAutomater Feb 18, 2026
4651c02
Unit Test Fixes addition Stigs Added
MrAutomater Feb 18, 2026
94c2e6d
Integration TEst Corrections
MrAutomater Feb 19, 2026
4a4dc2b
update Changelog
MrAutomater Feb 19, 2026
527c693
fix unit test issues
MrAutomater Feb 19, 2026
dd639c1
unit test fixes
MrAutomater Feb 19, 2026
6a9a605
fix split issue
MrAutomater Feb 19, 2026
cbd1990
updates
MrAutomater Feb 19, 2026
2ddadf3
fix 2019 Split xccdf files
MrAutomater Feb 19, 2026
85a0f28
fix STIG.BackupRevert.Test hard codes
MrAutomater Feb 19, 2026
daa3073
bskup restore fix
MrAutomater Feb 19, 2026
fe9a1d3
fix 2016 server intergration test failure
MrAutomater Feb 19, 2026
d0f9931
remove bad 2016 files
MrAutomater Feb 20, 2026
970b2b0
remove v-205671 From 2019 DC Stigs
MrAutomater Feb 20, 2026
9c23c0d
remove V-205671
MrAutomater Feb 20, 2026
4c93911
Unit Test Troubleshooting
MrAutomater Feb 20, 2026
eba5b20
V-205665
MrAutomater Feb 20, 2026
e889f37
IIS 10 STIG Updates
MrAutomater Feb 20, 2026
6a6821b
fix unit test issues
MrAutomater Feb 20, 2026
faf85e9
integration testing fix
MrAutomater Feb 21, 2026
8476308
remove v-278953 from log
MrAutomater Feb 21, 2026
9e7e37d
redo
MrAutomater Feb 21, 2026
b9c5e4e
remove 218787 form log
MrAutomater Feb 23, 2026
c666643
hard code 278953
MrAutomater Feb 23, 2026
493928e
Added Missing Default Values back to files
MrAutomater Feb 23, 2026
331640b
Merge pull request #1544 from microsoft/MrAutomater#1543
MrAutomater Feb 23, 2026
2b3373a
Merge pull request #1546 from microsoft/MrAutomater#1545
MrAutomater Feb 23, 2026
ce90fcc
Update CHANGELOG.md
MrAutomater Feb 23, 2026
63eaf7c
IIS Site V-278953 is a No-Op #1535
MrAutomater Feb 23, 2026
6bef444
Merge branch '4.29.0' of https://github.com/microsoft/PowerStig into …
MrAutomater Feb 23, 2026
2803c4d
release push
MrAutomater Feb 24, 2026
17d902a
t2
MrAutomater Feb 24, 2026
3d3d4ef
Merge pull request #1547 from microsoft/4.29.0
MrAutomater Feb 24, 2026
32c6ea4
MD Sync
MrAutomater Jun 16, 2026
48674a3
Initial Updates for 4.30.0
MrAutomater Jun 16, 2026
ea226eb
update changelog
MrAutomater Jun 16, 2026
0cfbca6
Correct Issue found with Unit Tests
MrAutomater Jun 16, 2026
093e5b5
Unit Test find Updates
MrAutomater Jun 17, 2026
b9f6e4d
fix iis site errors
MrAutomater Jun 17, 2026
8610080
removed dupe rule in iis site
MrAutomater Jun 17, 2026
77313dc
bug fixes for iis site
MrAutomater Jun 17, 2026
3a4acf6
iis site troubleshooting
MrAutomater Jun 17, 2026
2795bde
hardcode iis server v-268325
MrAutomater Jun 17, 2026
38017b8
update for Wiki Pages
MrAutomater Jun 17, 2026
0ead800
Potential fix for pull request finding
MrAutomater Jun 18, 2026
f8db155
Potential fix for pull request finding
MrAutomater Jun 18, 2026
d01c95b
prepare for release
MrAutomater Jun 19, 2026
8c1425e
Merge branch '1553#MrAutomater-4-30-0-updates' of https://github.com/…
MrAutomater Jun 19, 2026
fce8816
Merge 4.30 changes to Dev
MrAutomater Jun 19, 2026
efa8aec
Merge to Master
MrAutomater Jun 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions .MetaTestOptIn.json

This file was deleted.

34 changes: 0 additions & 34 deletions .NuspecFileList.json

This file was deleted.

33 changes: 33 additions & 0 deletions .build/tasks/Custom.Data.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<#
Data file used to create the .nuspec file which is used to create the package.
There is a "static" dependency for Vmware.vSphereDsc which is not included with
the RequiredModules section in the PowerStig manifest file due to a cyclic
dependency bug in PowerShell 5.1 which will not be fixed.
#>
data nuspecContents {
@'
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>PowerStig</id>
<version>{0}</version>
<authors>{1}</authors>
<owners>{2}</owners>
<licenseUrl>{3}</licenseUrl>
<projectUrl>{4}</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>{5}</description>
<releaseNotes>{6}</releaseNotes>
<copyright>{7} {8}</copyright>
<tags>{9}</tags>
<dependencies>
{10}
<dependency id="Vmware.vSphereDsc" version="[2.1.0.58]" />
</dependencies>
</metadata>
<files>
<file src="PowerStig\{11}\**" target="" />
</files>
</package>
'@
}
61 changes: 61 additions & 0 deletions .build/tasks/Custom.Functions.psm1
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
$supportFileList = Get-ChildItem -Path $PSScriptRoot -Filter '*.Data.ps1'
foreach ($supportFile in $supportFileList)
{
Write-Verbose "Loading $($supportFile.FullName)"
. $supportFile.FullName
}

function New-NuspecFile
{
[CmdletBinding()]
param
(
[Parameter(Mandatory = $true)]
[String]
$DestinationPath,

[Parameter(Mandatory = $true)]
[String]
$ModuleManifestPath
)

# https://docs.microsoft.com/en-us/nuget/reference/nuspec

$moduleManifest = Import-PowerShellDataFile -Path $ModuleManifestPath

$requiredModuleStringBuilder = New-Object -TypeName System.Text.StringBuilder
foreach ($dependency in $moduleManifest.RequiredModules)
{
$requiredModuleContents = " <dependency id='{0}' version='[{1}]' />" -f $dependency.ModuleName, $dependency.ModuleVersion
[void] $requiredModuleStringBuilder.AppendLine($requiredModuleContents)
}

$nuspecFileContent = $nuspecContents -f
$moduleManifest['ModuleVersion'],
$moduleManifest['Author'],
$moduleManifest['CompanyName'],
$moduleManifest['PrivateData']['PsData']['LicenseUri'],
$moduleManifest['PrivateData']['PsData']['ProjectUri'],
$moduleManifest['Description'],
$moduleManifest['PrivateData']['PsData']['ReleaseNotes'],
$moduleManifest['Copyright'],
$(Get-Date).Year,
$($moduleManifest['PrivateData']['PsData']['Tags'] -join ' '),
$($requiredModuleStringBuilder.ToString()),
$moduleManifest['ModuleVersion']

if (-not (Test-Path -Path $DestinationPath))
{
$null = New-Item -Path $DestinationPath -ItemType 'Directory'
}

$packageName = (Split-Path -Path $ModuleManifestPath -Leaf) -replace 'psd1', 'nuspec'
$nuspecFilePath = Join-Path -Path $DestinationPath -ChildPath $packageName
$nuspecFile = New-Item -Path $nuspecFilePath -ItemType 'File' -Force
$null = Set-Content -Path $nuspecFilePath -Value $nuspecFileContent
return $nuspecFile.FullName
}

Export-ModuleMember -Function @(
'New-NuspecFile'
)
176 changes: 176 additions & 0 deletions .build/tasks/Custom.NugetPackage.Task.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
param(
# Base directory of all output (default to 'output')
[Parameter()]
[string]
$OutputDirectory = (property OutputDirectory (Join-Path $BuildRoot 'output')),

[Parameter()]
[string]
$ChangelogPath = (property ChangelogPath 'CHANGELOG.md'),

[Parameter()]
[string]
$ReleaseNotesPath = (property ReleaseNotesPath (Join-Path $OutputDirectory 'ReleaseNotes.md')),

[Parameter()]
[string]
$ProjectName = (property ProjectName $(
#Find the module manifest to deduce the Project Name
(
Get-ChildItem $BuildRoot\*\*.psd1 -Exclude 'build.psd1', 'analyzersettings.psd1' |
Where-Object {
($_.Directory.Name -match 'source|src' -or $_.Directory.Name -eq $_.BaseName) -and
$(
try
{
Test-ModuleManifest $_.FullName -ErrorAction Stop
}
catch
{
Write-Warning $_
$false
}
)
}
).BaseName
)
),

[Parameter()]
[string]
$ModuleVersion = (
property ModuleVersion $(
try
{
(gitversion | ConvertFrom-Json -ErrorAction Stop).NuGetVersionV2
}
catch
{
Write-Verbose "Error attempting to use GitVersion $($_)"
''
}
)
),

[Parameter()]
[string]
# retrieves from Environment variable
$GitHubToken = (property GitHubToken ''),

[Parameter()]
[string]
$GalleryApiToken = (property GalleryApiToken ''),

[Parameter()]
[string]
$NuGetPublishSource = (property NuGetPublishSource 'https://www.powershellgallery.com/'),

[Parameter()]
$PSModuleFeed = (property PSModuleFeed 'PSGallery'),

[Parameter()]
$SkipPublish = (property SkipPublish '')
)

Import-Module -Name "$PSScriptRoot/Custom.Functions.psm1"

# Synopsis: Packaging the module by Publishing to output folder (incl dependencies)
task package_module_nupkg {

# Force registering the output repository mapping to the Project's output path
$null = Unregister-PSRepository -Name output -ErrorAction SilentlyContinue
$repositoryParams = @{
Name = 'output'
SourceLocation = $OutputDirectory
PublishLocation = $OutputDirectory
ErrorAction = 'Stop'
}

$null = Register-PSRepository @repositoryParams

# Cleaning up existing packaged module
$moduleToRemove = Get-ChildItem -Path (Join-Path -Path $OutputDirectory -ChildPath "$ProjectName.*.nupkg")
if ($null -ne $moduleToRemove)
{
Write-Build DarkGray " Remove existing $ProjectName package"
Remove-Item -Path $ModuleToRemove -Force -ErrorAction Stop
}

# find Module manifest
$builtModuleManifest = (Get-ChildItem -Path (Join-Path -Path $OutputDirectory -ChildPath $ProjectName) -Depth 2 -Filter "$ProjectName.psd1").FullName |
Where-Object {
try
{
Test-ModuleManifest -Path $_ -ErrorAction Stop
}
catch
{
$false
}
}

if (-not $builtModuleManifest)
{
throw "No valid manifest found for project $ProjectName."
}

Write-Build -Color DarkGray -Text " Built module's Manifest found at $builtModuleManifest"

# load module manifest
$moduleInfo = Import-PowerShellDataFile -Path $builtModuleManifest

# Publish dependencies (from environment) so we can publish the built module
foreach ($module in $moduleInfo.RequiredModules)
{
if (
-not ([Microsoft.PowerShell.Commands.ModuleSpecification]$module |
Find-Module -Repository output -ErrorAction SilentlyContinue)
)
{
# Replace the module by first (path & version) resolved in PSModulePath
$module = Get-Module -ListAvailable -FullyQualifiedName $module | Select-Object -First 1
if ($null -ne $module.PrivateData.PSData.Prerelease)
{
$Prerelease = "-" + $module.PrivateData.PSData.Prerelease
}

$writeBuildText = " Packaging Required Module {0} v{1}{2}" -f $Module.Name, $Module.Version.ToString(), $Prerelease
Write-Build -Color Yellow -Text $writeBuildText
Publish-Module -Repository output -Path $module.ModuleBase -ErrorAction SilentlyContinue
}
}

Write-Build -Color DarkGray -Text " Creating nuspec file"
$projectPath = Join-Path -Path $OutputDirectory -ChildPath $ProjectName
$manifestFileName = '{0}.psd1' -f $ProjectName
$moduleManifestPath = Get-ChildItem -Path $projectPath -Filter $manifestFileName -Recurse
$newNuspecFileParams = @{
ModuleManifestPath = $moduleManifestPath.FullName
DestinationPath = $OutputDirectory
}
$projectNuspecFile = New-NuspecFile @newNuspecFileParams
$nugetResults = Get-Command -Name nuget.exe | Select-Object -First 1
$nugetFilePath = $nugetResults.Source
Write-Build -Color DarkGray -Text " nuget Path: $($nugetFilePath)"
if ((Test-Path -Path $nugetFilePath) -eq $false)
{
throw "nuget.exe not found, aborting task package_module_nupkg"
}
else
{
$startProcessNugetParams = @{
FilePath = $nugetFilePath
Wait = $true
ArgumentList = @(
'Pack', $projectNuspecFile
'-OutputDirectory', $OutputDirectory
)
}

Start-Process @startProcessNugetParams
Write-Build -Color Green -Text " Packaged $ProjectName NuGet package"
}

Write-Build -Color DarkGray -Text " Cleaning up"
$null = Unregister-PSRepository -Name output -ErrorAction SilentlyContinue
}
24 changes: 0 additions & 24 deletions .codecov.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

# All files
[*]
insert_final_newline = true
trim_trailing_whitespace = true

# PowerShell files
[*.{ps1,psm1,psd1}]
indent_style = space
indent_size = 4

# Markdown files
[*.md]
trim_trailing_whitespace = false
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ about: Create a report to help us improve
---

**Describe the bug**
A clear and concise description of what the bug is.
<!--A clear and concise description of what the bug is.-->

**To Reproduce**
Steps to reproduce the behavior:
<!--Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
4. See error-->

**Expected behavior**
A clear and concise description of what you expected to happen.
<!--A clear and concise description of what you expected to happen.-->

**Screenshots**
If applicable, add screenshots to help explain your problem.
<!--If applicable, add screenshots to help explain your problem.-->

**Additional context**
Add any other context about the problem here.
<!--Add any other context about the problem here.-->
Loading