Skip to content

Stop returning the PAT in resource output - #17

Merged
mimachniak merged 1 commit into
mimachniak:mainfrom
JoePhanDro:fix/remove-pat-from-output
Oct 30, 2026
Merged

mimachniak merged 1 commit into
mimachniak:mainfrom
JoePhanDro:fix/remove-pat-from-output

Conversation

@JoePhanDro

Copy link
Copy Markdown
Contributor

All Get/Test/Set results of the native DSC v3 scripts and the Get() methods of the class-based resources echoed the personal access token, leaking it into dsc output, CI logs and reports.

  • Remove pat from all result objects (7 scripts, module classes)
  • Mark pat as writeOnly in the resource manifests
  • Drop pat from the schema's required list: dsc validates resource output against the schema, so a required pat would fail every call. The scripts still reject a missing PAT at runtime.
  • Add regression tests for the above
  • Fix invalid "(if ...)" expression in the native test setup that broke the local dsc download

All Get/Test/Set results of the native DSC v3 scripts and the Get()
methods of the class-based resources echoed the personal access token,
leaking it into dsc output, CI logs and reports.

- Remove pat from all result objects (7 scripts, module classes)
- Mark pat as writeOnly in the resource manifests
- Drop pat from the schema's required list: dsc validates resource
  output against the schema, so a required pat would fail every call.
  The scripts still reject a missing PAT at runtime.
- Add regression tests for the above
- Fix invalid "(if ...)" expression in the native test setup that broke
  the local dsc download
@mimachniak
mimachniak merged commit d3a5a94 into mimachniak:main Oct 30, 2026
1 check failed
@mimachniak

Copy link
Copy Markdown
Owner

thx for update

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.

2 participants