Tags: cisagov/ScubaGear
Tags
Update run_update_opa.yaml workflow to use/update new ScubaConfigDefa… …ults.json file (#1936) * switch to reading/updating the scubaconfigdefaults.json file instead of scubaconfig.psm1 * modify update-opa.tests.ps1 * add some new helpers methods to ScubaConfig.psm1; update Update-Opa.ps1 and Support.psm1 to use ScubaConfig class * Set-Content was overwriting the entire json; use regex to only replace the lines we want * fix error condition that failed due to update to using raw json * fix Update-Opa.ps1 * update regex * update update-opa unit tests * add warning statements to test use-azuresigntool failures * remove erroneous Write-Error = ... statements which are invalid * readd write-error for CRITICAL: Version issues detected that may prevent ScubaGear from running! Issues Found: Microsoft.Graph.Authentication above maximum required version Action Required: Run 'Reset-ScubaGearDependencies' to fix these version issues. * debug use-azuresigntool * remove empty ps scripts * bump OPAVersion to 1.12.2 * update OPAVersion unit test to be less brittle * simplify logic for adding previous default OPA version to list
Add the report UUID to the ScubaResults.json filename (#1426) * Initial implementation of adding UUID to the file name * Add back missing ConvertFrom-Json call * Mock Get-ChildItem in unit tests * Document addition of UUID to ScubaResults file name * Add unit tests for when there are multiple ScubaResults*.json files * Correct minor typo in documentation * remove wildcard search in ConvertTo-ResultsCSV code path * add error handling of window path length limit errors * fix some of the tests * fix the all the current broken unit tests * additional unit tests * add back in accidentally removed fields in config * complete lorem ipsum * todo message * remove UUID truncation for now * first draft * add truncation param to documentation * spacing * fix failing test cases; handle full truncation case * make code consistent; add code comments to describe it's purpose * review feedback; point to additional options in the error message * PR Review: Fix absolute path check; fix config file override * review feedback; move new parameter in alphabetical order in docs * keep documentation consistent * remove configuration paramset from scubacached * code comments for the new edge case * Remove OBE unit test * Remove duplicate word * fix typos, wording and formatting in config * Refactor truncation logic into own function * rm duplicate text from PowerShell as well * captialize * remove long path check let the set-content naturally error out * add long path error check within the catch block * remove todo * Add UUID to mock data for cached tests * Fix unit tests * Remove commented out validation code. Co-authored-by: mitchelbaker-cisa <149098823+mitchelbaker-cisa@users.noreply.github.com> * add validation set to check invalid config file parameter * Remove stacktrace --------- Co-authored-by: buidav <105074908+buidav@users.noreply.github.com> Co-authored-by: mitchelbaker-cisa <149098823+mitchelbaker-cisa@users.noreply.github.com>
Add Unblock-File workaround for execution warnings (#881) * Add Unblock-File workaround for execution warnings * Fix doublespacing issue Co-authored-by: David Bui <105074908+buidav@users.noreply.github.com> --------- Co-authored-by: David Bui <105074908+buidav@users.noreply.github.com>
PreviousNext