-
Notifications
You must be signed in to change notification settings - Fork 154
48 lines (45 loc) · 1.23 KB
/
codeql.yaml
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
name: "CodeQL"
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Every Saturday 6:41 in JST
- cron: '41 21 * * 5'
workflow_dispatch:
# This environment is necessary to avoid the following issue
# https://github.com/github/codeql/issues/6321
env:
CODEQL_EXTRACTOR_GO_BUILD_TRACING: 'on'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ['go', 'javascript']
steps:
- uses: actions/checkout@v4
- uses: github/codeql-action/init@v3
with:
config-file: ./.github/codeql/codeql-config.yaml
languages: ${{ matrix.language }}
- uses: github/codeql-action/autobuild@v3
if: ${{ matrix.language != 'go' }}
- uses: actions/setup-go@v5
with:
go-version: '1.22'
if: ${{ matrix.language == 'go' }}
- name: Build Go sources
run: |
set -x
go build -v ./cmd/actionlint
GOOS=js GOARCH=wasm go build -v -o ./playground/main.wasm ./playground
if: ${{ matrix.language == 'go' }}
- uses: github/codeql-action/analyze@v3