GitHub Actions Build Failure
I'm seeing this error while trying to run a "release" GitHub Action after recently having had the appropriate secrets added to the eclipse-milo
org:
Run mvn -B -Dgpg.passphrase=*** clean deploy -P release
mvn -B -Dgpg.passphrase=*** clean deploy -P release
shell: /usr/bin/bash -e {0}
env:
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.14-7/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.14-7/x64
MAVEN_USERNAME: ***
MAVEN_PASSWORD: ***
/home/runner/work/_temp/4add23ae-0928-4ca8-bb72-0ece6bec8a1a.sh: line 1: X_}6q2IR:f!0o:W.s4r_zq: command not found
/home/runner/work/_temp/4add23ae-0928-4ca8-bb72-0ece6bec8a1a.sh: line 1: IKm]QW~}1=EnY: No such file or directory
Error: Process completed with exit code 1.
from: https://github.com/eclipse-milo/milo/actions/runs/14578380620
The workflow is pretty simple:
name: Maven Release
on:
release:
types: [ created ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Install GPG secret key
run: |
cat <(echo -e "${{ secrets.ORG_GPG_PRIVATE_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Publish package
run: mvn -B -Dgpg.passphrase=${{ secrets.ORG_GPG_PASSPHRASE }} clean deploy -P release
env:
MAVEN_USERNAME: ${{ secrets.ORG_OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.ORG_OSSRH_PASSWORD }}
and is a workflow I've simply borrowed/re-used from other projects, updated with the secret names used for the Eclipse org.
I'm a little worried that part of the above error message is portions of one of the secrets leaking into the log for some reason...
Edited by Kevin Herron