mirror of
https://github.com/sensepost/objection.git
synced 2026-10-12 02:22:18 +00:00
(fix) codeql-analysis.yml removed deprecated steps
Removed deprecated `checkout HEAD^2` step from CodeQL workflow. https://docs.github.com/en/code-security/code-scanning/troubleshooting-code-scanning/unnecessary-step-found
This commit is contained in:
@@ -30,16 +30,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
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
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
|
||||
Reference in New Issue
Block a user