#39301: Update manage-caches.md to use ${{ github.token }} in the example#39378
#39301: Update manage-caches.md to use ${{ github.token }} in the example#39378Sharra-writes merged 2 commits intogithub:mainfrom DrEsteban:patch-1
Conversation
This is better than implying/asking the user to create a secret called GITHUB_TOKEN, which is kinda the legacy way of giving Actions the ability to call back to Github APIs.
|
Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
There was a problem hiding this comment.
Pull Request Overview
This PR updates the GitHub Actions cache management documentation to use the modern ${{ github.token }} syntax instead of the legacy ${{ secrets.GITHUB_TOKEN }} approach. This change provides a cleaner, more direct way to access the GitHub token in workflows without requiring users to explicitly reference secrets.
Key changes:
- Updated token reference syntax in the cache management example workflow
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. |
|
@DrEsteban Cool, thanks! I'll get it merged once checks are passing. |
|
Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues ⚡ |
Why:
This is better than implying/asking the user to create a secret called GITHUB_TOKEN, which is kinda the legacy way of giving Actions the ability to call back to Github APIs.
Closes: #39301
What's being changed (if available, include any code snippets, screenshots, or gifs):
Usage of
${{ secrets.GITHUB_TOKEN }}to${{ github.token }}.Check off the following: