-
-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (38 loc) · 1.13 KB
/
Copy pathcodeql.yml
File metadata and controls
41 lines (38 loc) · 1.13 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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "CodeQL"
on:
push:
tags: ["*"]
branches: ["*"]
pull_request:
branches: ["*"]
schedule:
- cron: "25 10 * * 3"
workflow_dispatch:
permissions: {}
jobs:
analyze:
name: "Analyze (${{ matrix.language }})"
runs-on: "ubuntu-latest"
permissions:
actions: "read"
contents: "read"
security-events: "write"
strategy:
fail-fast: false
matrix:
include:
- { language: "actions", build-mode: "none" }
- { language: "go", build-mode: "autobuild" }
steps:
- name: "Checkout"
uses: "actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8"
- name: "Initialize CodeQL"
uses: "github/codeql-action/init@cdefb33c0f6224e58673d9004f47f7cb3e328b89"
with:
languages: "${{ matrix.language }}"
build-mode: "${{ matrix.build-mode }}"
- name: "Perform CodeQL Analysis"
uses: "github/codeql-action/analyze@cdefb33c0f6224e58673d9004f47f7cb3e328b89"
with:
category: "/language:${{matrix.language}}"