Skip to content

Add new infrastructure and script files for user management and VM ac… #1

Add new infrastructure and script files for user management and VM ac…

Add new infrastructure and script files for user management and VM ac… #1

Workflow file for this run

# .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