Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
ci(deps): watch the Python, Java, PHP and Go SDK manifests
Yudhi Armyndharis5ef0f1f2282c
diff --git a/.github/dependabot.yml b/.github/dependabot.ymlindex abeb496b8..81f8a7687 100644--- a/.github/dependabot.yml+++ b/.github/dependabot.yml@@ -156,6 +156,46 @@ updates:- dependencies- javascript+ # The other SDKs ship runtime dependencies to their consumers (httpx, guzzle, gson), and their+ # published ranges admit whatever is current, so an advisory in one of them is a PR here, not a+ # surprise in a user's lockfile. These PRs touch sdk/**, so SDK CI gates each one. The Go client+ # depends on the standard library alone; its entry watches the toolchain directive.+ - package-ecosystem: pip+ directory: /sdk/python+ schedule:+ interval: weekly+ day: monday+ open-pull-requests-limit: 3+ labels:+ - dependencies++ - package-ecosystem: maven+ directory: /sdk/java+ schedule:+ interval: weekly+ day: monday+ open-pull-requests-limit: 3+ labels:+ - dependencies++ - package-ecosystem: composer+ directory: /sdk/php+ schedule:+ interval: weekly+ day: monday+ open-pull-requests-limit: 3+ labels:+ - dependencies++ - package-ecosystem: gomod+ directory: /sdk/go+ schedule:+ interval: weekly+ day: monday+ open-pull-requests-limit: 3+ labels:+ - dependencies+# All workflow action refs are pinned to commit SHAs (with a `# vX.Y.Z` comment). Dependabot# understands that form: it proposes the new SHA and rewrites the version comment, so the pins# stay current without ever floating on a mutable major tag.diff --git a/src/common/release-gate-parity.spec.ts b/src/common/release-gate-parity.spec.tsindex b2fbefbed..75a3e8fea 100644--- a/src/common/release-gate-parity.spec.ts+++ b/src/common/release-gate-parity.spec.ts@@ -276,6 +276,23 @@ describe('every npm tree is audited and kept current', () => {expect(audit.index).toBeLessThan(install);});+ // The clients that are not npm packages publish runtime dependencies of their own, and the audit steps+ // above cannot see those manifests, so an advisory in one is raised only by Dependabot.+ it.each([+ ['pip', 'sdk/python/pyproject.toml'],+ ['maven', 'sdk/java/pom.xml'],+ ['composer', 'sdk/php/composer.json'],+ ['gomod', 'sdk/go/go.mod'],+ ])('Dependabot updates the %s manifest %s', (ecosystem, manifest) => {+ const tracked = spawnSync('git', ['ls-files', '--', manifest], { cwd: root, encoding: 'utf8' }).stdout.trim();+ expect(tracked).toBe(manifest);+ const dependabot = yaml.load(fs.readFileSync(path.join(root, '.github', 'dependabot.yml'), 'utf8')) as {+ updates: Array<{ 'package-ecosystem': string; directory: string }>;+ };+ const watched = dependabot.updates.filter(u => u['package-ecosystem'] === ecosystem).map(u => u.directory);+ expect(watched).toContain(`/${path.posix.dirname(manifest)}`);+ });+it('Dependabot updates every tree', () => {const dependabot = yaml.load(fs.readFileSync(path.join(root, '.github', 'dependabot.yml'), 'utf8')) as {updates: Array<{ 'package-ecosystem': string; directory: string }>;