git.iko.soy/typeable/oauth2-proxy
on master help sign in
Merge pull request #701 from jhutchings1/patch-1
bbf00bcJoel Speed
.github/workflows/codeql.yml+15−2
@@ -2,9 +2,13 @@ name: "Code scanning - action"
2
2
3on:
3on:
4 push:
4 push:
5+ branches: [master, ]
6+ pull_request:
7+ # The branches below must be a subset of the branches above
8+ branches: [master]
5 schedule:
9 schedule:
6− - cron: '0 0 * * 0'
10+ - cron: '0 15 * * 2'
7−
11+
8jobs:
12jobs:
9 CodeQL-Build:
13 CodeQL-Build:
10
14
@@ -17,6 +21,15 @@ jobs:
17 steps:
21 steps:
18 - name: Checkout repository
22 - name: Checkout repository
19 uses: actions/checkout@v2
23 uses: actions/checkout@v2
24+ with:
25+ # We must fetch at least the immediate parents so that if this is
26+ # a pull request then we can checkout the head.
27+ fetch-depth: 2
28+
29+ # If this run was triggered by a pull request event, then checkout
30+ # the head of the pull request instead of the merge commit.
31+ - run: git checkout HEAD^2
32+ if: ${{ github.event_name == 'pull_request' }}
20
33
21 # Initializes the CodeQL tools for scanning.
34 # Initializes the CodeQL tools for scanning.
22 - name: Initialize CodeQL
35 - name: Initialize CodeQL