Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix use of safe.directory inside containers
Inside a container the actual workspace path is a mount point and not the same as outside the container.
E.g.:
- `${{github.workspace}} == /home/runner/work/locale/locale`
- `$GITHUB_WORKSPACE == /__w/locale/locale`

So it seems `/home/runner/work` is mounted at `/__w` and this is reflected by the environment variable but not the context.   
So use that variable instead.
  • Loading branch information
Flamefire authored Feb 15, 2025
commit 19ac6f1f20b137045b74388fb6b332f4755c6709
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,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"
Comment thread
thomasrockhu-codecov marked this conversation as resolved.

- name: Set fork
shell: bash
Expand Down