From 9ab1dad6bb3c24f5f07662e9904a95df9e518b15 Mon Sep 17 00:00:00 2001 From: Alireza Rezvani Date: Mon, 23 Feb 2026 12:03:41 +0100 Subject: [PATCH] fix(ci): pass PROJECTS_TOKEN to fix automated commits + remove duplicate checkout Fixes PROJECTS_TOKEN passthrough for git-auto-commit-action and removes duplicate checkout step in pr-issue-auto-close workflow. --- .github/workflows/pr-issue-auto-close.yml | 2 -- .github/workflows/sync-codex-skills.yml | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-issue-auto-close.yml b/.github/workflows/pr-issue-auto-close.yml index da6dbe0..1477c70 100644 --- a/.github/workflows/pr-issue-auto-close.yml +++ b/.github/workflows/pr-issue-auto-close.yml @@ -29,8 +29,6 @@ jobs: exit 0 fi fi - - name: Checkout repository - uses: actions/checkout@v4 - name: Extract linked issues from PR body id: extract_issues diff --git a/.github/workflows/sync-codex-skills.yml b/.github/workflows/sync-codex-skills.yml index 358473f..e7fdb5c 100644 --- a/.github/workflows/sync-codex-skills.yml +++ b/.github/workflows/sync-codex-skills.yml @@ -28,7 +28,8 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PROJECTS_TOKEN }} +>>>>>>> b6f463f (fix(ci): pass PROJECTS_TOKEN to fix automated git push and dedup checkout step) - name: Set up Python uses: actions/setup-python@v5 @@ -62,6 +63,7 @@ jobs: file_pattern: ".codex/*" commit_user_name: "github-actions[bot]" commit_user_email: "github-actions[bot]@users.noreply.github.com" + token: ${{ secrets.PROJECTS_TOKEN }} - name: Warn if main has drift if: steps.check_changes.outputs.has_changes == 'true' && github.ref == 'refs/heads/main'