You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gn...@apache.org on 2026/09/18 13:36:46 UTC
(maven) branch master updated: fix: fall back to github.token when GH_TOKEN secret is not set (#13183)
This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push:
new 87aeea4ebe fix: fall back to github.token when GH_TOKEN secret is not set (#13183)
87aeea4ebe is described below
commit 87aeea4ebe7926cd502691729f5c41ec79d9e53a
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Fri Sep 18 15:36:41 2026 +0200
fix: fall back to github.token when GH_TOKEN secret is not set (#13183)
secrets.GH_TOKEN is not configured on apache/maven, causing gh pr create
to fail with exit code 4. Fall back to github.token so the workflow can
create PRs. Note: PRs opened with github.token won't auto-trigger CI
(GitHub restriction); they will need a manual trigger or label.
---
.github/workflows/update-lifecycle-plugins.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/update-lifecycle-plugins.yml b/.github/workflows/update-lifecycle-plugins.yml
index 6ae97df92d..5e11f779a9 100644
--- a/.github/workflows/update-lifecycle-plugins.yml
+++ b/.github/workflows/update-lifecycle-plugins.yml
@@ -57,7 +57,7 @@ jobs:
- name: Open or update pull request
if: ${{ !cancelled() }}
env:
- GH_TOKEN: ${{ secrets.GH_TOKEN }}
+ GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }}
run: |
BRANCH="update/lifecycle-plugins-${{ matrix.branch }}"
if git diff --quiet impl/maven-core/pom.xml; then