Skip to content

Commit 2cd39d6

Browse files
authored
Merge pull request #157 from prombot/repo_sync
Synchronize common files from prometheus/prometheus
2 parents 7b94c23 + ed104dc commit 2cd39d6

5 files changed

Lines changed: 41 additions & 1 deletion

File tree

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
###
2+
# This file is synced from https://github.com/prometheus/prometheus
3+
###
14
version: 2
25
updates:
36
- package-ecosystem: "gomod"
@@ -17,6 +20,9 @@ updates:
1720
k8s.io:
1821
patterns:
1922
- "k8s.io/*"
23+
prometheus:
24+
patterns:
25+
- "github.com/prometheus/*"
2026
- package-ecosystem: "github-actions"
2127
directory: "/"
2228
schedule:
@@ -30,6 +36,7 @@ updates:
3036
- "github/codeql-action*"
3137
# Exclude configs synced from upstream prometheus/prometheus.
3238
exclude-paths:
39+
- .github/workflows/approve-workflows.yml
3340
- .github/workflows/container_description.yml
3441
- .github/workflows/golangci-lint.yml
3542
- .github/workflows/govulncheck.yml
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
###
3+
# This action is synced from https://github.com/prometheus/prometheus
4+
###
5+
name: Approve pending workflows
6+
7+
on:
8+
issue_comment:
9+
types: [created]
10+
11+
permissions: read-all
12+
13+
jobs:
14+
approve:
15+
if: >-
16+
github.event.issue.pull_request &&
17+
github.event.comment.body == '/workflow-approve' &&
18+
(github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community')
19+
runs-on: ubuntu-latest
20+
permissions:
21+
actions: write
22+
contents: read
23+
pull-requests: write
24+
steps:
25+
- uses: prometheus/promci/approve_workflows@370e8c15dcec50043cbe66f2f34633d9efc0a190 # v0.9.0
26+
with:
27+
github_token: ${{ github.token }}

.github/workflows/container_description.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
---
2+
###
3+
# This action is synced from https://github.com/prometheus/prometheus
4+
###
25
name: Push README to Docker Hub
36
on:
47
push:

.github/workflows/govulncheck.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
---
2+
###
3+
# This action is synced from https://github.com/prometheus/prometheus
4+
###
25
name: govulncheck
36
on:
47
pull_request:

Makefile.common

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_
6161
SKIP_GOLANGCI_LINT :=
6262
GOLANGCI_LINT :=
6363
GOLANGCI_LINT_OPTS ?=
64-
GOLANGCI_LINT_VERSION ?= v2.11.4
64+
GOLANGCI_LINT_VERSION ?= v2.12.2
6565
GOLANGCI_FMT_OPTS ?=
6666
# golangci-lint only supports linux, darwin and windows platforms on i386/amd64/arm64.
6767
# windows isn't included here because of the path separator being different.

0 commit comments

Comments
 (0)