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

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


The following commit(s) were added to refs/heads/release-2.x by this push:
     new ae3f19a  LOG4J2-3085 Skip certain CI jobs for external PRs.
ae3f19a is described below

commit ae3f19ac66acf711831535f5db36efd449d5f47a
Author: Volkan Yazici <[email protected]>
AuthorDate: Wed Aug 4 16:22:27 2021 +0200

    LOG4J2-3085 Skip certain CI jobs for external PRs.
---
 .github/workflows/main.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index bb16f57..32a02b2 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -66,6 +66,9 @@ jobs:
         run: ./mvnw -V -B --no-transfer-progress -e -DtrimStackTrace=false 
-Dmaven.test.failure.ignore=true -Dsurefire.rerunFailingTestsCount=1 
--global-toolchains .github/workflows/maven-toolchains.xml verify
 
       - name: Publish Test Results
+        # If the CI run is not initiated from the primary repository, it is 
highly likely that this is a PR from a user who doesn't have commit rights.
+        # Hence, skip this step to avoid permission failures.
+        if: github.repository == 'apache/logging-log4j2'
         uses: scacap/action-surefire-report@v1
         with:
           github_token: ${{ secrets.GITHUB_TOKEN }}

Reply via email to