Open
Conversation
…te sync for python repos workflow
Katyaraa1
requested changes
Mar 31, 2026
Katyaraa1
left a comment
There was a problem hiding this comment.
We should probably rewrite this to a lambda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add org-wide Dependabot infrastructure: GitHub Actions workflows for automated vulnerability lifecycle management and private CodeArtifact package support, plus comprehensive documentation.
The webhook handler that drives real-time alert/PR triage is deployed as an AWS Lambda in the
infrarepo — this PR adds the supporting workflows and org-level configuration it depends on.Overview
graph TD subgraph webhook ["Org Webhook → AWS Lambda"] GH["GitHub Events"] --> Lambda["dependabot-webhook\n(AWS Lambda)"] Lambda -->|"dependabot_alert.created"| AlertHandler[Alert Handler] Lambda -->|"pull_request.opened"| PRHandler[PR Handler] Lambda -->|"pull_request.closed+merged"| MergeHandler[Merge Handler] end subgraph actions ["Slack + Linear + GitHub API"] AlertHandler -->|"post"| Slack["Slack\n(GHSA-keyed thread)"] AlertHandler -->|"create ticket"| Linear["Linear\n(GHSA in title)"] PRHandler -->|"reply in thread"| Slack PRHandler -->|"comment on ticket"| Linear PRHandler -->|"auto-merge / label"| GitHubAPI[GitHub API] MergeHandler -->|"reply: resolved"| Slack end subgraph infra [Infrastructure Workflows] Refresh["refresh_codeartifact_token\n(every 10h)"] -->|"rotates"| CASecret["Org Dependabot secret:\nCA_TOKEN"] Sync["sync_dependabot_config\n(daily)"] -->|"opens PRs"| DYml["dependabot.yml\n(per repo)"] endrefresh_codeartifact_token.yml— Rotates the CodeArtifact auth token every 10 hours and stores it as an org-level Dependabot secret (CA_TOKEN), keeping Dependabot able to resolve private packages likeamera-coreandamera-workflowsync_dependabot_config.yml— Syncs a canonicaldependabot.ymltemplate to every repo with a CodeArtifact-backedpyproject.toml, opening PRs (not direct pushes) for SOC2 compliance, with Slack + Linear notificationsdependabot-template.yml— Single source of truth for Dependabot config across Python repos (CodeArtifact registry, pip/docker/github-actions ecosystems)Contributes to AMR-1652
Risk Level
Rollback Plan
Revert this PR and remove the org webhook. The Lambda (deployed separately in the infra repo) is stateless — removing it simply stops Dependabot notifications and auto-merge. The refresh and sync workflows are new scheduled jobs — removing them stops token rotation and config syncing. No impact on application behavior.
PHI Impact
Testing