-
Notifications
You must be signed in to change notification settings - Fork 0
108 lines (103 loc) · 3.21 KB
/
security.yml
File metadata and controls
108 lines (103 loc) · 3.21 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: Security
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
schedule:
- cron: "0 6 * * 1"
permissions:
contents: read
jobs:
pip-audit:
name: pip-audit (base/dev lockfile)
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Set up uv
uses: astral-sh/setup-uv@v7
- name: Install audit tool in isolated environment
run: |
python -m venv .venv-audit
. .venv-audit/bin/activate
python -m pip install --upgrade pip
pip install pip-audit
- name: Run pip-audit (base lockfile export)
run: |
. .venv-audit/bin/activate
uv export --format requirements-txt --no-dev --no-emit-project --frozen -o /tmp/teaagent-base-requirements.txt
pip-audit -r /tmp/teaagent-base-requirements.txt
- name: Run pip-audit (dev lockfile visibility)
if: github.event_name == 'schedule'
run: |
. .venv-audit/bin/activate
uv export --format requirements-txt --no-emit-project --frozen -o /tmp/teaagent-dev-requirements.txt
pip-audit -r /tmp/teaagent-dev-requirements.txt
optional-extra-pip-audit:
name: optional-extra pip-audit (${{ matrix.extra }})
runs-on: ubuntu-latest
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
continue-on-error: true
permissions:
contents: read
strategy:
fail-fast: false
matrix:
extra:
- managed-google-adk
- managed-vertex
- playwright
- telemetry
- oauth
- wasm
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Set up uv
uses: astral-sh/setup-uv@v7
- name: Install audit tool in isolated environment
run: |
python -m venv .venv-audit
. .venv-audit/bin/activate
python -m pip install --upgrade pip
pip install pip-audit
- name: Run pip-audit (optional extra)
run: |
. .venv-audit/bin/activate
uv export --format requirements-txt --extra ${{ matrix.extra }} --no-dev --no-emit-project --frozen -o /tmp/teaagent-${{ matrix.extra }}-requirements.txt
pip-audit -r /tmp/teaagent-${{ matrix.extra }}-requirements.txt
codeql:
name: CodeQL (${{ matrix.language }})
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
packages: read
security-events: write
strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
- language: python
build-mode: none
steps:
- uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"