This is an automated email from the ASF dual-hosted git repository.

ppkarwasz pushed a commit to branch 2.26.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit b2a3c281f58832b8ec3c3ad08e2baf3cadd370b4
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Wed Sep 2 22:23:23 2026 +0200

    Change `build` and `codeql-analysis` triggers
    
    Ports #4212 to 2.26.x
    
    Co-Authored-By: Claude Fable 5.1 <[email protected]>
    Claude-Session: https://claude.ai/code/session_01R7BoincUoL8YtZsf3xjvuf
---
 .github/workflows/build.yaml           | 18 +++++++++++++-----
 .github/workflows/codeql-analysis.yaml | 16 +++++++++++++---
 2 files changed, 26 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 959923248e..834f070cd9 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -19,13 +19,21 @@ name: build
 
 on:
   push:
+    # These filters apply only to the current branch (`2.26.x`) and new 
branches cut from it:
+    # only `release/2.26.*` branches automatically inherit this workflow.
     branches:
-      - "2.x"
-      - "2.25.x"
-      - "release/2*"
+      - "2.26.x"
+      - "release/2.26.*"
   pull_request:
 
-permissions: read-all
+# Cancel in-progress runs when a newer commit lands on the same PR; pushes to 
2.x run to completion.
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
+# Default permissions for each job.
+# Additional permissions should be assigned on a per-job basis.
+permissions: { }
 
 jobs:
 
@@ -40,7 +48,7 @@ jobs:
 
   deploy-snapshot:
     needs: build
-    if: github.repository == 'apache/logging-log4j2' && github.ref_name == 
'2.x'
+    if: github.repository == 'apache/logging-log4j2' && github.ref_name == 
'2.26.x'
     uses: 
apache/logging-parent/.github/workflows/deploy-snapshot-reusable.yaml@gha/v0
     # Secrets for deployments
     secrets:
diff --git a/.github/workflows/codeql-analysis.yaml 
b/.github/workflows/codeql-analysis.yaml
index 7aaf9ac660..3613001977 100644
--- a/.github/workflows/codeql-analysis.yaml
+++ b/.github/workflows/codeql-analysis.yaml
@@ -19,13 +19,23 @@ name: codeql-analysis
 
 on:
   push:
-    branches: [ "2.x", "main" ]
+    # These filters apply only to the current branch (`2.26.x`) and new 
branches cut from it:
+    # only `release/2.26.*` branches automatically inherit this workflow.
+    branches:
+      - "2.26.x"
+      - "release/2.26.*"
   pull_request:
-    branches: [ "2.x", "main" ]
   schedule:
     - cron: '32 12 * * 5'
 
-permissions: read-all
+# Cancel in-progress runs when a newer commit lands on the same PR; pushes to 
2.x run to completion.
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
+# Default permissions for each job.
+# Additional permissions should be assigned on a per-job basis.
+permissions: { }
 
 jobs:
 

Reply via email to