2021-05-31 17:05:08 +02:00
|
|
|
name: "CodeQL"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
2022-04-04 16:12:33 +02:00
|
|
|
paths:
|
2022-05-12 09:49:35 +02:00
|
|
|
- '.github/workflows/codeql-analysis.yml'
|
2022-04-04 16:12:33 +02:00
|
|
|
- '**.go'
|
|
|
|
- 'go.*'
|
2021-05-31 17:05:08 +02:00
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
2022-04-04 16:12:33 +02:00
|
|
|
paths:
|
2022-05-12 09:49:35 +02:00
|
|
|
- '.github/workflows/codeql-analysis.yml'
|
2022-04-04 16:12:33 +02:00
|
|
|
- '**.go'
|
|
|
|
- 'go.*'
|
2021-05-31 17:05:08 +02:00
|
|
|
schedule:
|
|
|
|
- cron: '28 2 * * 5'
|
|
|
|
|
2023-01-17 11:29:54 +01:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-05-31 17:05:08 +02:00
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
name: Analyze
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
language:
|
|
|
|
- go
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2023-09-04 22:25:17 +02:00
|
|
|
uses: actions/checkout@v4
|
2021-05-31 17:05:08 +02:00
|
|
|
|
|
|
|
- name: Initialize CodeQL
|
2022-04-25 22:12:00 +02:00
|
|
|
uses: github/codeql-action/init@v2
|
2021-05-31 17:05:08 +02:00
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
|
|
|
|
|
|
|
- name: Autobuild
|
2022-04-25 22:12:00 +02:00
|
|
|
uses: github/codeql-action/autobuild@v2
|
2021-05-31 17:05:08 +02:00
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
2022-04-25 22:12:00 +02:00
|
|
|
uses: github/codeql-action/analyze@v2
|