You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Skip auto-open of the report in headless/CI runs (+ ADOQR_NO_OPEN)
The end-of-run auto-open invoked the platform opener unconditionally. On a
headless agent (scheduled pipeline, container, CI) xdg-open is often absent or
fails with no display; under PowerShell 7.4 a missing/failing native command is
a terminating error, which the script's trap turns into a FATAL ERROR — failing
the run even though the assessment and reports succeeded.
Suppress auto-open in non-interactive contexts and make it best-effort:
- Add Test-ShouldAutoOpenReport, honoring ADOQR_NO_OPEN (parity with the Bash
entry point) plus CI / TF_BUILD (GitHub Actions, Azure Pipelines).
- Wrap the opener in try/catch so a missing or failing opener degrades to a
verbose message instead of a fatal error.
- Add Pester coverage, document ADOQR_NO_OPEN in the README, and record the
change in CHANGELOG.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,10 @@ and this project adheres to Semantic Versioning.
10
10
### Added
11
11
- Executive summary now includes an Organization Extensions section that lists all extensions with Installed vs Default classification and installed-first ordering.
12
12
- Top navigation now includes an Extensions anchor placed before Run Comparison for faster access to extension findings.
13
+
-`ADOQR_NO_OPEN` environment variable to suppress auto-opening the executive report (parity with the Bash entry point).
13
14
14
15
### Fixed
16
+
- Auto-opening the executive report is now skipped in non-interactive contexts (when `ADOQR_NO_OPEN` is set, or under CI/Azure Pipelines via `CI`/`TF_BUILD`) and wrapped so a missing or failing opener — e.g. no `xdg-open` on a headless agent — can no longer turn an otherwise successful assessment into a fatal error. This makes scheduled/container runs reliable.
15
17
- Auto-opening the executive HTML report at the end of a run now uses the platform-native opener (`open` on macOS, `xdg-open` on Linux, `Start-Process` on Windows) instead of `Start-Process` for all platforms, which raised `Permission denied` on macOS/Linux because PowerShell tried to execute the `.html` file as a binary.
16
18
- Pipeline Authorization Scope checks now evaluate effective scope using project/org pipeline settings (`enforceJobAuthScope` and `enforceJobAuthScopeForReleases`) before pipeline-level values, preventing false positives when scope is enforced at project level.
17
19
- Organization policy checks now evaluate policy `value` (with safe casing/boolean normalization) and include the new helper functions in parallel runspace serialization, fixing false results for `OAUTH-02` (SSH Access Disabled) and aligning `OAUTH-01` with the actual policy state.
0 commit comments