Skip to content

security: add prompt injection mitigations and content warnings (fixe… #68

security: add prompt injection mitigations and content warnings (fixe…

security: add prompt injection mitigations and content warnings (fixe… #68

Workflow file for this run

name: Lint
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
types: [opened, synchronize, reopened]
permissions:
contents: write
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Black
run: pip install black
- name: Run Black (auto-format)
run: black .
- name: Commit and push formatting fixes (push events only)
if: github.event_name == 'push' && github.actor != 'github-actions[bot]'
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git diff --quiet || (git add -A && git commit -m "style: auto-format with Black" && git push)