mirror of
https://github.com/github/codeql-action.git
synced 2026-01-06 14:40:10 +08:00
Update actions/checkout from v2 to v3
This commit is contained in:
@@ -544,7 +544,7 @@ export async function getRef(): Promise<string> {
|
||||
|
||||
const head = await getCommitOid(checkoutPath, "HEAD");
|
||||
|
||||
// in actions/checkout@v2 we can check if git rev-parse HEAD == GITHUB_SHA
|
||||
// in actions/checkout@v2+ we can check if git rev-parse HEAD == GITHUB_SHA
|
||||
// in actions/checkout@v1 this may not be true as it checks out the repository
|
||||
// using GITHUB_REF. There is a subtle race condition where
|
||||
// git rev-parse GITHUB_REF != GITHUB_SHA, so we must check
|
||||
|
||||
Reference in New Issue
Block a user