Skip to content

Conversation

@andreiborza
Copy link
Member

We previously marked ${{ github.workspace }} as a safe git directory and used GITHUB_WORKSPACE in the action's JS to cd into the repo path. This works well on normal jobs, but for jobs that use containers ${{ github.workspace }} and GITHUB_WORKSPACE differ from each other.

As a general rule of thumb for the future:

Use ${{ github.workspace }} on steps but $GITHUB_WORKSPACE on run instructutions.

Closes: #249

@andreiborza andreiborza merged commit 20a0df7 into master Feb 12, 2025
16 checks passed
@andreiborza andreiborza deleted the ab/mark-correct-workspace-safe branch February 12, 2025 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v1.10.x started breaking with Could not automatically determine release name

3 participants