Skip to content

Commit ff91842

Browse files
committed
Remove configuration files
1 parent cc0dc8b commit ff91842

7 files changed

Lines changed: 128 additions & 119 deletions

.github/workflows/dependabot-campaign.lock.yml

Lines changed: 62 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/dependabot-campaign.md

Lines changed: 50 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,6 @@ on:
1313
required: false
1414
default: baseline
1515
type: string
16-
config-path:
17-
description: Path to the dependency operations config file.
18-
required: false
19-
default: campaign-config.yml
20-
type: string
21-
repo-allowlist-path:
22-
description: Path to the central repository allowlist file.
23-
required: false
24-
default: repo-allowlist.yml
25-
type: string
2616
project-sync:
2717
description: Enable project-board synchronization.
2818
required: false
@@ -45,6 +35,40 @@ tools:
4535
network:
4636
allowed: [defaults]
4737

38+
env:
39+
CAMPAIGN_PROJECT: Dependency Operations
40+
CAMPAIGN_REPOS: |
41+
org/api-service
42+
org/web-app
43+
org/worker-service
44+
CAMPAIGN_LABELS: |
45+
dependencies
46+
RISK_LABEL_LOW: risk:low
47+
RISK_LABEL_MEDIUM: risk:medium
48+
RISK_LABEL_HIGH: risk:high
49+
ROUTE_LABEL_AUTOMERGE: automerge:eligible
50+
ROUTE_LABEL_REVIEW: needs-human-review
51+
ROUTE_LABEL_SAFE_OUT: agent:safe-out
52+
ROUTE_LABEL_STALE: stale:dependency-pr
53+
RISK_KEYWORDS_HIGH: |
54+
auth
55+
crypto
56+
payment
57+
database
58+
orm
59+
framework
60+
terraform
61+
kubernetes
62+
docker
63+
RISK_KEYWORDS_LOW: |
64+
eslint
65+
prettier
66+
jest
67+
pytest
68+
docs
69+
STALE_DAYS: "7"
70+
SUMMARY_ISSUE_TITLE: Dependency Operations Summary
71+
4872
#observability:
4973
# otlp:
5074
# endpoint: ${{ secrets.OTEL_EXPORTER_OTLP_ENDPOINT }}
@@ -83,10 +107,12 @@ Do not create custom databases or external trackers.
83107

84108
Continuously reduce dependency risk and keep dependency remediation moving safely. Default to the lightweight path, and use campaign-style coordination only when project tracking or escalated routing adds value.
85109

86-
Use `dependency-source`, `mode`, `config-path`, `repo-allowlist-path`, `project-sync`, and `summary-issue` as operating hints. Keep rich policy in repository config files rather than expanding these inputs into a full policy schema.
110+
Use `dependency-source`, `mode`, `project-sync`, and `summary-issue` as runtime toggles. Treat this workflow file as the source of truth for both policy and enrolled repositories.
87111

88112
## Scope
89113

114+
Only operate on repositories listed in `CAMPAIGN_REPOS`.
115+
90116
Process dependency signals according to `dependency-source`:
91117

92118
- `auto`: prefer open PRs authored by `dependabot[bot]`; if none exist, process open dependency security alerts
@@ -104,17 +130,15 @@ When operating on security alerts without PRs:
104130

105131
## Labels
106132

107-
Always apply:
133+
Always apply labels from `CAMPAIGN_LABELS`.
108134

109-
- `dependencies`
110-
111-
Then exactly one:
135+
Then exactly one risk label:
112136

113137
- `risk:low`
114138
- `risk:medium`
115139
- `risk:high`
116140

117-
Optional:
141+
Optional routing labels:
118142

119143
- `automerge:eligible`
120144
- `needs-human-review`
@@ -123,6 +147,8 @@ Optional:
123147

124148
## Risk Rules
125149

150+
Use `RISK_KEYWORDS_HIGH` and `RISK_KEYWORDS_LOW` as classification hints.
151+
126152
Low:
127153

128154
- patch update
@@ -149,6 +175,10 @@ Apply `automerge:eligible` only when:
149175

150176
Never merge directly.
151177

178+
## Staleness
179+
180+
Mark dependency PRs stale after `STALE_DAYS` days without activity.
181+
152182
## Safe-Out Rules
153183

154184
Apply `agent:safe-out` if:
@@ -160,7 +190,7 @@ Apply `agent:safe-out` if:
160190

161191
## Project Sync
162192

163-
If Project "Dependency Operations" exists:
193+
If `project-sync` is true and Project `CAMPAIGN_PROJECT` exists:
164194

165195
- add PRs or alert-tracking items
166196
- update fields
@@ -180,7 +210,9 @@ Next Step: `[action]`
180210

181211
## Summary Issue
182212

183-
Create/update:
213+
If `summary-issue` is true, create or update the summary issue titled `SUMMARY_ISSUE_TITLE`.
214+
215+
Track:
184216

185217
Open PRs: `[count]`
186218
Open security alerts: `[count]`

.github/workflows/dependabot-repair-reusable.lock.yml

Lines changed: 13 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)