-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Signed tags incorrectly checked out #649
Comments
Was this fixed? Is it available for version 1 of this action? |
I encountered this 💡 For future reference in case this helps someone else:
|
Until a proper fix is released, I believe this will be helpful to to share this trick to community. Bug: actions#290 Relate-to: actions#1506 Relate-to: actions#649 Origin: https://github.com/actions/checkout/pulls?q=author%3Arzr Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
Until a proper fix is released, I believe this will be helpful to to share this trick to community. Bug: actions#290 Relate-to: actions#1506 Relate-to: actions#649 Origin: actions#2081 Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
Until a proper fix is released, I believe this will be helpful to share this trick to community. Bug: actions#290 Relate-to: actions#1506 Relate-to: actions#649 Origin: actions#2081 Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
When pushing a signed tag (or possibly any other tag object), the checked out tag ref points directly to the commit hash rather than the tag object.
Impact: unable to perform additional git commands as tree is out of sync.
Example workflow with issue
Create and push signed tag. Creates something like:
Use checkout action during workflow running based on the tag push trigger:
Source is fetched using a command such as:
The tag is now out of sync with the remote. If a command tries to sync the tag it will fail e.g.
Note: this might in fact affect any tag which creates a tag object rather than a direct referent to the commit object.
The text was updated successfully, but these errors were encountered: