ci: Remove DMG staging directory to prevent Sentry from walking its /Applications symlink (#7687)

`sentry-cli debug-files upload` offers no option to exclude certain
files or directories when recursively searching the given path. Thus, we
need to remove this staging directory to prevent it from recursively
walking the directory and inevitably erroring out when it hits a path it
doesn't have access to.
This commit is contained in:
Jamil
2025-01-07 09:51:56 -08:00
committed by GitHub
parent 21fc8efd5e
commit cda50e319a
4 changed files with 8 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ jobs:
ISSUER_ID: "${{ secrets.APPLE_APP_STORE_CONNECT_ISSUER_ID }}"
API_KEY_ID: "${{ secrets.APPLE_APP_STORE_CONNECT_API_KEY_ID }}"
API_KEY: "${{ secrets.APPLE_APP_STORE_CONNECT_API_KEY }}"
RUNNER_TEMP: "${{ runner.temp }}"
TEMP_DIR: "${{ runner.temp }}"
- run: ${{ matrix.upload-script }}
if: "${{ github.event_name == 'workflow_dispatch' }}"
env:
@@ -90,6 +90,10 @@ jobs:
- name: Upload debug symbols to Sentry
if: ${{ github.ref_name == 'main' }}
run: |
# Remove the /Applications symlink in the DMG staging directory so Sentry doesn't
# attempt to walk it.
rm -f "${{ runner.temp }}/dmg/Applications"
sentry-cli debug-files upload --log-level info --project apple-client --include-sources ${{ runner.temp }}
- uses: actions/cache/save@v4
if: ${{ steps.cache.outputs.cache-hit != 'true'}}