From d67ede9d43640b4fc3947c79f07abcc0a8b6bb98 Mon Sep 17 00:00:00 2001 From: KC Berg Date: Wed, 9 Jul 2025 03:21:00 -0600 Subject: [PATCH] ci: use GH_DEPLOY_USER and GH_DEPLOY_EMAIL secrets for git user attribution in CI and release workflows --- .github/workflows/ci.yml | 8 ++++++++ .github/workflows/release.yml | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3ab708..2962357 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,6 +40,10 @@ jobs: curl -v -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ https://api.github.com/repos/${{ github.repository }} shell: bash + - name: Set git user for hawkdeploy + run: | + git config user.name "${{ secrets.GH_DEPLOY_USER }}" + git config user.email "${{ secrets.GH_DEPLOY_EMAIL }}" - name: Set up git for pushing run: | git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git @@ -58,6 +62,10 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Set git user for hawkdeploy + run: | + git config user.name "${{ secrets.GH_DEPLOY_USER }}" + git config user.email "${{ secrets.GH_DEPLOY_EMAIL }}" - name: Set up git for pushing run: | git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3cfab40..246d0f0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,10 +59,10 @@ jobs: - name: Set up git for pushing run: | git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git - - name: Set git user for GitHub Actions bot + - name: Set git user for deploy run: | - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config user.name "${{ secrets.GH_DEPLOY_USER }}" + git config user.email "${{ secrets.GH_DEPLOY_EMAIL }}" - name: Build package run: | python -m build