-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (28 loc) · 1.12 KB
/
Copy pathcodeql.yml
File metadata and controls
31 lines (28 loc) · 1.12 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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
# A repo that adds a compiled language names it in `languages` — the body sets
# the build mode per language, so Go needs no second workflow.
name: CodeQL
on:
# PUSH ON THE RELEASE BRANCH ONLY. A push to an integration branch always has
# a pull request open on it, and that PR run scans the same tree — listing
# `dev` here as well ran the analysis twice for one result.
push:
branches: [main]
pull_request:
branches: [main, dev]
# `ready_for_review` is required once `dev` leaves the push trigger: a pull
# request opened as a draft analyses once, and without this type undrafting
# starts nothing — leaving a required code-scanning result that never comes.
types: [opened, synchronize, reopened, ready_for_review]
schedule:
- cron: '34 23 * * 0'
workflow_dispatch:
jobs:
codeql:
name: CodeQL
permissions:
security-events: write
packages: read
actions: read
contents: read
uses: kirchDev/workflows/.github/workflows/_codeql.yml@1e57db95ff601f03ae87b78e329ef238f9d0cbf6 # v0.8.2