Use built-in core object in github-script example#43031
Use built-in core object in github-script example#43031ryohighbridge wants to merge 1 commit intogithub:mainfrom
Conversation
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
How to review these changes 👓Thank you for your contribution. To review these changes, choose one of the following options: A Hubber will need to deploy your changes internally to review. Table of review linksNote: Please update the URL for your staging server or codespace. The table shows the files in the
Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server 🤖 This comment is automatically generated. |
There was a problem hiding this comment.
Pull request overview
This pull request simplifies a github-script example in the OIDC documentation by removing the manual require of @actions/core and using the built-in core object that is automatically available in the github-script action environment.
Changes:
- Removed the manual
require('@actions/core')statement and thecoredemovariable - Updated code to use the built-in
coreobject directly forgetIDToken()andsetOutput()methods
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
Why:
Closes:
What's being changed (if available, include any code snippets, screenshots, or gifs):
Check off the following: