Skip to content

Protect disk serials and install review skills - #16

Open
vartaxe wants to merge 15 commits into
mainfrom
copilot/review-and-skills-2026-10-17
Open

vartaxe wants to merge 15 commits into
mainfrom
copilot/review-and-skills-2026-10-17

Conversation

@vartaxe

@vartaxe vartaxe commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Install github-actions-hardening, pester-should-migration, docs-sync-audit, github-release, and batch-files.
  • Remove disk serial values from task-sequence log messages while preserving internal identity and selection checks.
  • Add regression coverage and regenerate CHECKSUMS.txt.

Validation

  • Windows PowerShell 5.1 / Pester 6.2.0: 79 passed, 0 failed; PSScriptAnalyzer and parsing passed.
  • Root and packaged scripts are byte-identical; checksum verification passed.
  • Focused docs-drift test and git diff --check passed.

vartaxe and others added 2 commits October 17, 2026 11:45
Remove serial numbers from task-sequence logs without changing identity checks, add regression coverage, and install the selected skills.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Broken batch control flow, unsafe temporary-directory cleanup, and audit and release guidance defects remain unresolved.

8 open issues
What changed in this PR

Protects disk serials in ConfigMgr task-sequence logs while preserving identity checks, and adds development and review skills.

Changes:

  • Removes serial values from inventory and pre-erase messages.
  • Adds regression tests for logging privacy and serial-change rejection.
  • Installs five skills and refreshes checksums.
File Description
Tests/​Invoke-OSDDiskLayout.Tests.ps1 Adds privacy and identity-check regressions.
Scripts/​Invoke-OSDDiskLayout.ps1 Removes serials from packaged-script logs.
Invoke-OSDDiskLayout.ps1 Applies matching logging changes.
CHECKSUMS.txt Refreshes hashes and includes new files.
.github/​skills/​pester-should-migration/​SKILL.md Adds assertion-migration guidance.
.github/​skills/​pester-should-migration/​references/​assertion-map.md Documents assertion mappings.
.github/​skills/​github-release/​SKILL.md Adds release preparation guidance.
.github/​skills/​github-release/​references/​semver-rules.md Documents versioning rules.
.github/​skills/​github-release/​references/​commit-classification.md Adds commit-classification guidance.
.github/​skills/​github-actions-hardening/​SKILL.md Adds workflow security guidance.
.github/​skills/​github-actions-hardening/​references/​triggers-and-privilege.md Explains workflow trust boundaries.
.github/​skills/​github-actions-hardening/​references/​supply-chain.md Covers action and artifact security.
.github/​skills/​github-actions-hardening/​references/​report-format.md Defines security-report formatting.
.github/​skills/​github-actions-hardening/​references/​permissions-and-tokens.md Covers token permissions and secrets.
.github/​skills/​github-actions-hardening/​references/​injection.md Documents injection prevention.
.github/​skills/​docs-sync-audit/​tests/​test_docs_drift.py Adds scanner regression coverage.
.github/​skills/​docs-sync-audit/​SKILL.md Adds documentation-audit guidance.
.github/​skills/​docs-sync-audit/​scripts/​docs_drift.py Implements documentation drift checks.
.github/​skills/​batch-files/​SKILL.md Adds batch scripting guidance.
.github/​skills/​batch-files/​references/​windows-subsystem-on-linux.md Adds WSL resources.
.github/​skills/​batch-files/​references/​tools-and-resources.md Lists Windows tooling resources.
.github/​skills/​batch-files/​references/​msys2.md Adds MSYS2 references.
.github/​skills/​batch-files/​references/​cygwin.md Adds Cygwin references.
.github/​skills/​batch-files/​references/​batch-files-and-functions.md Documents batch scripting techniques.
.github/​skills/​batch-files/​assets/​task.txt Adds an automation-task template.
.github/​skills/​batch-files/​assets/​library.txt Adds a reusable-library template.
.github/​skills/​batch-files/​assets/​executable.txt Adds a command-line tool template.

Review effort: Balanced

Comment thread .github/skills/batch-files/SKILL.md Resolved
Comment thread .github/skills/github-release/SKILL.md Resolved
vartaxe and others added 2 commits November 1, 2026 01:38
Correct batch templates, docs auditing, Actions examples, and release guidance; refresh source checksums.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vartaxe and others added 2 commits November 1, 2026 03:01
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved correctness issues cause the documentation audit to misvalidate commands and paths, while batch code corrupts arguments containing exclamation marks and accepts invalid widths.

