File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed
Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,26 @@ runs:
143143 if : inputs.coverage == 'codecov' && inputs.container == 'true'
144144 uses : pkgxdev/setup@f211ee4db3110b42e5a156282372527e7c1ed723 # v4.0.0
145145 with :
146- + : git curl
146+ + : git curl gnupg.org
147+
148+ # Fix pkgxdev gnupg's gpgconf.ctl which contains unexpanded environment variables
149+ - name : Fix GPG configuration
150+ if : inputs.coverage == 'codecov' && inputs.container == 'true'
151+ shell : bash
152+ run : |
153+ # Find and remove the malformed gpgconf.ctl file that contains unexpanded shell variables
154+ if command -v gpgconf >/dev/null 2>&1; then
155+ gpgconf_ctl=$(dirname "$(which gpgconf)")/gpgconf.ctl
156+ if [ -f "$gpgconf_ctl" ]; then
157+ echo "Removing malformed gpgconf.ctl: $gpgconf_ctl"
158+ rm -f "$gpgconf_ctl"
159+ fi
160+ fi
161+ # Ensure GNUPGHOME is set up correctly
162+ if [ -n "$HOME" ]; then
163+ mkdir -p "$HOME/.gnupg"
164+ chmod 700 "$HOME/.gnupg"
165+ fi
147166
148167 - name : 📊 Upload coverage to Codecov
149168 if : always() && inputs.coverage == 'codecov'
@@ -155,9 +174,6 @@ runs:
155174 use_oidc : true
156175 disable_telem : true
157176 fail_ci_if_error : false
158- # Skip validation in container mode because pkgxdev-installed gnupg has issues
159- # with gpgconf.ctl containing unexpanded environment variables
160- skip_validation : ${{ inputs.container == 'true' }}
161177
162178 # FIXME: workaround until will be merged: https://github.com/actions/runner/pull/1684
163179 - shell : bash
You can’t perform that action at this time.
0 commit comments