diff --git a/.github/workflows/test_workflow.yml b/.github/workflows/test_workflow.yml index 9b6032c7b0..32274fb2b4 100644 --- a/.github/workflows/test_workflow.yml +++ b/.github/workflows/test_workflow.yml @@ -572,6 +572,13 @@ jobs: echo "musl-${{ matrix.java_version }}-${{ matrix.config }}-aarch64" >> failures_musl-${{ matrix.java_version }}-${{ matrix.config }}-aarch64.txt exit 1 fi + - name: Fix permissions for artifact upload + if: always() + run: | + # Files created by Docker container may have restrictive permissions + # that prevent GitHub Actions from reading them during artifact creation. + # Use a+rX (umask-independent) where X adds execute only to directories. + sudo chmod -R a+rX build/ ddprof-test/build/ ddprof-lib/build/ || true - name: Generate Unwinding Report if: success() && matrix.config == 'debug' run: | @@ -580,6 +587,9 @@ jobs: \"${{ github.sha }}\" \"musl/${{ matrix.java_version }}-${{ matrix.config }}-aarch64\" \ \"${{ matrix.config }}\" \"${{ env.JAVA_HOME }}\" \"${{ env.JAVA_TEST_HOME }}\" " + # Fix permissions after Docker container execution (both top-level and subproject builds). + # Use a+rX (umask-independent) where X adds execute only to directories. + sudo chmod -R a+rX build/ ddprof-test/build/ ddprof-lib/build/ || true - name: Add Unwinding Report to Job Summary if: success() && matrix.config == 'debug' && hashFiles('ddprof-test/build/reports/unwinding-summary.md') != '' run: |