Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Mark GITHUB_WORKSPACE a safe git directory #260

Merged
merged 2 commits into from
Feb 12, 2025

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
2 participants