From 28da054b9cc32fb3106ba9cd83657d0958ec6bd7 Mon Sep 17 00:00:00 2001 From: Fernando Nogueira Date: Tue, 29 Oct 2024 19:04:47 -0300 Subject: [PATCH] chore: set persist-credentials to false during checkout --- .github/actions/tag-version/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/tag-version/action.yml b/.github/actions/tag-version/action.yml index 5913850..0d9bbb6 100644 --- a/.github/actions/tag-version/action.yml +++ b/.github/actions/tag-version/action.yml @@ -35,6 +35,7 @@ runs: with: fetch-depth: 0 token: ${{ inputs.github_token }} + persist-credentials: 'false' - name: Bump version id: bump_version run: | @@ -45,7 +46,7 @@ runs: git push && git push origin --tags; echo new_tag=$(git describe --tags) >> $GITHUB_OUTPUT env: - GITHUB_TOKEN: ${{ inputs.github_token }} + GITHUB_PAT: ${{ inputs.github_token }} GIT_NAME: ${{ inputs.git_name }} GIT_EMAIL: ${{ inputs.git_email }} REPO_NAME: ${{ inputs.repo_name }}