Skip to content

Commit f625ecf

Browse files
committed
Fixed CodeQL workflow warning
1 parent 2bffeb0 commit f625ecf

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,13 @@ jobs:
1313
name: Analyze
1414
runs-on: ubuntu-latest
1515

16+
permissions:
17+
# required for all workflows
18+
security-events: write
19+
1620
steps:
1721
- name: Checkout repository
1822
uses: actions/checkout@v2
19-
with:
20-
# We must fetch at least the immediate parents so that if this is
21-
# a pull request then we can checkout the head.
22-
fetch-depth: 2
23-
24-
# If this run was triggered by a pull request event, then checkout
25-
# the head of the pull request instead of the merge commit.
26-
- run: git checkout HEAD^2
27-
if: ${{ github.event_name == 'pull_request' }}
2823

2924
# Initializes the CodeQL tools for scanning.
3025
- name: Initialize CodeQL

0 commit comments

Comments
 (0)