From 9f44e41fc6868e8f62e494cf76016d57da7dc66b Mon Sep 17 00:00:00 2001 From: Chris Muntean Date: Thu, 26 Dec 2024 03:02:51 -0700 Subject: [PATCH] Reverted back to calling PAT directly from secrets and specified environment secrets zone --- .github/workflows/release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b61ecd7..3977c6b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,7 @@ on: jobs: build-and-push: runs-on: ubuntu-latest + environment: Release Authentication steps: # Checkout the repository @@ -36,14 +37,12 @@ jobs: # Commit the new version - name: Commit Updated Version - env: - PAT: ${{ secrets.PAT }} run: | git config user.name "GitHub Actions" git config user.email "actions@github.com" git add VERSION git commit -m "Bump version to ${{ env.new_version }}" - git push https://${PAT}@github.com/chrismuntean/Handify.git HEAD:main + git push https://${{ secrets.PAT }}@github.com/chrismuntean/Handify.git HEAD:main # Log in to Docker Hub - name: Log in to Docker Hub