feat(v0.3.9): 5 rules + 4 CLI commands + runtime parity + LSP IDE (#89) #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: badge-ox-coverage | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'agent_audit_kit/data/ox-cve-manifest.json' | |
| - 'agent_audit_kit/coverage.py' | |
| - '.github/workflows/badge-ox-coverage.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| publish-badge: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
| with: | |
| python-version: "3.12" | |
| - name: Install AAK | |
| run: pip install -e . | |
| - name: Generate OX coverage badge JSON | |
| run: | | |
| mkdir -p public/badges | |
| agent-audit-kit coverage --source ox --format badge -o public/badges/ox-coverage.json | |
| cat public/badges/ox-coverage.json | |
| - name: Commit & push badge | |
| run: | | |
| if ! git diff --quiet -- public/badges/ox-coverage.json; then | |
| git config user.name "aak-bot" | |
| git config user.email "aak-bot@users.noreply.github.com" | |
| git add public/badges/ox-coverage.json | |
| git commit -m "chore: refresh OX-coverage badge" | |
| git push | |
| else | |
| echo "no badge change" | |
| fi |