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

checkout not overriding GITHUB_SHA #1646

Closed
bakoontz2 opened this issue Mar 8, 2024 · 1 comment
Closed

checkout not overriding GITHUB_SHA #1646

bakoontz2 opened this issue Mar 8, 2024 · 1 comment

Comments

@bakoontz2
Copy link

When this action is invoked, the workspace SHA is no longer the same as the SHA of the triggering workflow, and therefore GITHUB_SHA is no longer correct.

@cory-miller
Copy link
Contributor

It's not intended to do this. The docs specify the GITHUB_SHA is tied to the sha that triggered the workflow.

https://docs.github.com/en/actions/learn-github-actions/contexts#github-context

If you need the sha from the checkout step, you should use an environment variable to track it.

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

No branches or pull requests

2 participants