summaryrefslogtreecommitdiffstats
path: root/.github/workflows/analyze.yaml
blob: 5982e60e97c92510bd6594a10521b017c505fb9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Analyze

on:
  workflow_dispatch:
  push:
    branches: ['main']
  pull_request:
    branches: ['main']

jobs:
  analyze:
    name: Analyze
    runs-on: ubuntu-latest
    steps:
    - 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

    - uses: github/codeql-action/init@v2
      with:
        languages: go
    - uses: github/codeql-action/autobuild@v2
    - uses: github/codeql-action/analyze@v2