Add your project description here. Configuration data can be generated using
the build dependency AppLockerFoundry.
Get-ChildItem -Path "C:\Program Files" -Recurse -Filter *.exe | Get-AlfYamlFileInfoThe integrated build workflows for GitHub and Azure DevOps (Server) can be used out-of-the-box, nearly. If you want to publish your policies in a domain environment, you will ned to run your build worker with an account that is capable of updating the required policy objects. This is due to constraints with the AppLocker cmdlets and their missing capability to specify alternative credentials.
The ideal workflow should you need or want to build it your self would look like this:
- Ensure prerequisites
.\build\prerequisites.ps1 - Validate Configuration Data:
.\build\validate.ps1 -TestType ConfigurationData - Build policies and optional RSOP from configuration data:
.\build\build.ps1 -IncludeRsop - Validate Integration into environment:
.\build\validate.ps1 -TestType Integration - Publish:
.\build\publish.ps1
Most CI tools support a concept like Environments to which you can attach certain gates like a manual approval or a scheduled release in a specific time frame. Play around with this a little bit to further improve your AppLocker pipeline.