fastmcp/.github/workflows/agentic-checks.yml
Greg Aker 8e5dab4b14
Pin claude-code-action, verify the gitleaks download, and set checkout credentials explicitly (#6609)
* Bump platformdirs and markdown-it-py in lock files

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Pin claude-code-action, verify gitleaks download, scope checkout credentials

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Set persist-credentials on the remaining downstream smoke checkouts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 18:37:44 +00:00

48 lines
1.6 KiB
YAML

name: Check agentic maintenance
on:
pull_request:
paths:
- ".github/agentic/**"
- ".github/workflows/agentic-checks.yml"
push:
branches: [main]
paths:
- ".github/agentic/**"
- ".github/workflows/agentic-checks.yml"
workflow_dispatch:
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: .github/agentic
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
with:
python-version: "3.12"
enable-cache: true
cache-dependency-glob: ".github/agentic/uv.lock"
- run: uv sync --locked
- run: uv run ruff check . && uv run ruff format --check .
- run: uv run ty check
- run: uv run pytest -q
- name: Check verifier credential boundary
run: >-
docker run --rm --network none --read-only
--cap-drop ALL --cap-add SETUID --cap-add SETGID --cap-add SETPCAP --cap-add CHOWN
--cap-add DAC_OVERRIDE --cap-add FOWNER
--security-opt no-new-privileges --pids-limit 128 --memory 512m --cpus 1
--tmpfs /tmp:rw,exec,nosuid,nodev,size=128m
--env PREFECT_API_KEY=dummy-controller-token
--env GH_TOKEN=dummy-github-token
--mount type=bind,src=${{ github.workspace }}/.github/agentic,dst=/source,readonly
python:3.12-slim python /source/tests/verification_canary.py