Skip to content

Commit 6ea7e06

Browse files
authored
Merge branch 'main' into tutorial/persist-database
2 parents 6f7aafc + a6def62 commit 6ea7e06

2 files changed

Lines changed: 71 additions & 384 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: "CodeQL Security Analysis"
2+
3+
on:
4+
schedule:
5+
- cron: '24 22 * * 5'
6+
7+
jobs:
8+
analyze:
9+
name: Analyze (${{ matrix.language }})
10+
# Runner size impacts CodeQL analysis time. To learn more, please see:
11+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
12+
# - https://gh.io/supported-runners-and-hardware-resources
13+
# - https://gh.io/using-larger-runners (GitHub.com only)
14+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
15+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
16+
permissions:
17+
# required for all workflows
18+
security-events: write
19+
20+
# required to fetch internal or private CodeQL packs
21+
packages: read
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
include:
27+
- language: python
28+
build-mode: none
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/checkout@v4
32+
33+
# Add any setup steps before running the `github/codeql-action/init` action.
34+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
35+
# or others). This is typically only required for manual builds.
36+
# - name: Setup runtime (example)
37+
# uses: actions/setup-example@v1
38+
39+
# Initializes the CodeQL tools for scanning.
40+
- name: Initialize CodeQL
41+
uses: github/codeql-action/init@v3
42+
with:
43+
languages: ${{ matrix.language }}
44+
build-mode: ${{ matrix.build-mode }}
45+
# If you wish to specify custom queries, you can do so here or in a config file.
46+
# By default, queries listed here will override any specified in a config file.
47+
# Prefix the list here with "+" to use these queries and those in the config file.
48+
49+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
50+
# queries: security-extended,security-and-quality
51+
52+
# If the analyze step fails for one of the languages you are analyzing with
53+
# "We were unable to automatically build your code", modify the matrix above
54+
# to set the build mode to "manual" for that language. Then modify this step
55+
# to build your code.
56+
# ℹ️ Command-line programs to run using the OS shell.
57+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
58+
- if: matrix.build-mode == 'manual'
59+
shell: bash
60+
run: |
61+
echo 'If you are using a "manual" build mode for one or more of the' \
62+
'languages you are analyzing, replace this with the commands to build' \
63+
'your code, for example:'
64+
echo ' make bootstrap'
65+
echo ' make release'
66+
exit 1
67+
68+
- name: Perform CodeQL Analysis
69+
uses: github/codeql-action/analyze@v3
70+
with:
71+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)