Skip to content

Commit 2ba03b3

Browse files
authored
CI: git checkout HEAD^2 step is no longer necessary (microsoft#164)
The CI builds now report this warning: ``` 1 issue was detected with this workflow: git checkout HEAD^2 is no longer necessary. Please remove this step as Code Scanning recommends analyzing the merge commit for best results ``` This step was recommended, but is now unnecessary apparently.
1 parent 57172d0 commit 2ba03b3

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,6 @@ jobs:
2626
steps:
2727
- name: Clone Repository
2828
uses: actions/checkout@v2
29-
with:
30-
# Must fetch at least the immediate parents so that if this is
31-
# a pull request then we can checkout the head of the pull request.
32-
# Only include this option if you are running this workflow on pull requests.
33-
fetch-depth: 2
34-
35-
# If this run was triggered by a pull request event then checkout
36-
# the head of the pull request instead of the merge commit.
37-
# Only include this step if you are running this workflow on pull requests.
38-
- name: Checkout head of the pull request
39-
run: git checkout HEAD^2
40-
if: ${{ github.event_name == 'pull_request' }}
4129

4230
# Setup build environment variables using vcvarsall.bat.
4331
- name: Configure MSCV Compiler for ${{ matrix.arch }}

0 commit comments

Comments
 (0)