-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xBitlocker: Updated to a new CI/CD pipeline (#55)
- Loading branch information
Showing
53 changed files
with
2,582 additions
and
1,350 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
# Needed for publishing of examples, build worker defaults to core.autocrlf=input. | ||
* text eol=crlf | ||
|
||
# Ensure any exe files are treated as binary | ||
*.exe binary | ||
*.jpg binary | ||
*.xl* binary | ||
*.pfx binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,52 @@ | ||
<!-- | ||
Thanks for submitting a Pull Request (PR) to this project. | ||
Your contribution to this project is greatly appreciated! | ||
Thanks for submitting a Pull Request (PR) to this project. Your contribution to this project | ||
is greatly appreciated! | ||
Please prefix the PR title with the resource name, | ||
e.g. 'ResourceName: My short description'. | ||
If this is a breaking change, then also prefix the PR title | ||
with 'BREAKING CHANGE:', | ||
Please prefix the PR title with the resource name, e.g. 'ResourceName: My short description'. | ||
If this is a breaking change, then also prefix the PR title with 'BREAKING CHANGE:', | ||
e.g. 'BREAKING CHANGE: ResourceName: My short description'. | ||
You may remove this comment block, and the other comment blocks, but please | ||
keep the headers and the task list. | ||
You may remove this comment block, and the other comment blocks, but please keep the headers | ||
and the task list. | ||
--> | ||
|
||
#### Pull Request (PR) description | ||
|
||
<!-- | ||
Replace this comment block with a description of your PR. | ||
Replace this comment block with a description of your PR. Also, make sure you have updated the | ||
CHANGELOG.md, see the task list below. An entry in the CHANGELOG.md is mandatory for all PRs. | ||
--> | ||
|
||
#### This Pull Request (PR) fixes the following issues | ||
|
||
<!-- | ||
If this PR does not fix an open issue, replace this comment block with None. | ||
If this PR resolves one or more open issues, replace this comment block with | ||
a list the issues using a GitHub closing keyword, e.g.: | ||
- Fixes #123 | ||
- Fixes #124 | ||
If this PR does not fix an open issue, replace this comment block with None. If this PR | ||
resolves one or more open issues, replace this comment block with a list of the issues using | ||
a GitHub closing keyword, e.g.: | ||
- Fixes #123 | ||
- Fixes #124 | ||
--> | ||
|
||
#### Task list | ||
|
||
<!-- | ||
To aid community reviewers in reviewing and merging your PR, please take | ||
the time to run through the below checklist and make sure your PR has | ||
everything updated as required. | ||
To aid community reviewers in reviewing and merging your PR, please take the time to run | ||
through the below checklist and make sure your PR has everything updated as required. | ||
Change to [x] for each task in the task list that applies to your PR. | ||
For those task that don't apply to you PR, leave those as is. | ||
Change to [x] for each task in the task list that applies to your PR. For those task that | ||
don't apply to you PR, leave those as is. | ||
--> | ||
- [ ] Added an entry under the Unreleased section of the change log in the CHANGELOG.md. | ||
Entry should say what was changed, and how that affects users (if applicable). | ||
|
||
- [ ] Added an entry to the change log under the Unreleased section of the file CHANGELOG.md. | ||
Entry should say what was changed and how that affects users (if applicable), and | ||
reference the issue being resolved (if applicable). | ||
- [ ] Resource documentation added/updated in README.md. | ||
- [ ] Resource parameter descriptions added/updated in README.md, schema.mof | ||
and comment-based help. | ||
- [ ] Resource parameter descriptions added/updated in README.md, schema.mof and comment-based | ||
help. | ||
- [ ] Comment-based help added/updated. | ||
- [ ] Localization strings added/updated in all localization files as appropriate. | ||
- [ ] Examples appropriately added/updated. | ||
- [ ] Unit tests added/updated. See [DSC Resource Testing Guidelines](https://github.com/PowerShell/DscResources/blob/master/TestsGuidelines.md). | ||
- [ ] Integration tests added/updated (where possible). See [DSC Resource Testing Guidelines](https://github.com/PowerShell/DscResources/blob/master/TestsGuidelines.md). | ||
- [ ] New/changed code adheres to [DSC Resource Style Guidelines](https://github.com/PowerShell/DscResources/blob/master/StyleGuidelines.md) and [Best Practices](https://github.com/PowerShell/DscResources/blob/master/BestPractices.md). | ||
- [ ] Unit tests added/updated. See [DSC Community Testing Guidelines](https://dsccommunity.org/guidelines/testing-guidelines). | ||
- [ ] Integration tests added/updated (where possible). See [DSC Community Testing Guidelines](https://dsccommunity.org/guidelines/testing-guidelines). | ||
- [ ] New/changed code adheres to [DSC Community Style Guidelines](https://dsccommunity.org/styleguidelines). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
DSCResource.Tests | ||
output/ | ||
.vs | ||
.vscode | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
@{ | ||
CustomRulePath = '.\output\RequiredModules\DscResource.AnalyzerRules' | ||
includeDefaultRules = $true | ||
IncludeRules = @( | ||
# DSC Resource Kit style guideline rules. | ||
'PSAvoidDefaultValueForMandatoryParameter', | ||
'PSAvoidDefaultValueSwitchParameter', | ||
'PSAvoidInvokingEmptyMembers', | ||
'PSAvoidNullOrEmptyHelpMessageAttribute', | ||
'PSAvoidUsingCmdletAliases', | ||
'PSAvoidUsingComputerNameHardcoded', | ||
'PSAvoidUsingDeprecatedManifestFields', | ||
'PSAvoidUsingEmptyCatchBlock', | ||
'PSAvoidUsingInvokeExpression', | ||
'PSAvoidUsingPositionalParameters', | ||
'PSAvoidShouldContinueWithoutForce', | ||
'PSAvoidUsingWMICmdlet', | ||
'PSAvoidUsingWriteHost', | ||
'PSDSCReturnCorrectTypesForDSCFunctions', | ||
'PSDSCStandardDSCFunctionsInResource', | ||
'PSDSCUseIdenticalMandatoryParametersForDSC', | ||
'PSDSCUseIdenticalParametersForDSC', | ||
'PSMisleadingBacktick', | ||
'PSMissingModuleManifestField', | ||
'PSPossibleIncorrectComparisonWithNull', | ||
'PSProvideCommentHelp', | ||
'PSReservedCmdletChar', | ||
'PSReservedParams', | ||
'PSUseApprovedVerbs', | ||
'PSUseCmdletCorrectly', | ||
'PSUseOutputTypeCorrectly', | ||
'PSAvoidGlobalVars', | ||
'PSAvoidUsingConvertToSecureStringWithPlainText', | ||
'PSAvoidUsingPlainTextForPassword', | ||
'PSAvoidUsingUsernameAndPasswordParams', | ||
'PSDSCUseVerboseMessageInDSCResource', | ||
'PSShouldProcess', | ||
'PSUseDeclaredVarsMoreThanAssignments', | ||
'PSUsePSCredentialType', | ||
|
||
'Measure-*' | ||
) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,39 @@ | ||
{ | ||
"powershell.codeFormatting.openBraceOnSameLine": false, | ||
"powershell.codeFormatting.newLineAfterOpenBrace": false, | ||
"powershell.codeFormatting.newLineAfterOpenBrace": true, | ||
"powershell.codeFormatting.newLineAfterCloseBrace": true, | ||
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true, | ||
"powershell.codeFormatting.whitespaceBeforeOpenParen": true, | ||
"powershell.codeFormatting.whitespaceAroundOperator": true, | ||
"powershell.codeFormatting.whitespaceAfterSeparator": true, | ||
"powershell.codeFormatting.ignoreOneLineBlock": false, | ||
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationAfterEveryPipeline", | ||
"powershell.codeFormatting.preset": "Custom", | ||
"powershell.codeFormatting.alignPropertyValuePairs": true, | ||
"files.trimTrailingWhitespace": true, | ||
"files.insertFinalNewline": true, | ||
"powershell.scriptAnalysis.settingsPath": ".vscode\\analyzersettings.psd1" | ||
"powershell.scriptAnalysis.settingsPath": ".vscode\\analyzersettings.psd1", | ||
"powershell.scriptAnalysis.enable": true, | ||
"files.associations": { | ||
"*.ps1xml": "xml" | ||
}, | ||
"cSpell.words": [ | ||
"COMPANYNAME", | ||
"ICONURI", | ||
"LICENSEURI", | ||
"PROJECTURI", | ||
"RELEASENOTES", | ||
"buildhelpers", | ||
"endregion", | ||
"gitversion", | ||
"icontains", | ||
"keepachangelog", | ||
"notin", | ||
"pscmdlet", | ||
"steppable" | ||
], | ||
"[markdown]": { | ||
"files.trimTrailingWhitespace": true, | ||
"files.encoding": "utf8" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
{ | ||
"version": "2.0.0", | ||
"_runner": "terminal", | ||
"windows": { | ||
"options": { | ||
"shell": { | ||
"executable": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", | ||
"args": [ | ||
"-NoProfile", | ||
"-ExecutionPolicy", | ||
"Bypass", | ||
"-Command" | ||
] | ||
} | ||
} | ||
}, | ||
"linux": { | ||
"options": { | ||
"shell": { | ||
"executable": "/usr/bin/pwsh", | ||
"args": [ | ||
"-NoProfile", | ||
"-Command" | ||
] | ||
} | ||
} | ||
}, | ||
"osx": { | ||
"options": { | ||
"shell": { | ||
"executable": "/usr/local/bin/pwsh", | ||
"args": [ | ||
"-NoProfile", | ||
"-Command" | ||
] | ||
} | ||
} | ||
}, | ||
"tasks": [ | ||
{ | ||
"label": "build", | ||
"type": "shell", | ||
"command": "&${cwd}/build.ps1", | ||
"args": ["-AutoRestore"], | ||
"presentation": { | ||
"echo": true, | ||
"reveal": "always", | ||
"focus": true, | ||
"panel": "new", | ||
"clear": false | ||
}, | ||
"runOptions": { | ||
"runOn": "default" | ||
}, | ||
"problemMatcher": [ | ||
{ | ||
"owner": "powershell", | ||
"fileLocation": [ | ||
"absolute" | ||
], | ||
"severity": "error", | ||
"pattern": [ | ||
{ | ||
"regexp": "^\\s*(\\[-\\]\\s*.*?)(\\d+)ms\\s*$", | ||
"message": 1 | ||
}, | ||
{ | ||
"regexp": "(.*)", | ||
"code": 1 | ||
}, | ||
{ | ||
"regexp": "" | ||
}, | ||
{ | ||
"regexp": "^.*,\\s*(.*):\\s*line\\s*(\\d+).*", | ||
"file": 1, | ||
"line": 2 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"label": "test", | ||
"type": "shell", | ||
"command": "&${cwd}/build.ps1", | ||
"args": ["-AutoRestore","-Tasks","test"], | ||
"presentation": { | ||
"echo": true, | ||
"reveal": "always", | ||
"focus": true, | ||
"panel": "dedicated", | ||
"showReuseMessage": true, | ||
"clear": false | ||
}, | ||
"problemMatcher": [ | ||
{ | ||
"owner": "powershell", | ||
"fileLocation": [ | ||
"absolute" | ||
], | ||
"severity": "error", | ||
"pattern": [ | ||
{ | ||
"regexp": "^\\s*(\\[-\\]\\s*.*?)(\\d+)ms\\s*$", | ||
"message": 1 | ||
}, | ||
{ | ||
"regexp": "(.*)", | ||
"code": 1 | ||
}, | ||
{ | ||
"regexp": "" | ||
}, | ||
{ | ||
"regexp": "^.*,\\s*(.*):\\s*line\\s*(\\d+).*", | ||
"file": 1, | ||
"line": 2 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.