-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setup_secrets: Pass -clear
as switch
#194
Conversation
No New Or Fixed Issues Found |
Is it the casing? https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_booleans suggests lowercase T. |
@withinfocus I thought that too, but I couldn't trigger the clear with |
@Hinton That works: So my guess is that when passing the parameters in from a unix shell to the |
I switched the bool to switch which removes the need to include |
f5d520e
to
4e4a299
Compare
Deploying with
|
Latest commit: |
739d98a
|
Status: | ✅ Deploy successful! |
Preview URL: | https://242b8692.contributing-docs.pages.dev |
Branch Preview URL: | https://setup-secrets-clear-param.contributing-docs.pages.dev |
-clear
boolean as true
-clear
as switch
|
Co-authored-by: Oscar Hinton <[email protected]>
4d1b99f
to
39c2dbe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good!
…ps/migrations * 'master' of github.com:bitwarden/contributing-docs: (37 commits) chore(deps): update dependency cspell to v7.3.7 (#206) [PM-4161] Fix build command on README.md (#207) Fixed typo in csharp.md (#180) Update our EDD process documentation (#166) chore(deps): update actions/checkout action to v4.1.0 (#204) chore(deps): lock file maintenance (#205) fix(deps): update npm minor to v2.4.3 (#203) use dash when running self-hosted dotnet profile (#202) chore(deps): update actions/checkout action to v4 (#191) chore(deps): lock file maintenance (#201) chore(deps): update npm minor (#195) fix(deps): update dependency docusaurus-lunr-search to v3 (#200) setup_secrets: Pass `-clear` as switch (#194) Update KeyConnector docs for ARM Macs (#171) Lock file maintenance (#193) Update dependency cspell to v7.3.5 (#192) Update dependency ubuntu to v22 (#174) Update gh minor (#181) Feature flag documentation updates and mentions about new local override capabilities (#187) Update npm minor (#188) ... # Conflicts: # custom-words.txt # docs/contributing/database-migrations/edd.mdx # docs/contributing/database-migrations/index.md
Objective
While going through the onboarding, I had to reset my user secret several times. To do so, I was trying to use the
-clear
parameter as specified in the docs:pwsh setup_secrets.ps1 -clear:$True
However, I noticed that this part of the script was never being hit.
I changed
$True
totrue
and it started to work: