From b0251ed44b88a334f8021828bf8a1d1490a20bc8 Mon Sep 17 00:00:00 2001 From: Ryo Takahashi Date: Thu, 19 Feb 2026 10:32:47 +0900 Subject: [PATCH] Use built-in core object in github-script example Replace manual require of @actions/core with the built-in core object that is automatically available in github-script action. This provides a cleaner and more straightforward approach. Reference: https://github.com/actions/github-script?tab=readme-ov-file#this-action --- .../security-harden-deployments/oidc-in-cloud-providers.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/content/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-cloud-providers.md b/content/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-cloud-providers.md index d8d0d4d4b6d0..d616141a8815 100644 --- a/content/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-cloud-providers.md +++ b/content/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-cloud-providers.md @@ -80,9 +80,8 @@ jobs: id: idtoken with: script: | - const coredemo = require('@actions/core') - let id_token = await coredemo.getIDToken() - coredemo.setOutput('id_token', id_token) + let id_token = await core.getIDToken() + core.setOutput('id_token', id_token) ``` ### Requesting the JWT using environment variables