fix: Mark GITHUB_WORKSPACE a safe git directory (#260)

* fix: Mark `GITHUB_WORKSPACE` a safe git directory

* Add integration test
This commit is contained in:
Andrei
2025-02-12 18:13:34 +01:00
committed by GitHub
parent 4ff66cc78e
commit 20a0df7362
2 changed files with 19 additions and 1 deletions
+18
View File
@@ -61,6 +61,24 @@ jobs:
with:
ignore_missing: true
runs-on-container:
runs-on: ubuntu-latest
container:
image: node:18.17
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create a staging release
uses: ./
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_LOG_LEVEL: debug
with:
ignore_missing: true
mock-release:
strategy:
matrix:
+1 -1
View File
@@ -62,7 +62,7 @@ runs:
if: ${{ inputs.disable_safe_directory != 'true' }}
shell: bash
run: |
git config --global --add safe.directory ${{ github.workspace }}
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Get node version
shell: bash