| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Shared GitHub Actions reusable workflows for jitsucom repos.
Reviews pull requests and commits for bugs, security issues, and correctness problems using OpenAI Codex.
All three secrets must be available to the workflow — either as org secrets or repo secrets.
| Secret | Required for | Description |
|---|---|---|
| OPENAI_API_KEY | always | OpenAI API key with Codex access |
| AI_CODE_REVIEW_APP_ID | PR mode | GitHub App ID for posting PR reviews |
| AI_CODE_REVIEW_PRIVATE_KEY | PR mode | Private key (.pem) for the GitHub App |
The GitHub App needs Pull requests: Read & write on the target repo.
gh secret set AI_CODE_REVIEW_APP_ID --org jitsucom --repos my-repo --body "<app-id>"
gh secret set AI_CODE_REVIEW_PRIVATE_KEY --org jitsucom --repos my-repo < app-private-key.pem
gh secret set OPENAI_API_KEY --org jitsucom --repos my-repo --body "<key>"Add a thin wrapper workflow to your repo:
# .github/workflows/ai-review.yml
name: AI Review
on:
pull_request:
types: [opened, reopened, synchronize, edited, ready_for_review]
push:
branches: [main]
workflow_dispatch:
inputs:
pr_number:
description: PR number to review (leave blank to review a commit)
required: false
commit_sha:
description: Commit SHA to review (leave blank when using PR number)
required: false
jobs:
ai-review:
uses: jitsucom/github-workflows/.github/workflows/ai-review.yml@main
secrets: inherit
with:
pr_number: ${{ inputs.pr_number }}
commit_sha: ${{ inputs.commit_sha }}Use the review_instructions input to focus the review on what matters for your repo:
with:
pr_number: ${{ inputs.pr_number }}
commit_sha: ${{ inputs.commit_sha }}
review_instructions: >-
Focus on infrastructure safety, Terraform drift, and secret leaks.
Skip style nitpicks.All consuming repos pick up changes automatically on the next run — no changes needed per repo.
Reusable composite actions live under .github/actions/. Consume them by path:
- uses: jitsucom/github-workflows/.github/actions/<name>@<tag-or-main>Sends a formatted notification to Slack with title + optional bullet blocks. Used by the deploy workflows.
Inputs:
The composite action can't read org secrets directly. Standard pattern: set SLACK_WEBHOOK_URL once at the job level from secrets.CI_SLACK_WEBHOOK.
jobs:
notify:
env:
SLACK_WEBHOOK_URL: ${{ secrets.CI_SLACK_WEBHOOK }}
steps:
- uses: jitsucom/github-workflows/.github/actions/slack-notify@main
with:
header: "Deploy started"See action.yml.
For callers that prefer secrets: inherit over wiring the env var, or for testing the action directly from the GitHub UI (workflow_dispatch), there's a thin wrapper at .github/workflows/slack-notify.yml:
jobs:
notify:
uses: jitsucom/github-workflows/.github/workflows/slack-notify.yml@main
secrets: inherit
with:
header: "Deploy started"Trade-off: each invocation runs as its own job on a fresh runner (~30–60s startup) and can't share workspace state with sibling steps. For inline notifications inside an existing deploy job, use the composite action directly.
Installs mikefarah/yq to /usr/local/bin with a pinned version + sha256 checksum. Inputs: version, sha256 (both have safe defaults). See action.yml.
Installs the standalone kustomize CLI with a pinned version + sha256 checksum. Inputs: version, sha256 (both have safe defaults). See action.yml.
| Back | FazBrowse Home | New Git URL |