2022-07-01 12:11:32 +02:00
|
|
|
# Runs a CodeQL scan.
|
2021-02-02 12:05:47 +01:00
|
|
|
name: "CodeQL"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-10-22 15:41:53 +02:00
|
|
|
branches:
|
|
|
|
- "master"
|
|
|
|
- "release/**"
|
2022-08-29 17:33:42 +02:00
|
|
|
- "fullbuild"
|
2021-02-02 12:05:47 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
name: Analyze
|
2021-10-22 15:41:53 +02:00
|
|
|
runs-on: ubuntu-20.04
|
2022-07-01 12:11:32 +02:00
|
|
|
permissions: # See https://github.com/ooni/probe/issues/2154
|
|
|
|
security-events: write
|
2021-02-02 12:05:47 +01:00
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-05-06 19:56:55 +02:00
|
|
|
language: [ "go" ]
|
2021-02-02 12:05:47 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Initialize CodeQL
|
2022-07-01 12:11:32 +02:00
|
|
|
uses: github/codeql-action/init@v2
|
2021-02-02 12:05:47 +01:00
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
|
|
|
|
|
|
|
- name: Autobuild
|
2022-07-01 12:11:32 +02:00
|
|
|
uses: github/codeql-action/autobuild@v2
|
2021-02-02 12:05:47 +01:00
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
2022-07-01 12:11:32 +02:00
|
|
|
uses: github/codeql-action/analyze@v2
|