Skip to content

Commit bd2351e

Browse files
committed
github: Enable new codeql-analysis feature.
This file was generated by GitHub's code analysis tool, adapted based on changes made in the zulip/zulip repo including: * don't run compiled code actions * skip running it as a cron job weekly * rename jobs
1 parent c7674a0 commit bd2351e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "GitHub CodeQL"
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
analyse:
7+
name: Analyse
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v2
13+
with:
14+
# We must fetch at least the immediate parents so that if this is
15+
# a pull request then we can checkout the head.
16+
fetch-depth: 2
17+
18+
# If this run was triggered by a pull request event, then checkout
19+
# the head of the pull request instead of the merge commit.
20+
- run: git checkout HEAD^2
21+
if: ${{ github.event_name == 'pull_request' }}
22+
23+
# Initializes the CodeQL tools for scanning.
24+
- name: Initialize CodeQL
25+
uses: github/codeql-action/init@v1
26+
27+
# Override language selection by uncommenting this and choosing your languages
28+
# with:
29+
# languages: go, javascript, csharp, python, cpp, java
30+
- name: Perform CodeQL Analysis
31+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)