Quick Start: Set up Jules Actions
mainTo use Jules Actions in your GitHub repository, follow these three steps:
- Get a Jules API Key: Authenticate at jules.google.com and generate an API key from your account settings.
- Add to GitHub Secrets: In your repository, navigate to Settings → Secrets and variables → Actions. Create a new repository secret named
JULES_API_KEYand paste your key as the value. - Create a Workflow: Create a
.ymlfile in.github/workflows/to define when and how Jules should run (e.g., on a schedule, on an issue, or via manual dispatch).
name: Daily Security Scan
on:
schedule:
- cron: '0 6 * * *' # Every day at 6 AM
workflow_dispatch:
jobs:
scan:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: google-labs-code/jules-invoke@v1
with:
prompt: |
You are a security agent. Scan for vulnerabilities and fix them...
jules_api_key: ${{ secrets.JULES_API_KEY }}