Create codeql.yml

This commit is contained in:
Joe Zhang 2022-03-28 15:39:51 +08:00 committed by joey
parent ef383831c0
commit fa53a7b8a5
2 changed files with 7 additions and 4 deletions

View File

@ -13,12 +13,15 @@ name: "CodeQL"
on: on:
push: push:
branches: [ master, dev ] branches: [ master ]
pull_request: pull_request:
# The branches below must be a subset of the branches above # The branches below must be a subset of the branches above
branches: [ master ] branches: [ master ]
schedule: schedule:
- cron: '36 3 * * 4' - cron: '27 6 * * 4'
# Declare default permissions as read only.
permissions: read-all
jobs: jobs:
analyze: analyze:
@ -32,7 +35,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
language: [ 'cpp' ] language: [ 'cpp', 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support # Learn more about CodeQL language support at https://git.io/codeql-language-support

View File

@ -3,7 +3,7 @@ on:
# Only the default branch is supported. # Only the default branch is supported.
branch_protection_rule: branch_protection_rule:
schedule: schedule:
- cron: '41 1 * * 5' - cron: '23 17 * * 1'
push: push:
branches: [ master ] branches: [ master ]