Skip to content

Commit 5e2dacf

Browse files
authored
Merge pull request #37 from anhmtk/fix/import-deps-sanitizer-wave-05-new
Fix/import deps sanitizer wave 05 new
2 parents b225eb5 + 23295a3 commit 5e2dacf

92 files changed

Lines changed: 2867 additions & 2969 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 25 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,33 @@
11
version: 2
22
updates:
3-
# Enable version updates for Python dependencies
3+
# GitHub Actions – weekly để giảm nhiễu
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
day: "monday"
9+
time: "06:00"
10+
open-pull-requests-limit: 2
11+
commit-message:
12+
prefix: "deps(actions)"
13+
include: "scope"
14+
groups:
15+
gha-minors:
16+
patterns: ["*"]
17+
update-types: ["minor", "patch"]
18+
19+
# Python (nếu có pyproject/requirements)
420
- package-ecosystem: "pip"
521
directory: "/"
622
schedule:
723
interval: "weekly"
824
day: "monday"
9-
time: "09:00"
10-
open-pull-requests-limit: 10
11-
reviewers:
12-
- "stillme-ai/security-team"
13-
assignees:
14-
- "stillme-ai/maintainers"
25+
time: "06:30"
26+
open-pull-requests-limit: 2
1527
commit-message:
16-
prefix: "chore(deps)"
28+
prefix: "deps(pip)"
1729
include: "scope"
18-
labels:
19-
- "dependencies"
20-
- "python"
30+
insecure-external-code-execution: "deny"
2131
ignore:
2232
# Ignore major version updates for critical dependencies
2333
- dependency-name: "fastapi"
@@ -27,40 +37,14 @@ updates:
2737
- dependency-name: "pydantic"
2838
update-types: ["version-update:semver-major"]
2939

30-
# Enable version updates for GitHub Actions
31-
- package-ecosystem: "github-actions"
32-
directory: "/"
33-
schedule:
34-
interval: "weekly"
35-
day: "monday"
36-
time: "09:00"
37-
open-pull-requests-limit: 5
38-
reviewers:
39-
- "stillme-ai/security-team"
40-
assignees:
41-
- "stillme-ai/maintainers"
42-
commit-message:
43-
prefix: "chore(ci)"
44-
include: "scope"
45-
labels:
46-
- "dependencies"
47-
- "github-actions"
48-
49-
# Enable version updates for Docker dependencies
40+
# Docker dependencies
5041
- package-ecosystem: "docker"
5142
directory: "/"
5243
schedule:
5344
interval: "weekly"
5445
day: "monday"
55-
time: "09:00"
56-
open-pull-requests-limit: 5
57-
reviewers:
58-
- "stillme-ai/security-team"
59-
assignees:
60-
- "stillme-ai/maintainers"
46+
time: "07:00"
47+
open-pull-requests-limit: 2
6148
commit-message:
62-
prefix: "chore(docker)"
49+
prefix: "deps(docker)"
6350
include: "scope"
64-
labels:
65-
- "dependencies"
66-
- "docker"

.github/workflows/attic-dryrun.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@ on:
88
permissions:
99
contents: read
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
attic-dryrun:
1317
runs-on: ubuntu-latest
18+
timeout-minutes: 30
19+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
1420
steps:
1521
- name: Checkout
1622
uses: actions/checkout@v4

.github/workflows/ci-smoke.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: CI – Smoke
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "tests/test_*smoke*.py"
7+
- "tests/test_*canary*.py"
8+
- "pytest.ini"
9+
- "stillme_core/**"
10+
- "agent_dev/**"
11+
- "framework.py"
12+
push:
13+
branches: [ main ]
14+
paths:
15+
- "tests/test_*smoke*.py"
16+
- "tests/test_*canary*.py"
17+
- "pytest.ini"
18+
- "stillme_core/**"
19+
- "agent_dev/**"
20+
- "framework.py"
21+
22+
permissions:
23+
contents: read
24+
25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.ref }}
27+
cancel-in-progress: true
28+
29+
jobs:
30+
smoke:
31+
runs-on: ubuntu-latest
32+
timeout-minutes: 15
33+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
34+
35+
steps:
36+
- name: Checkout code
37+
uses: actions/checkout@v4
38+
39+
- name: Set up Python
40+
uses: actions/setup-python@v5
41+
with:
42+
python-version: "3.11"
43+
44+
- name: Install dependencies
45+
run: |
46+
pip install -e . || true
47+
pip install pytest
48+
49+
- name: Run smoke tests
50+
run: |
51+
pytest -q -k "smoke or canary"
52+
env:
53+
STILLME_DRY_RUN: "1"
54+
55+
- name: Run learning smoke only
56+
run: |
57+
pytest -q tests/test_learning_smoke.py
58+
env:
59+
STILLME_DRY_RUN: "1"
60+
61+
- name: Run framework smoke only
62+
run: |
63+
pytest -q tests/test_framework_smoke.py
64+
env:
65+
STILLME_DRY_RUN: "1"

.github/workflows/cleanup-audit.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,15 @@ on:
1717
permissions:
1818
contents: read # đủ để checkout & đọc repo
1919

20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.ref }}
22+
cancel-in-progress: true
23+
2024
jobs:
2125
cleanup-audit:
2226
runs-on: ubuntu-latest
27+
timeout-minutes: 30
28+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
2329

2430
steps:
2531
- name: Checkout

.github/workflows/costs-report.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Costs Report
2+
3+
on:
4+
schedule:
5+
- cron: "0 7 * * MON" # mỗi Thứ Hai 14:00 ICT
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 10
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-python@v5
23+
with:
24+
python-version: "3.11"
25+
- name: Generate COSTS.md
26+
run: |
27+
python scripts/gen_costs_report.py
28+
- name: Create Pull Request
29+
uses: peter-evans/create-pull-request@v6
30+
with:
31+
title: "chore(docs): update COSTS.md (weekly)"
32+
commit-message: "chore(docs): update COSTS.md (weekly)"
33+
branch: "bot/update-costs-md"
34+
base: "main"
35+
delete-branch: true
36+
add-paths: |
37+
reports/COSTS.md

.github/workflows/gitleaks.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,18 @@ on:
55
branches: [ main, master, develop ]
66
pull_request:
77

8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
815
jobs:
916
gitleaks:
1017
runs-on: ubuntu-latest
18+
timeout-minutes: 30
19+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
1120
steps:
1221
- name: Checkout
1322
uses: actions/checkout@v4

.gitignore

214 Bytes
Binary file not shown.

.gitleaks.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ paths = [
1010
]
1111

1212
regexes = [
13-
'''FAKE|DUMMY|PLACEHOLDER|EXAMPLE_KEY'''
13+
'''FAKE|DUMMY|PLACEHOLDER|EXAMPLE_KEY|sk-xxxx|sk-dev-xxxx|sk-or-dev-xxxx|test_key_for_testing_purposes_only'''
1414
]

.sandbox/config/env/dev.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.sandbox/config/env/prod.yaml

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)