Skip to content

Replace PAT with WIF in publish step #4984

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

Merged
merged 3 commits into from
May 3, 2024
Merged

Replace PAT with WIF in publish step #4984

merged 3 commits into from
May 3, 2024

Conversation

andyleejordan
Copy link
Member

@andyleejordan andyleejordan commented May 3, 2024

Update dependencies now that we don't have Dependabot, and use --azure-credential with a service connection in Azure DevOps to publish.

Since we can no longer use Dependabot due to CFS,
we just have to update manually (with `--save`, but automatic).
Which means we need `^` semver so `npm update` does what we expect
(which is to update to the latest minor version).
Except for the VS Code types, those use `~` so we only get patch updates.
This is because it must match our engine version of VS Code.

Also just omit the resolved registry from the lockfile
(since the replace option didn't really work as expected)
Since we can no longer use Dependabot due to CFS,
we just have to update manually (with `--save`, but automatic).
Which means we need `^` semver so `npm update` does what we expect
(which is to update to the latest minor version).
Except for the VS Code types, those use `~` so we only get patch updates.
This is because it must match our engine version of VS Code.

Also just omit the resolved registry from the lockfile
(since the replace option didn't really work as expected).
The latest version of the tool will use the Azure API to grab a token,
it just needs to be run in a context where Azure CLI is authenticated.
I think.
@andyleejordan andyleejordan changed the title Replace Replace PAT with WIF in publish step May 3, 2024
@andyleejordan andyleejordan marked this pull request as ready for review May 3, 2024 22:24
@andyleejordan andyleejordan requested a review from a team May 3, 2024 22:24
@andyleejordan andyleejordan requested a review from a team as a code owner May 3, 2024 22:24
@andyleejordan andyleejordan merged commit c3c4e3b into main May 3, 2024
6 checks passed
@andyleejordan andyleejordan deleted the use-wif branch May 3, 2024 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant