Examples

Scheduled Audits: Run Lagune on a Recurring Schedule

Schedule a recurring Lagune audit in GitHub Actions with your own key, or in Claude Code, Codex, Cursor, Antigravity, or OpenCode, that either reports new risks or runs the whole Blue Team flow.

Schedule Lagune to audit your project on its own, either reporting what it finds or running the whole Blue Team flow.

Schedule​

GitHub Actions runs the audit in the cloud with GitHub Agentic Workflows. Its Copilot CLI engine calls the model provider you choose with your own key, so it needs no agent subscription:

  • Install the extension with gh extension install github/gh-aw.

  • Store your provider's key as a repository secret with gh secret set PROVIDER_API_KEY.

  • Save this workflow as .github/workflows/lagune-audit.md, replacing <model> with one of your provider's models that supports tool calling, and <your-prompt> with one of the prompt examples:

    ---
    on:
    schedule:
    - cron: '0 9 * * 1'
    permissions:
    contents: read
    engine:
    id: copilot
    model: <model>
    env:
    COPILOT_PROVIDER_TYPE: <type>
    COPILOT_PROVIDER_BASE_URL: <url>
    COPILOT_PROVIDER_API_KEY: ${{ secrets.PROVIDER_API_KEY }}
    skills:
    - wellwelwel/lagune@v0.18.1
    network:
    allowed:
    - defaults
    - node
    tools:
    edit:
    bash: [npx]
    safe-outputs:
    create-pull-request:
    ---

    <your-prompt>

    Then open a pull request with your changes.
    Provider<type><url>
    OpenAIopenaihttps://api.openai.com/v1
    Anthropicanthropichttps://api.anthropic.com
    Any OpenAI-compatible API, such as OpenRouteropenaiIts base URL, such as https://openrouter.ai/api/v1
  • Run gh aw compile and commit the workflow together with the .lock.yml file it generates.

Prompt Examples​

Maps new risks, plans their fixes, and rechecks the controls already applied, without changing your code:

Execute the following commands, one by one: `/lagune-detect` and `/lagune-plan`. If the project has a hardening record, also execute `/lagune-verify`.

Do not change the project's code. At the end, summarize the new findings and any applied control that no longer holds.