Skip to content

Commit 3b67a40

Browse files
Use built-in core object in github-script example (#43031)
1 parent dd4cc43 commit 3b67a40

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

content/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-cloud-providers.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,8 @@ jobs:
8080
id: idtoken
8181
with:
8282
script: |
83-
const coredemo = require('@actions/core')
84-
let id_token = await coredemo.getIDToken()
85-
coredemo.setOutput('id_token', id_token)
83+
let id_token = await core.getIDToken()
84+
core.setOutput('id_token', id_token)
8685
```
8786
8887
### Requesting the JWT using environment variables

0 commit comments

Comments
 (0)