From 83e0b081f39b5c368659d474fc155ef3069e3544 Mon Sep 17 00:00:00 2001 From: Vladimir Eremin Date: Sun, 23 Aug 2026 18:53:35 +0300 Subject: [PATCH] chore(ci): configure GitOps deployments for adam-at-deytenit bot actor with GITOPS_TOKEN (#44) ### Summary of Changes - Configured `ci/scripts/deploy-gitops.sh` git user to `adam-at-deytenit` (`221188529+adam-at-deytenit@users.noreply.github.com`) - Updated checkout token in `services-docs-next-required.yml` and `services-www-releases-dispatch-release.yml` to use `secrets.GITOPS_TOKEN || secrets.GITHUB_TOKEN` - Updated Ruleset 13619278 (`next/enforced`) bypass list to allow `adam-at-deytenit` exclusively. --- .github/workflows/services-docs-next-required.yml | 2 +- .github/workflows/services-www-releases-dispatch-release.yml | 2 +- ci/scripts/deploy-gitops.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/services-docs-next-required.yml b/.github/workflows/services-docs-next-required.yml index 7289f0f..7f52407 100644 --- a/.github/workflows/services-docs-next-required.yml +++ b/.github/workflows/services-docs-next-required.yml @@ -105,7 +105,7 @@ jobs: uses: actions/checkout@v4 with: ref: next - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.GITOPS_TOKEN || secrets.GITHUB_TOKEN }} - name: Setup Kustomize uses: imranismail/setup-kustomize@v2 diff --git a/.github/workflows/services-www-releases-dispatch-release.yml b/.github/workflows/services-www-releases-dispatch-release.yml index f975d46..261332c 100644 --- a/.github/workflows/services-www-releases-dispatch-release.yml +++ b/.github/workflows/services-www-releases-dispatch-release.yml @@ -320,7 +320,7 @@ jobs: uses: actions/checkout@v4 with: ref: next - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.GITOPS_TOKEN || secrets.GITHUB_TOKEN }} - name: Setup Kustomize uses: imranismail/setup-kustomize@v2 diff --git a/ci/scripts/deploy-gitops.sh b/ci/scripts/deploy-gitops.sh index f8edb41..7b4167b 100755 --- a/ci/scripts/deploy-gitops.sh +++ b/ci/scripts/deploy-gitops.sh @@ -22,8 +22,8 @@ cd "$APP_DIR" kustomize edit set image "ghcr.io/deytenit/ermnvldmr.com/${SERVICE}=ghcr.io/deytenit/ermnvldmr.com/${SERVICE}:${TAG}" cd "$ROOT_DIR" -git config user.name "github-actions[bot]" -git config user.email "github-actions[bot]@users.noreply.github.com" +git config user.name "adam-at-deytenit" +git config user.email "221188529+adam-at-deytenit@users.noreply.github.com" git add "ci/k8s/apps/${SERVICE}/kustomization.yaml" if git diff --staged --quiet; then