From fcb15a7f13d4f7caad7da4ed18aaeceb76c24bce Mon Sep 17 00:00:00 2001 From: Cannon Lock <49032265+CannonLock@users.noreply.github.com> Date: Thu, 18 Sep 2025 16:18:36 -0500 Subject: [PATCH] Update `actions/checkout` docs Updates the `actions/checkout` doc section to demonstrate how to push a commit using the generated token. My experience was that I came here because I needed to push with a app token so my CI would run after. So an example of how to do that would have been more helpful then a example on how to prevent using this token to push. Closing my other PR as I think this better addresses what I came to the docs looking for. --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f969916..20b5d65 100644 --- a/README.md +++ b/README.md @@ -57,11 +57,13 @@ jobs: with: token: ${{ steps.app-token.outputs.token }} ref: ${{ github.head_ref }} - # Make sure the value of GITHUB_TOKEN will not be persisted in repo's config - persist-credentials: false - - uses: creyD/prettier_action@v4.3 - with: - github_token: ${{ steps.app-token.outputs.token }} + - name: Make File Changes + run: ~ + - name: Push with App Token + run: | + git add . + git commit -m "Auto-generated changes" + git push ``` ### Create a git committer string for an app installation