You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are developing a custom script extension that will be deployed as a policy. To achieve this, we need to retrieve PowerShell code from a private GitHub repository. The PowerShell script is responsible for installing the required extension.
While the code snippet provided works for public repositories (sample below) , we are seeking guidance on how to securely pass the Personal Access Token (PAT) to download the PowerShell script from a private repository.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
We are developing a custom script extension that will be deployed as a policy. To achieve this, we need to retrieve PowerShell code from a private GitHub repository. The PowerShell script is responsible for installing the required extension.
While the code snippet provided works for public repositories (sample below) , we are seeking guidance on how to securely pass the Personal Access Token (PAT) to download the PowerShell script from a private repository.
Thanks,
Praveen
Beta Was this translation helpful? Give feedback.
All reactions