Workflow calling the Fencia API
You own the GitHub Actions file and choose which supported document it sends. The API returns analysis for review; Fencia does not publish a GitHub Action package.
GITHUB ACTIONS / FENCIA API
Submit a supported text document to Fencia's API from GitHub Actions and inspect the returned findings. This self-managed example is separate from Fencia's GitHub connector for AI dependency signals.
API access requires an eligible plan. Check your account permissions before setup.TWO DISTINCT GITHUB PATHS
You own the GitHub Actions file and choose which supported document it sends. The API returns analysis for review; Fencia does not publish a GitHub Action package.
The separate OAuth connector can surface possible AI-use signals from selected dependency manifests in a manual check. It does not import documents or patrol repositories.
EXAMPLE SETUP
This manual example scans one TXT file. Choose triggers, file selection and access controls for your own repository. Do not put secrets in the workflow file or print document contents in job logs.
Create an API key in your Fencia account on a plan that includes API access.
Name it FENCIA_API_KEY. Restrict who can run a workflow with access to it.
Put a supported TXT document at the referenced path. The API uses scan credits and returns a result that still needs human review.
name: Fencia document review
on:
workflow_dispatch:
permissions:
contents: read
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Submit a text document
env:
FENCIA_API_KEY: ${{ secrets.FENCIA_API_KEY }}
run: |
jq -n --arg name "docs/ai-policy.txt" --rawfile text docs/ai-policy.txt '{file_name: $name, text_content: $text}' > request.json
curl --fail-with-body -sS -H "Authorization: Bearer $FENCIA_API_KEY" -H "Content-Type: application/json" -d @request.json https://fencia.co/api/v1/scan > result.json
jq '{task_id, status, score, findings_count: (.findings | length)}' result.jsonSCOPE & SECURITY
This workflow sends the selected document text to the Fencia API. It does not scan source code, guarantee regulatory compliance or automatically block a pull request. Review the returned source context and your data-handling obligations before using it with sensitive material.
Read about security and subprocessorsREADY TO EXPLORE?
Use the API example with a supported file and the right permissions, then decide what the findings mean for your work.