Skip to content
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

feat: Added support for --azure-credential via VSCE_AZURE_CREDENTIAL environment variable #663

Merged
merged 20 commits into from
Dec 27, 2024

Conversation

JakeShirley
Copy link
Contributor

@JakeShirley JakeShirley commented Jul 26, 2024

vsce added support for --azure-credential a few months ago as Microsoft moves away from long-living PATs. This flag allows authentication to be pulled from the current azure cli context.

This PR also does the following small tweaks:

  • Adds a launch.json to run ava tests for debugging via VS Code
  • Fixes the test publishes an extension in a non-root folder to work on Windows (some hard-coded pathing assumptions were made)
  • Adds a .gitattributes file to force line endings to be LF instead of CRLF. On Windows prettier was complaining about all of the line endings, this change makes git clone/treat all of the files as LF.

Closes #662

lib/verify.js Outdated Show resolved Hide resolved
@JakeShirley JakeShirley marked this pull request as draft July 27, 2024 04:36
@JakeShirley JakeShirley changed the title feat: Added support for --azure-credential via VSCE_USE_AZURE_CREDENTIALS environment variable feat: Added support for --azure-credential via VSCE_AZURE_CREDENTIALS environment variable Jul 27, 2024
@JakeShirley JakeShirley marked this pull request as ready for review July 27, 2024 04:58
@JakeShirley
Copy link
Contributor Author

Validated this with my fork. Working for me! :)

https://github.com/Mojang/minecraft-debugger/actions/runs/10120996092/job/27991427579

@felipecrs
Copy link
Owner

@JakeShirley, thanks a lot. I'm currently on vacation far away from the computer. I should review your PR next week.

@JakeShirley
Copy link
Contributor Author

@felipecrs did you ever get a chance to look at this? :)

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
lib/utils.js Outdated Show resolved Hide resolved
lib/verify-vsce-auth.js Outdated Show resolved Hide resolved
lib/verify-vsce-auth.js Outdated Show resolved Hide resolved
lib/verify-vsce-auth.js Outdated Show resolved Hide resolved
lib/verify-vsce-auth.js Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@felipecrs
Copy link
Owner

@felipecrs did you ever get a chance to look at this? :)

Very sorry for taking this long. I had actually forgot.

@JakeShirley JakeShirley changed the title feat: Added support for --azure-credential via VSCE_AZURE_CREDENTIALS environment variable feat: Added support for --azure-credential via VSCE_AZURE_CREDENTIAL environment variable Sep 6, 2024
@JakeShirley
Copy link
Contributor Author

@felipecrs Finally got around to addressing this feedback :)

@JakeShirley
Copy link
Contributor Author

Did a fresh rebase, hopefully all of the checks are good now :)

@felipecrs felipecrs merged commit cccdd52 into felipecrs:master Dec 27, 2024
4 checks passed
Copy link

🎉 This PR is included in version 6.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for VSCE authentication via the --azure-credential flag
2 participants