-
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (40 loc) · 1.38 KB
/
codeql.yml
File metadata and controls
47 lines (40 loc) · 1.38 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
name: CodeQL
# Static-analysis security scanning. Satisfies the OpenSSF Scorecard
# `SAST` check and uploads alerts to the GitHub code-scanning
# dashboard.
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Weekly, offset from other security crons.
- cron: '41 6 * * 1'
permissions:
contents: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write # required to upload SARIF results
strategy:
fail-fast: false
matrix:
language: [go]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: github/codeql-action/init@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4
with:
languages: ${{ matrix.language }}
# The default + security-extended query suite catches the
# full set of OpenSSF-relevant patterns (injection,
# path-traversal, weak crypto, unsafe deserialization, etc.)
# without the noisy security-and-quality bloat.
queries: security-extended
- uses: github/codeql-action/autobuild@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4
- uses: github/codeql-action/analyze@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4
with:
category: "/language:${{ matrix.language }}"