diff --git a/.github/workflows/pr-contributor-welcome.yml b/.github/workflows/pr-contributor-welcome.yml index a39b86adf..1ce9943d9 100644 --- a/.github/workflows/pr-contributor-welcome.yml +++ b/.github/workflows/pr-contributor-welcome.yml @@ -1,12 +1,16 @@ -name: Welcome external contributors and approve Dependabot PRs +name: Welcome external contributors on: pull_request_target: types: [opened] +# Comments only. Nothing here approves a pull request: a workflow approval +# would count as the one review `main` requires, and with "Allow GitHub +# Actions to create and approve pull requests" off (CLAUDE.md, "How a +# post-release bump reaches `main`") GitHub refuses it and the run goes red. +# `issues: write` is enough to comment on a pull request. permissions: contents: read - pull-requests: write issues: write jobs: @@ -95,20 +99,3 @@ jobs: // The contributor is welcomed either way; a webhook Slack refuses // turns the run red so a broken page does not go unnoticed. if (slackError) core.setFailed(`Could not page the team on Slack: ${slackError}`); - - approve-dependabot: - name: Approve Dependabot PR - if: github.event.pull_request.user.login == 'dependabot[bot]' - runs-on: ubuntu-latest - steps: - - name: Approve pull request - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 - with: - script: | - await github.rest.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - event: 'APPROVE', - body: 'Automated approval for Dependabot dependency update.', - }); diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a4650677..a4ec18030 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Fixes - Add a global `--no-color` flag, the same as `NO_COLOR=1`, accepted before or after any command; `failproofai policies` already honors `NO_COLOR` (#1067, from #695, #700, #848, fixes #688) +- CI: the contributor-welcome workflow no longer tries to approve Dependabot pull requests. GitHub refuses a workflow approval while "Allow GitHub Actions to create and approve pull requests" is off, so every Dependabot PR got a failed run, and with it on the approval would count as the one review `main` requires. Dependency updates are reviewed by a person; the workflow drops `pull-requests: write` (#1049) ### Docs @@ -17,6 +18,10 @@ - The failproof agent docs say the agent, audits and other generated analysis use the model assigned to the organization's plan, with no model picker to configure (#1065, from #996) - The evaluation test page says LLM judges cannot be tested before they are deployed, and that testing a Jev evaluation spends model budget (#1065, from #846) +### Dependencies + +- `fpai-collect`: update `notify` from 8.2.2 to 9.0.0 and `rusqlite` from 0.42.0 to 0.43.0 (#1049) + ## 1.0.18-beta.0 — 2026-11-24 ### Features diff --git a/Cargo.lock b/Cargo.lock index ffe0db5af..792ca6c35 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -928,9 +928,9 @@ dependencies = [ [[package]] name = "notify" -version = "8.2.2" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c41a04a5f59df9322cc657286dd2d79f90816119b22c5f847607c850110205ab" +checksum = "5482d5bd11b91a337521980e5d52fe115bdccfb4c217099daaf0abd69159dc4e" dependencies = [ "bitflags", "inotify", @@ -943,13 +943,14 @@ dependencies = [ "objc2-core-services", "walkdir", "windows-sys 0.61.2", + "xxhash-rust", ] [[package]] name = "notify-types" -version = "2.1.0" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42b8cfee0e339a0337359f3c88165702ac6e600dc01c0cc9579a92d62b08477a" +checksum = "cbd044e85df3d939d8e32a1c35a3b737c7d0a4eeb7acd737bd207644e00f4e5f" dependencies = [ "bitflags", ] @@ -1288,9 +1289,9 @@ dependencies = [ [[package]] name = "rusqlite" -version = "0.42.0" +version = "0.43.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4edff0039f148731aee2fd80f76dbfeb12d204ab3d1c544838d34e02151049b" +checksum = "f172c4812a19b26d1c23cdb0070e69db335503dfa378b910eb857386e5b8beba" dependencies = [ "bitflags", "fallible-iterator", @@ -2189,6 +2190,12 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4" +[[package]] +name = "xxhash-rust" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40de123dbb523ebcc00d61ec01840ad192578afc378d859f3429caa38308fad5" + [[package]] name = "yoke" version = "0.8.3" diff --git a/__tests__/ci/pr-contributor-welcome.test.ts b/__tests__/ci/pr-contributor-welcome.test.ts index ade615e4f..aaf834c29 100644 --- a/__tests__/ci/pr-contributor-welcome.test.ts +++ b/__tests__/ci/pr-contributor-welcome.test.ts @@ -61,6 +61,15 @@ async function run( } describe("pr-contributor-welcome workflow", () => { + // A workflow approval counts as the one review main requires, and with + // "Allow GitHub Actions to create and approve pull requests" off GitHub + // refuses it, which turned every Dependabot PR's run red (#1049). + it("only comments: one job, no pull-request permission, nothing that approves", () => { + expect(Object.keys(WORKFLOW.jobs)).toEqual(["welcome"]); + expect(WORKFLOW.permissions).toEqual({ contents: "read", issues: "write" }); + expect(SCRIPT).not.toMatch(/createReview|APPROVE/); + }); + it("reads the Slack webhook from a secret, and nothing the PR author chose is spliced into the script", () => { expect(STEP.env.SLACK_WEBHOOK_URL).toBe("${{ secrets.SLACK_OSS_CONTRIBUTOR_WEBHOOK_URL }}"); expect(SCRIPT).not.toContain("${{"); diff --git a/crates/fpai-collect/Cargo.toml b/crates/fpai-collect/Cargo.toml index a03e2a1b8..aa64e5dfa 100644 --- a/crates/fpai-collect/Cargo.toml +++ b/crates/fpai-collect/Cargo.toml @@ -33,7 +33,7 @@ reqwest = { version = "0.12", default-features = false, features = ["rustls-tls" # inotify on Linux, FSEvents on macOS. Only ever a latency optimisation — the # sweeper is what guarantees delivery, so a watcher that fails to register # degrades to interval-only rather than losing anything. -notify = "8" +notify = "9" # Epoch-millis to RFC3339 with microseconds. Hand-rolling civil date maths is # a silent-failure risk — a leap-year slip would put every event on the wrong # day with nothing to notice it — and this pulls no C code onto any of the @@ -50,7 +50,7 @@ notify = "8" # the file-tailer converters can leave it out. AgentEye's server imports Claude # Code / Codex transcripts with these converters, and its sqlx links a different # libsqlite3-sys — two crates linking `sqlite3` cannot share one build. -rusqlite = { version = "0.42", features = ["bundled"], optional = true } +rusqlite = { version = "0.43", features = ["bundled"], optional = true } # OpenClaw 2026.9.6+ stores a large transcript event zstd-compressed in # `event_zstd` and leaves `event_json` NULL. A pure-Rust decoder, for the same # reason rustls is chosen above: no C toolchain on the four cross-compiled legs.