File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -124,8 +124,9 @@ jobs:
124
124
needs : build
125
125
environment : publish-vscode-marketplace
126
126
runs-on : ubuntu-latest
127
- env :
128
- VSCE_TOKEN : ${{ secrets.VSCE_TOKEN }}
127
+ permissions :
128
+ contents : read
129
+ id-token : write
129
130
steps :
130
131
- name : Checkout
131
132
uses : actions/checkout@v4
@@ -139,9 +140,19 @@ jobs:
139
140
with :
140
141
name : vscode-codeql-extension
141
142
143
+ - name : Azure User-assigned managed identity login
144
+ uses : azure/login@v2
145
+ with :
146
+ client-id : ${{ secrets.AZURE_CLIENT_ID }}
147
+ tenant-id : ${{ secrets.AZURE_TENANT_ID }}
148
+ allow-no-subscriptions : true
149
+
142
150
- name : Publish to Registry
143
- run : |
144
- npx @vscode/vsce publish -p $VSCE_TOKEN --packagePath *.vsix
151
+ uses : azure/cli@v2
152
+ with :
153
+ azcliversion : latest
154
+ inlineScript : |
155
+ npx @vscode/vsce publish --azure-credential --packagePath *.vsix
145
156
146
157
open-vsx-publish :
147
158
name : Publish to Open VSX Registry
You can’t perform that action at this time.
0 commit comments