I’m creating a PowerShell step template which is currently updating Confluence documentation with variables and details about the deployment, but I’m having a really hard time trying to prevent sensitive variables from being output to Confluence. What I’m trying to do is find a variable type, but it looks like by default all $OctopusParameters variables are just strings in a collection?
Ideally I would like if I was able to do something like $OctopusParameters[‘mySecret’].Type or something to verify whether it’s a secret so I can obscure it before outputting.
I know this is a bit of an edge case but I find it weird that there isn’t a way to check a variable type. Any suggestions?