Skip to content

Commit 1900195

Browse files
committed
Improve CodeQL workflow
1 parent a3344be commit 1900195

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ on:
66
pull_request:
77
branches: [master]
88
schedule:
9-
- cron: '0 17 * * 1,3,5'
9+
- cron: '0 3 * * */2'
10+
11+
permissions:
12+
security-events: write
13+
actions: read
14+
contents: read
1015

1116
jobs:
1217
analyse:
@@ -15,13 +20,10 @@ jobs:
1520

1621
steps:
1722
- name: Checkout repository
18-
uses: actions/checkout@v2
23+
uses: actions/checkout@v3
1924
with:
2025
fetch-depth: 2
2126

22-
- run: git checkout HEAD^2
23-
if: ${{ github.event_name == 'pull_request' }}
24-
2527
- name: Initialize CodeQL
2628
uses: github/codeql-action/init@v1
2729
with:

0 commit comments

Comments
 (0)