feat: wire Dependabot PR alerting via managed caller workflow - #15
Open
xnoto wants to merge 1 commit into
Open
Conversation
- gh-dependabot.tf also manages .github/workflows/dependabot-notify.yml in every active repo, calling the shared-workflows reusable workflow only when the pull_request actor is dependabot[bot] - distribute CLOUDFLARE_AUTH_CLIENT_* to all active repos (new active_github_repositories local; archived repos cannot receive secrets) - add GRAFANA_ALERTS_TOKEN with a documented placeholder until the operator-generated token is copied from the cluster secret
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.
Note
Stacked on #14 — merge that first; this PR retargets to
mainautomatically.What
Last leg of the Dependabot PR alerting pipeline:
gh-dependabot.tfnow also manages.github/workflows/dependabot-notify.ymlin every active repo — a thin caller that invokesshared-workflows/.github/workflows/dependabot-notify.ymlonly whengithub.actor == 'dependabot[bot]'.main.tf):CLOUDFLARE_AUTH_CLIENT_ID/CLOUDFLARE_AUTH_CLIENT_SECRETextended from 3 repos to all active repos (newactive_github_repositorieslocal — archived repos reject secret writes).GRAFANA_ALERTS_TOKENadded with a documented placeholder. The real value is the operator-generated token from kustomize-cluster#54; copy it intosecrets/secrets.yamlasgrafana_alerts_tokenafter that PR syncs:Merge order (full pipeline)
On apply: 11 caller workflow files + secret updates land across the org. Until the token is copied into SOPS and re-applied, the notify job fails loudly with a 401 — by design, visible in Actions logs.
Validation
make test— all hooks pass (validate, tflint, checkov, fmt, terraform_docs, gitleaks).jobs.ifneeds no${{ }}wrapper), actionlint-clean in the shared repo.