Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2e6e9c5

Browse filesBrowse files
Fix use of safe.directory inside containers (#1768)
* 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. * Update action.yml * Update action.yml * Update action.yml --------- Co-authored-by: Tom Hu <88201630+thomasrockhu-codecov@users.noreply.github.com>
1 parent a5dc5a5 commit 2e6e9c5
Copy full SHA for 2e6e9c5

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎action.yml

Copy file name to clipboardExpand all lines: action.yml
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ runs:
181181
if: ${{ inputs.disable_safe_directory != 'true' }}
182182
shell: bash
183183
run: |
184-
git config --global --add safe.directory ${{ github.workspace }}
184+
git config --global --add safe.directory "${{ github.workspace }}"
185+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
185186
186187
- name: Set fork
187188
shell: bash

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.