-
Notifications
You must be signed in to change notification settings - Fork 0
chore: add Pullfrog workflow file #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| # PULLFROG ACTION — DO NOT EDIT EXCEPT WHERE INDICATED | ||
| # | ||
| # Dispatched by Pullfrog's control plane, never by a pull_request event, and always against | ||
| # `main` -- so this file governs a trial run only once it is on the default branch, and a | ||
| # pull request changing it is not reviewed by its own copy. The same trap | ||
| # claude-pr-review.yml carries, for the same reason. | ||
| # | ||
| # Every deviation from the console-generated file is below, and each one is deliberate: | ||
| # | ||
| # env: removed entirely The generated file maps ten provider secrets, ANTHROPIC_API_KEY | ||
| # among them, which would hand the org secret that gates the | ||
| # production reviewer to a third-party agent and let auto-select | ||
| # quietly run this trial on Claude. The rest name secrets that do | ||
| # not exist, and a workflow env: value *wins* over a | ||
| # Pullfrog-stored key -- so an empty mapping would override the | ||
| # console's OPENAI_API_KEY and fail every run with "Missing API | ||
| # key". The key lives in the Pullfrog console instead, which also | ||
| # keeps rotation and model changes off this file. | ||
| # push: disabled The trial reviews and does nothing else. Read-only at the | ||
| # action, so it holds even if a console toggle flips. | ||
| # shell: restricted Already the default for a public repo; stated so it survives | ||
| # the repo going private. | ||
| # progress_comments: The reviewer next door reads the PR conversation into its | ||
| # disabled prompt, where a live task list is context it pays for. | ||
| # timeout: 20m A review is not an hour of work; the reviewer beside it is | ||
| # capped at 15 minutes. | ||
| # checkout pinned This repository pins every action to an exact patch version. | ||
| # pullfrog/pullfrog stays on @v0 on the vendor's own advice: the | ||
| # action is a bootstrap that floats the agent from npm, so a SHA | ||
| # pin freezes only the post-run cleanup step and goes stale into | ||
| # runs that fail after the agent has finished its work. | ||
| name: Pullfrog | ||
| run-name: ${{ inputs.name || github.workflow }} | ||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| prompt: | ||
| type: string | ||
| description: Agent prompt | ||
| name: | ||
| type: string | ||
| description: Run name | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| pullfrog: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| # The only two the action needs: id-token to mint its own short-lived installation | ||
| # tokens over OIDC, contents to clone. It never uses this job's GITHUB_TOKEN, so | ||
| # nothing here grants it the ability to comment, review, or push. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: "nothing here grants it the ability to comment, review, or push" is true of this job's That also bounds what (not blocking) |
||
| id-token: write | ||
| contents: read | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v6.0.2 | ||
| with: | ||
| fetch-depth: 1 | ||
| - name: Run agent | ||
| uses: pullfrog/pullfrog@v0 | ||
| with: | ||
| prompt: ${{ inputs.prompt }} | ||
| push: disabled | ||
| shell: restricted | ||
| progress_comments: disabled | ||
| timeout: 20m | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: pullfrog:
runs-on: ubuntu-latest
timeout-minutes: 25(not blocking) (not blocking) |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super nit: "This repository pins every action to an exact patch version" isn't quite so —
anthropics/claude-code-action@v1(claude-pr-review.yml:214) floats on a major tag today. That doesn't weaken the case for pinningactions/checkouthere, but it does meanpullfrog/pullfrog@v0isn't the sole exception, and a reader who checks the claim will find it doesn't hold. (not blocking)