From 6652a7e889bf18a214c209eb8b5e2c66ce7ff3ad Mon Sep 17 00:00:00 2001 From: Martin Tzvetanov Grigorov Date: Fri, 16 Aug 2024 00:20:46 +0300 Subject: [PATCH] Save settings.xml in ${runner.temp}/ to avoid problems with RAT Signed-off-by: Martin Tzvetanov Grigorov --- .github/workflows/java-publish-snapshot.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/java-publish-snapshot.yml b/.github/workflows/java-publish-snapshot.yml index 031e5fe5333..1533ae9cf62 100644 --- a/.github/workflows/java-publish-snapshot.yml +++ b/.github/workflows/java-publish-snapshot.yml @@ -63,5 +63,5 @@ jobs: ASF_USERNAME: ${{ secrets.NEXUS_USER }} ASF_PASSWORD: ${{ secrets.NEXUS_PW }} run: | - echo "apache.snapshots.https$ASF_USERNAME$ASF_PASSWORD" > settings.xml - mvn --settings settings.xml -U -B -e -fae -ntp -PskipQuality deploy + echo "apache.snapshots.https$ASF_USERNAME$ASF_PASSWORD" > ${runner.temp}/settings.xml + mvn --settings ${runner.temp}/settings.xml -U -B -e -fae -ntp -PskipQuality deploy