Add new infrastructure and script files for user management and VM ac… #1
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
| # .github/workflows/validate.yml | |
| name: Validate PowerShell Scripts | |
| on: | |
| push: | |
| paths: | |
| - "scripts/**/*.ps1" | |
| - ".github/workflows/validate.yml" | |
| pull_request: | |
| paths: | |
| - "scripts/**/*.ps1" | |
| - ".github/workflows/validate.yml" | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install PSScriptAnalyzer | |
| shell: pwsh | |
| run: | | |
| Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted | |
| Install-Module PSScriptAnalyzer -Scope CurrentUser -Force -SkipPublisherCheck | |
| - name: Run ScriptAnalyzer | |
| shell: pwsh | |
| run: | | |
| Invoke-ScriptAnalyzer -EnableExit scripts/*.ps1 |