Repository navigation
58 lines (51 loc) · 1.83 KB
/
Copy pathcodeql.yml
File metadata and controls
58 lines (51 loc) · 1.83 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: CodeQL
# SAST for this repo's real Python surface (OpenSSF Scorecard's SAST check).
# Scoped to the FastAPI handlers/scripts under PyegeriaWebHandler and
# scripts/ -- the rest of the repo is compose configs, docs, and runtime
# bind-mount data, not source code CodeQL has anything to say about.
on:
push:
branches: [main]
paths:
- 'compose-configs/egeria-quickstart/PyegeriaWebHandler/**.py'
- 'compose-configs/egeria-freshstart/PyegeriaWebHandler/**.py'
- 'scripts/**.py'
- '.github/workflows/codeql.yml'
pull_request:
branches: [main]
paths:
- 'compose-configs/egeria-quickstart/PyegeriaWebHandler/**.py'
- 'compose-configs/egeria-freshstart/PyegeriaWebHandler/**.py'
- 'scripts/**.py'
- '.github/workflows/codeql.yml'
schedule:
# Weekly, independent of any push -- new CodeQL query packs land on their
# own schedule and can surface findings in code that hasn't changed.
- cron: '23 4 * * 3'
workflow_dispatch:
permissions:
contents: read
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Initialize CodeQL
uses: github/codeql-action/init@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
with:
languages: python
paths: |
compose-configs/egeria-quickstart/PyegeriaWebHandler
compose-configs/egeria-freshstart/PyegeriaWebHandler
scripts
paths-ignore: |
**/tests/**
**/test_*.py
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
with:
category: "/language:python"