2 open issues
4 previously missed issues

In code that hasn't changed since last review

Medium severity Disable delayed expansion while parsing target paths

.github/​skills/​batch-files/​SKILL.md:435

Delayed expansion is enabled before arguments are parsed, so a valid target path containing !, such as C:\data\wow!\reports, loses that character when %* or %~2 is expanded. This makes the template process a different path than the caller supplied. Leave delayed expansion disabled here; this example does not use any !variable! expressions.

Medium severity Scope Make targets to the applicable Makefile

.github/​skills/​docs-sync-audit/​scripts/​docs_drift.py:173

Make targets from every Makefile are pooled into one set, so a target in an unrelated subdirectory can hide a broken documented command. For example, with only help in the root Makefile and deploy in tools/Makefile, a root README's make deploy produces no finding even though that invocation fails. Keep targets keyed by Makefile directory and select the applicable Makefile using the invocation's working directory and any -C/-f options.

Medium severity Skip Make options when parsing targets

.github/​skills/​docs-sync-audit/​scripts/​docs_drift.py:441

CMD_MAKE captures the first token after make, including options. Consequently, a valid documented command such as make -j2 package_only produces a high-severity missing-target finding for -j2; the actual target is never checked. Parse and skip make options and their arguments before validating the target names.

Medium severity Resolve scripts using the tracked working directory

.github/​skills/​docs-sync-audit/​scripts/​docs_drift.py:455

Script-path checks ignore the directory changes already tracked in npm_cwd. For example, a root README containing cd tools followed by python check.py is reported as a missing script even when tools/check.py exists: the resolver checks only the repository root, documentation directory, and skill root. Resolve script invocations against the tracked shell working directory after an explicit directory change, rather than those fallback locations.

8 resolved since last review

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The checksum manifest omits Tests/BatchLibrary.Tests.ps1 and contains stale hashes for three maintained files, causing validation to fail even if tests pass.

1 open issue
2 resolved since last review

Review effort: Balanced

Comment thread CHECKSUMS.txt Resolved
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed to evaluate unpublished findings affecting command-validation accuracy and failure-status handling.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Critical validation gaps silently accept unknown Make targets and missing scripts in selected npm workspaces, while rejected batch-function calls can still return success.

3 open issues

Review effort: Balanced

vartaxe and others added 2 commits November 1, 2026 06:41
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@cmendesvdl
cmendesvdl requested a balanced review from Copilot November 1, 2026 05:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Shell parsing and directory tracking can produce false or missed drift findings, while delayed expansion can corrupt batch arguments and cause invalid widths to be accepted.

4 open issues
3 resolved since last review

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Uninitialized cleanup state lets nested help/version invocations delete a parent’s temporary directory, while argument scanning produces false missing-command and missing-file findings.

3 open issues
4 resolved since last review

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Embedded quotes in batch-library values can cause unintended CMD execution, while make-option parsing and tag verification also contain unresolved correctness errors.

3 open issues
3 resolved since last review

Review effort: Balanced

Comment thread .github/skills/github-release/SKILL.md Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The command scanner can falsely report missing scripts because workspace paths ignore the effective command directory and options on continued lines are lost.

2 open issues
3 resolved since last review

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because the published review omits moderate findings involving keyword-based environment lookups and incorrectly successful padRight calls with missing or empty widths.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Active CMD escaping defects can corrupt caret-only arguments and cause filename metacharacters to execute unintended commands during version output.

2 open issues

Review effort: Balanced

goto _removeBatchVariablesMyTool
)
if /i "%_parOneMyTool%"=="-v" (
echo %_scriptNameMyTool% version %_versionMyTool%
Comment on lines +39 to +41
if "%_delayedExpansionMyLib%"=="1" set "_argOneMyLib=%_argOneMyLib:^=^^%"
if "%_delayedExpansionMyLib%"=="1" set "_argTwoMyLib=%_argTwoMyLib:^=^^%"
if "%_delayedExpansionMyLib%"=="1" set "_argThreeMyLib=%_argThreeMyLib:^=^^%"

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants