Skip to content

Support certificate bypass on older PowerShell hosts - #819

Merged
StuartFerguson merged 1 commit into
mainfrom
bug/daily-settlement-token-cert-bypass-compat
Oct 1, 2026
Merged

StuartFerguson merged 1 commit into
mainfrom
bug/daily-settlement-token-cert-bypass-compat

Conversation

@StuartFerguson

Copy link
Copy Markdown
Member

Summary

  • use the native -SkipCertificateCheck switch when the host supports it
  • fall back to a temporarily scoped certificate-validation callback on older PowerShell hosts
  • restore the previous callback after the token request

Context

PR #818 added the token certificate bypass but the deployed host does not expose the native parameter, causing the job to fail during token acquisition.

Verification

  • Settlement processing Pester tests: 2 passed, 0 failed
  • PowerShell syntax validation passed
  • git diff --check passed

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@StuartFerguson
StuartFerguson merged commit 72fb110 into main Oct 1, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant