Skip to content

Commit

Permalink
Fix CodeQL warning
Browse files Browse the repository at this point in the history
Apparently no longer need to do this HEAD^2 stuff according to warning on the actions. "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."

Signed-off-by: Chad Wilson <[email protected]>
  • Loading branch information
chadlwilson committed Apr 2, 2024
1 parent ea87136 commit 2f768fb
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
Expand Down

0 comments on commit 2f768fb

Please sign in to comment.