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
Honor ADOQR_OUTPUT_PATH env var as the default -OutputPath
The Dockerfile sets ENV ADOQR_OUTPUT_PATH=/reports and exposes /reports as a
VOLUME, but invoke-adoqr.ps1 never read that variable: -OutputPath defaulted to
$PSScriptRoot/assessments (i.e. /opt/adoqr/assessments in the image). Running
the container as documented without an explicit -OutputPath wrote reports to an
ephemeral in-container folder that was discarded on --rm, leaving the mounted
/reports volume empty.
Resolve the effective output directory with the precedence
-OutputPath argument > $env:ADOQR_OUTPUT_PATH > assessments/ next to the script,
via a small testable helper (Resolve-AdoqrOutputPath). An explicit -OutputPath
still takes precedence, so existing usage is unchanged.
- Add Resolve-AdoqrOutputPath and wire it into Main using PSBoundParameters to
distinguish an explicit -OutputPath from the default.
- Update -OutputPath comment-based help and the Dockerfile usage notes.
- Add Pester coverage (tests/OutputPath.Tests.ps1) and register the helper in
the test bootstrap.
- Record the fix in CHANGELOG under Unreleased.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ and this project adheres to Semantic Versioning.
12
12
- Top navigation now includes an Extensions anchor placed before Run Comparison for faster access to extension findings.
13
13
14
14
### Fixed
15
+
-`-OutputPath` now falls back to the `ADOQR_OUTPUT_PATH` environment variable when it is not supplied, so the Docker image's `ENV ADOQR_OUTPUT_PATH=/reports` (previously read by nothing) is honored. Reports generated from the container now land on the mounted `/reports` volume by default instead of an ephemeral in-container folder that was discarded on `--rm`. An explicit `-OutputPath` still takes precedence.
15
16
- 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
17
- 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
18
- 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