Open SphenicPaul opened 3 years ago
If PAT is a key that should not be shared then it should be a PSCredential
so it is encrypted in the compiled configuration. Otherwise it will be visible in the compiled configuration making it a security problem.
Logging this issue off the back of the initial PR (#7) so it's logged and not missed...
Details of the scenario you tried and the problem that is occurring
String data type isn't a suitable/ideal type to hold/pass Personal Access Tokens.
Suggested solution to the issue
Update
$Pat
variables/parameters to use aPSCredential
type, although unclear of most suitable option at present:$Pat
and$ApiUri
parameter (where$Pat
is updated to be aPSCredential
type)ApiUri
andPAT
information, and which is passed between functions