Skip to content

Commit 11e78a1

Browse files
committed
Workflow Compliance Update
1 parent c03bdc2 commit 11e78a1

3 files changed

Lines changed: 15 additions & 10 deletions

File tree

.github/workflows/env-matrix.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
shell: [pwsh, powershell]
1717
admin: [true, false]
1818
locale: [en-US, de-DE]
19-
name: Env: ${{ matrix.os }} | Shell: ${{ matrix.shell }} | Admin: ${{ matrix.admin }} | Locale: ${{ matrix.locale }}
19+
name: "env: ${{ matrix.os }} | Shell: ${{ matrix.shell }} | Admin: ${{ matrix.admin }} | Locale: ${{ matrix.locale }}"
2020
steps:
2121
- name: Checkout repo
2222
uses: actions/checkout@v4
@@ -27,17 +27,19 @@ jobs:
2727
shell: powershell
2828
continue-on-error: true
2929

30+
3031
- name: Run as admin (if required)
3132
if: ${{ matrix.admin == 'true' }}
3233
run: |
33-
Start-Process -FilePath ${{ matrix.shell }} -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File windows-telemetry-blocker.ps1 -dryrun' -Verb RunAs
34+
Start-Process -FilePath ${{ matrix.shell }} -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File rls-script.ps1 -dryrun' -Verb RunAs
3435
shell: powershell
3536
continue-on-error: true
3637

38+
3739
- name: Run as non-admin (if required)
3840
if: ${{ matrix.admin == 'false' }}
3941
run: |
40-
${{ matrix.shell }} -NoProfile -ExecutionPolicy Bypass -File windows-telemetry-blocker.ps1 -dryrun
42+
${{ matrix.shell }} -NoProfile -ExecutionPolicy Bypass -File rls-script.ps1 -dryrun
4143
shell: powershell
4244
continue-on-error: true
4345

@@ -49,4 +51,3 @@ jobs:
4951
telemetry-blocker.log
5052
telemetry-blocker-errors.log
5153
telemetry-blocker-report.md
52-
if-no-files-found: ignore

.github/workflows/safety-check.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,34 +43,38 @@ jobs:
4343
}
4444
}
4545
46+
4647
- name: Check for Restore Point Creation
4748
shell: pwsh
4849
run: |
49-
$main = Get-Content windows-telemetry-blocker.ps1 -Raw
50+
$main = Get-Content rls-script.ps1 -Raw
5051
if ($main -notmatch 'Checkpoint-Computer') {
5152
throw "Restore point creation (Checkpoint-Computer) missing in main script!"
5253
}
5354
55+
5456
- name: Check for Dry-Run Mode
5557
shell: pwsh
5658
run: |
57-
$main = Get-Content windows-telemetry-blocker.ps1 -Raw
59+
$main = Get-Content rls-script.ps1 -Raw
5860
if ($main -notmatch 'dryrun') {
5961
throw "Dry-run mode not found in main script!"
6062
}
6163
64+
6265
- name: Check for Logging
6366
shell: pwsh
6467
run: |
65-
$main = Get-Content windows-telemetry-blocker.ps1 -Raw
68+
$main = Get-Content rls-script.ps1 -Raw
6669
if ($main -notmatch 'Write-Log') {
6770
throw "Logging (Write-Log) not found in main script!"
6871
}
6972
73+
7074
- name: Check for User Prompts Before Destructive Actions
7175
shell: pwsh
7276
run: |
73-
$main = Get-Content windows-telemetry-blocker.ps1 -Raw
77+
$main = Get-Content rls-script.ps1 -Raw
7478
if ($main -notmatch 'Read-Host') {
7579
Write-Host "[WARNING] No user prompt (Read-Host) found in main script. Ensure destructive actions are confirmed."
7680
}

.github/workflows/uci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
- name: Check Script Version Banner
9595
shell: pwsh
9696
run: |
97-
$main = Get-Content windows-telemetry-blocker.ps1 -Raw
97+
$main = Get-Content rls-script.ps1 -Raw
9898
if ($main -notmatch 'Script Version:') {
99-
throw "Script version banner missing in windows-telemetry-blocker.ps1"
99+
throw "Script version banner missing in rls-script.ps1"
100100
}

0 commit comments

Comments
 (0)