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

.github/workflows: switch to actions/checkout@v2 #4795

Merged
merged 1 commit into from
Jan 3, 2022

Conversation

bk2204
Copy link
Member

@bk2204 bk2204 commented Dec 21, 2021

The actions/checkout workflow looks like it may have had a security-sensitive change to it in the latest v2. It doesn't look like it affects us, but let's update to be safe.

Switch to actions/checkout@v2 everywhere and use the fetch-depth: 0 argument, which makes us fetch the entire history. This is the main reason we stuck with v1 for so long, and it's required for certain parts of our build and release process to function correctly.

Fixes #4789

@bk2204 bk2204 marked this pull request as ready for review January 3, 2022 14:14
@bk2204 bk2204 requested a review from a team as a code owner January 3, 2022 14:14
The actions/checkout workflow looks like it may have had a
security-sensitive change to it in the latest v2.  It doesn't look like
it affects us, but let's update to be safe.

Switch to actions/checkout@v2 everywhere and use the fetch-depth: 0
argument, which makes us fetch the entire history.  This is the main
reason we stuck with v1 for so long, and it's required for certain parts
of our build and release process to function correctly.
Copy link
Member

@chrisd8088 chrisd8088 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@bk2204 bk2204 merged commit e3893b1 into git-lfs:main Jan 3, 2022
@bk2204 bk2204 deleted the actions-checkout-v2 branch January 3, 2022 21:09
bk2204 added a commit to bk2204/git-lfs that referenced this pull request Feb 15, 2022
actions/checkout@v2 "helpfully" overwrites the tag with the data from
the ref, erasing the annotated tag, and therefore breaking git describe,
which by default only checks annotated tags.  Note that every tag except
the one for the current head is preserved, so git describe uses an
annotation that is based off the most recent tag.  This behavior is
described in actions/checkout#290.

The original reporter claiming that a security fix had been applied has
not provided details, and the behavior described should not be a
vulnerability in a single-tenant Actions VM.  Therefore, revert to
actions/checkout@v1 to preserve functionality at the expense of a
behavior which does not appear to describe an actual vulnerability.

This reverts commit e3893b1, reversing
changes made to eb0dc94.
bk2204 added a commit that referenced this pull request Feb 15, 2022
Revert "Merge pull request #4795 from bk2204/actions-checkout-v2"
bk2204 added a commit that referenced this pull request Feb 15, 2022
Revert "Merge pull request #4795 from bk2204/actions-checkout-v2"
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.

[Security] Workflow release.yml is using vulnerable action actions/checkout
2 participants