-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (46 loc) · 1.41 KB
/
codeql.yaml
File metadata and controls
55 lines (46 loc) · 1.41 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: "CodeQL"
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Run weekly on Monday at 07:25 UTC
- cron: "25 7 * * 1"
# Top-level permissions: restrict to read-only by default.
permissions:
contents: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
# Required to upload CodeQL results to the Security tab.
security-events: write
# Required to check out the repository.
contents: read
strategy:
fail-fast: false
matrix:
include:
- language: go
- language: actions
env:
# This repository uses CGO (github.com/miekg/pkcs11).
CGO_ENABLED: 1
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Initialize CodeQL
uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v3
with:
languages: ${{ matrix.language }}
queries: security-extended
- name: Autobuild
if: matrix.language == 'go'
uses: github/codeql-action/autobuild@0d579ffd059c29b07949a3cce3983f0780820c98 # v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v3
with:
category: "/language:${{ matrix.language }}"