Skip to content

Commit a222aee

Browse files
authored
Update dependabot config (#304)
* Update dependabot config Add check for github-actions. Add missing exporters and instrumentation. Remove redundant comments. Change check to be weekly on Sunday to reduce load and churn. Sort alphanumerically. * Add check to Makefile for dependabot entry
1 parent 1f7546c commit a222aee

File tree

2 files changed

+171
-73
lines changed

2 files changed

+171
-73
lines changed

.github/dependabot.yml

+157-72
Original file line numberDiff line numberDiff line change
@@ -5,75 +5,160 @@
55

66
version: 2
77
updates:
8-
- package-ecosystem: "gomod" # See documentation for possible values
9-
directory: "/" # Location of package manifests
10-
schedule:
11-
interval: "daily"
12-
- package-ecosystem: "gomod" # See documentation for possible values
13-
directory: "/detectors/aws" # Location of package manifests
14-
schedule:
15-
interval: "daily"
16-
- package-ecosystem: "gomod" # See documentation for possible values
17-
directory: "/detectors/gcp" # Location of package manifests
18-
schedule:
19-
interval: "daily"
20-
- package-ecosystem: "gomod" # See documentation for possible values
21-
directory: "/tools" # Location of package manifests
22-
schedule:
23-
interval: "daily"
24-
- package-ecosystem: "gomod" # See documentation for possible values
25-
directory: "/exporters/metric/dogstatsd" # Location of package manifests
26-
schedule:
27-
interval: "daily"
28-
- package-ecosystem: "gomod" # See documentation for possible values
29-
directory: "/exporters/metric/datadog" # Location of package manifests
30-
schedule:
31-
interval: "daily"
32-
- package-ecosystem: "gomod" # See documentation for possible values
33-
directory: "/instrumentation/github.com/emicklei/go-restful" # Location of package manifests
34-
schedule:
35-
interval: "daily"
36-
- package-ecosystem: "gomod" # See documentation for possible values
37-
directory: "/instrumentation/github.com/gin-gonic/gin" # Location of package manifests
38-
schedule:
39-
interval: "daily"
40-
- package-ecosystem: "gomod" # See documentation for possible values
41-
directory: "/instrumentation/github.com/gorilla/mux" # Location of package manifests
42-
schedule:
43-
interval: "daily"
44-
- package-ecosystem: "gomod" # See documentation for possible values
45-
directory: "/instrumentation/github.com/labstack/echo" # Location of package manifests
46-
schedule:
47-
interval: "daily"
48-
- package-ecosystem: "gomod" # See documentation for possible values
49-
directory: "/instrumentation/go.mongodb.org/mongo-driver" # Location of package manifests
50-
schedule:
51-
interval: "daily"
52-
- package-ecosystem: "gomod" # See documentation for possible values
53-
directory: "/instrumentation/google.golang.org/grpc" # Location of package manifests
54-
schedule:
55-
interval: "daily"
56-
- package-ecosystem: "gomod" # See documentation for possible values
57-
directory: "/instrumentation/gopkg.in/macaron.v1" # Location of package manifests
58-
schedule:
59-
interval: "daily"
60-
- package-ecosystem: "gomod" # See documentation for possible values
61-
directory: "/instrumentation/runtime" # Location of package manifests
62-
schedule:
63-
interval: "daily"
64-
- package-ecosystem: "gomod" # See documentation for possible values
65-
directory: "/instrumentation/github.com/Shopify/sarama" # Location of package manifests
66-
schedule:
67-
interval: "daily"
68-
- package-ecosystem: "gomod" # See documentation for possible values
69-
directory: "/instrumentation/net/http" # Location of package manifests
70-
schedule:
71-
interval: "daily"
72-
- package-ecosystem: "gomod" # See documentation for possible values
73-
directory: "/instrumentation/net/http/httptrace" # Location of package manifests
74-
schedule:
75-
interval: "daily"
76-
- package-ecosystem: "gomod" # See documentation for possible values
77-
directory: "/instrumentation/github.com/bradfitz/gomemcache" # Location of package manifests
78-
schedule:
79-
interval: "daily"
8+
- package-ecosystem: "github-actions"
9+
# Workflow files stored in the
10+
# default location of `.github/workflows`
11+
directory: "/"
12+
schedule:
13+
interval: "weekly"
14+
day: "sunday"
15+
- package-ecosystem: "gomod"
16+
directory: "/"
17+
schedule:
18+
interval: "weekly"
19+
day: "sunday"
20+
- package-ecosystem: "gomod"
21+
directory: "/detectors/aws"
22+
schedule:
23+
interval: "weekly"
24+
day: "sunday"
25+
- package-ecosystem: "gomod"
26+
directory: "/detectors/gcp"
27+
schedule:
28+
interval: "weekly"
29+
day: "sunday"
30+
- package-ecosystem: "gomod"
31+
directory: "/exporters/metric/cortex"
32+
schedule:
33+
interval: "weekly"
34+
day: "sunday"
35+
- package-ecosystem: "gomod"
36+
directory: "/exporters/metric/cortex/example"
37+
schedule:
38+
interval: "weekly"
39+
day: "sunday"
40+
- package-ecosystem: "gomod"
41+
directory: "/exporters/metric/cortex/utils"
42+
schedule:
43+
interval: "weekly"
44+
day: "sunday"
45+
- package-ecosystem: "gomod"
46+
directory: "/exporters/metric/datadog"
47+
schedule:
48+
interval: "weekly"
49+
day: "sunday"
50+
- package-ecosystem: "gomod"
51+
directory: "/exporters/metric/dogstatsd"
52+
schedule:
53+
interval: "weekly"
54+
day: "sunday"
55+
- package-ecosystem: "gomod"
56+
directory: "/instrumentation/github.com/astaxie/beego"
57+
schedule:
58+
interval: "weekly"
59+
day: "sunday"
60+
- package-ecosystem: "gomod"
61+
directory: "/instrumentation/github.com/astaxie/beego/example"
62+
schedule:
63+
interval: "weekly"
64+
day: "sunday"
65+
- package-ecosystem: "gomod"
66+
directory: "/instrumentation/github.com/bradfitz/gomemcache"
67+
schedule:
68+
interval: "weekly"
69+
day: "sunday"
70+
- package-ecosystem: "gomod"
71+
directory: "/instrumentation/github.com/emicklei/go-restful"
72+
schedule:
73+
interval: "weekly"
74+
day: "sunday"
75+
- package-ecosystem: "gomod"
76+
directory: "/instrumentation/github.com/gin-gonic/gin"
77+
schedule:
78+
interval: "weekly"
79+
day: "sunday"
80+
- package-ecosystem: "gomod"
81+
directory: "/instrumentation/github.com/gocql/gocql"
82+
schedule:
83+
interval: "weekly"
84+
day: "sunday"
85+
- package-ecosystem: "gomod"
86+
directory: "/instrumentation/github.com/gocql/gocql/example"
87+
schedule:
88+
interval: "weekly"
89+
day: "sunday"
90+
- package-ecosystem: "gomod"
91+
directory: "/instrumentation/github.com/gorilla/mux"
92+
schedule:
93+
interval: "weekly"
94+
day: "sunday"
95+
- package-ecosystem: "gomod"
96+
directory: "/instrumentation/github.com/labstack/echo"
97+
schedule:
98+
interval: "weekly"
99+
day: "sunday"
100+
- package-ecosystem: "gomod"
101+
directory: "/instrumentation/github.com/Shopify/sarama"
102+
schedule:
103+
interval: "weekly"
104+
day: "sunday"
105+
- package-ecosystem: "gomod"
106+
directory: "/instrumentation/github.com/Shopify/sarama/example"
107+
schedule:
108+
interval: "weekly"
109+
day: "sunday"
110+
- package-ecosystem: "gomod"
111+
directory: "/instrumentation/go.mongodb.org/mongo-driver"
112+
schedule:
113+
interval: "weekly"
114+
day: "sunday"
115+
- package-ecosystem: "gomod"
116+
directory: "/instrumentation/google.golang.org/grpc"
117+
schedule:
118+
interval: "weekly"
119+
day: "sunday"
120+
- package-ecosystem: "gomod"
121+
directory: "/instrumentation/google.golang.org/grpc/example"
122+
schedule:
123+
interval: "weekly"
124+
day: "sunday"
125+
- package-ecosystem: "gomod"
126+
directory: "/instrumentation/gopkg.in/macaron.v1"
127+
schedule:
128+
interval: "weekly"
129+
day: "sunday"
130+
- package-ecosystem: "gomod"
131+
directory: "/instrumentation/host"
132+
schedule:
133+
interval: "weekly"
134+
day: "sunday"
135+
- package-ecosystem: "gomod"
136+
directory: "/instrumentation/net/http"
137+
schedule:
138+
interval: "weekly"
139+
day: "sunday"
140+
- package-ecosystem: "gomod"
141+
directory: "/instrumentation/net/http/example"
142+
schedule:
143+
interval: "weekly"
144+
day: "sunday"
145+
- package-ecosystem: "gomod"
146+
directory: "/instrumentation/net/http/httptrace"
147+
schedule:
148+
interval: "weekly"
149+
day: "sunday"
150+
- package-ecosystem: "gomod"
151+
directory: "/instrumentation/net/http/httptrace/example"
152+
schedule:
153+
interval: "weekly"
154+
day: "sunday"
155+
- package-ecosystem: "gomod"
156+
directory: "/instrumentation/runtime"
157+
schedule:
158+
interval: "weekly"
159+
day: "sunday"
160+
- package-ecosystem: "gomod"
161+
directory: "/tools"
162+
schedule:
163+
interval: "weekly"
164+
day: "sunday"

Makefile

+14-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $(TOOLS_DIR)/stringer: $(TOOLS_MOD_DIR)/go.mod $(TOOLS_MOD_DIR)/go.sum $(TOOLS_M
4040
cd $(TOOLS_MOD_DIR) && \
4141
go build -o $(TOOLS_DIR)/stringer golang.org/x/tools/cmd/stringer
4242

43-
precommit: license-check generate build lint test
43+
precommit: dependabot-check license-check generate build lint test
4444

4545
.PHONY: test-with-coverage
4646
test-with-coverage:
@@ -158,3 +158,16 @@ license-check:
158158
echo "license header checking failed:"; echo "$${licRes}"; \
159159
exit 1; \
160160
fi
161+
162+
.PHONY: dependabot-check
163+
dependabot-check:
164+
@result=$$( \
165+
for f in $$( find -type f -name go.mod -exec dirname {} \; | sed 's/^.\/\?/\//' ); \
166+
do grep -q "$$f" .github/dependabot.yml \
167+
|| echo "$$f"; \
168+
done; \
169+
); \
170+
if [ -n "$$result" ]; then \
171+
echo "missing go.mod dependabot check:"; echo "$$result"; \
172+
exit 1; \
173+
fi

0 commit comments

Comments
 (0)