We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8981f08 commit 33e69c7Copy full SHA for 33e69c7
1 file changed
.github/workflows/release.yml
@@ -3,6 +3,8 @@ name: 🚀 Release
3
on:
4
release:
5
types: [published]
6
+permissions:
7
+ id-token: write # Needed for Azure login with federated token
8
jobs:
9
publish:
10
name: 🚀 Publish to VS Code Marketplace
@@ -14,6 +16,9 @@ jobs:
14
16
shell: pwsh
15
17
run: |
18
$token = $env:ACTIONS_ID_TOKEN_REQUEST_TOKEN
19
+ if (-not $token) {
20
+ throw "ID token not found in environment variables. Did you set permissions: id-token: write in the workflow?"
21
+ }
22
$uri = $env:ACTIONS_ID_TOKEN_REQUEST_URL
23
$irmParams = @{
24
Uri = $uri
0 commit comments