Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 34 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,43 @@ on:
pull_request:
permissions:
contents: read
packages: write
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
concurrency:
group: docker-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
jobs:
security:
runs-on: ubuntu-latest
env:
TRIVY_INCLUDE_DEV_DEPS: "true"
steps:
- name: Checkout
uses: actions/checkout@v4.3.1
with:
persist-credentials: false
- name: Scan vulnerabilities and misconfigurations
uses: aquasecurity/trivy-action@v0.36.0
with:
version: v0.76.1
scan-type: fs
scan-ref: .
scanners: vuln,misconfig
severity: HIGH,CRITICAL
ignore-unfixed: true
exit-code: "1"
# Secrets must fail at every severity, even if the previous scan fails.
- name: Scan secrets
if: ${{ !cancelled() }}
uses: aquasecurity/trivy-action@v0.36.0
with:
version: v0.76.1
scan-type: fs
scan-ref: .
scanners: secret
severity: UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL
exit-code: "1"
verify:
runs-on: ubuntu-latest
steps:
Expand All @@ -37,8 +66,11 @@ jobs:
- name: Run tests
run: uv run --locked pytest
docker:
needs: verify
needs: [verify, security]
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license-files=["LICENSE"]
readme = "README.md"
requires-python = ">=3.12,<3.13"
dependencies = [
"fastapi[standard]>=0.116.1,<0.117.0",
"fastapi[standard]>=0.162.0,<0.163.0",
"pydantic-settings (>=2.10.1,<3.0.0)",
"aiosqlite (>=0.21.0,<0.22.0)"
]
Expand Down
Loading
Loading