Skip to content

Commit 9775888

Browse files
authored
Merge branch 'main' into updatecli_main_scaffold_zizmor
2 parents 5887b0b + 7c0f6d9 commit 9775888

File tree

9 files changed

+88
-114
lines changed

9 files changed

+88
-114
lines changed

.github/workflows/updatecli.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
1+
---
12
name: Updatecli
23
on:
34
release:
45
workflow_dispatch:
56
schedule:
67
# Run at 12:00 every 14 days
78
- cron: 0 3 * * *
8-
99
jobs:
1010
updatecli:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: "Checkout"
1414
uses: "actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3" # v6.0.0
15-
1615
- name: "Setup updatecli"
17-
uses: "updatecli/updatecli-action@5ca36367fadc6ad94d590984fd9c696e783ec635" # v2.96.0
16+
uses: "updatecli/updatecli-action@v3.0.0" # v2.100.0
1817
with:
19-
version: "v0.114.0"
20-
18+
version: "v0.115.0"
2119
- name: "Set up Go"
2220
uses: "actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c" # v6.1.0
2321
with:
2422
go-version-file: "go.mod"
2523
id: go
26-
2724
- name: "Run updatecli"
2825
run: updatecli compose apply --clean-git-branches=true --experimental
2926
env:

.github/workflows/updatecli_test.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,24 @@
1+
---
12
name: Updatecli Test
2-
33
on:
44
pull_request:
5-
65
permissions:
76
contents: read
8-
97
jobs:
108
updatecli:
119
runs-on: ubuntu-latest
1210
steps:
1311
- name: "Checkout"
1412
uses: "actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3" # v6.0.0
15-
1613
- name: "Setup updatecli"
17-
uses: "updatecli/updatecli-action@5ca36367fadc6ad94d590984fd9c696e783ec635" # v2.96.0
14+
uses: "updatecli/updatecli-action@v3.0.0" # v2.100.0
1815
with:
19-
version: "v0.114.0"
20-
16+
version: "v0.115.0"
2117
- name: "Set up Go"
2218
uses: "actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c" # v6.1.0
2319
with:
2420
go-version-file: "go.mod"
2521
id: go
26-
2722
- name: "Test updatecli in dry-run mode"
2823
run: "updatecli compose diff"
2924
env:

.github/workflows/updatecli_update.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Updatecli - Update
23
on:
34
workflow_dispatch:
@@ -7,25 +8,21 @@ on:
78
push:
89
branches:
910
- main
10-
1111
jobs:
1212
updatecli:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: "Checkout"
1616
uses: "actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3" # v6.0.0
17-
1817
- name: "Setup updatecli"
19-
uses: "updatecli/updatecli-action@5ca36367fadc6ad94d590984fd9c696e783ec635" # v2.96.0
18+
uses: "updatecli/updatecli-action@v3.0.0" # v2.100.0
2019
with:
21-
version: "v0.113.0-rc.1"
22-
20+
version: "v0.115.0"
2321
- name: "Set up Go"
2422
uses: "actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c" # v6.1.0
2523
with:
2624
go-version-file: "go.mod"
2725
id: go
28-
2926
- name: "Run updatecli only on monitored pipelines"
3027
run: updatecli compose apply --clean-git-branches=true --labels="monitoring:enabled" --experimental
3128
env:
@@ -35,7 +32,6 @@ jobs:
3532
UPDATECLI_UDASH_API_URL: ${{ secrets.UPDATECLI_UDASH_API_URL }}
3633
UPDATECLI_UDASH_ACCESS_TOKEN: ${{ secrets.UPDATECLI_UDASH_ACCESS_TOKEN }}
3734
UPDATECLI_UDASH_URL: ${{ secrets.UPDATECLI_UDASH_URL }}
38-
3935
- name: "Run updatecli only on existing pipelines"
4036
run: updatecli compose apply --clean-git-branches=true --existing-only=true --experimental
4137
env:

updatecli-compose.yaml

Lines changed: 79 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,95 @@
1+
name: Default Policies
2+
3+
valuesinline:
4+
scm:
5+
enabled: true
6+
email: bot@updatecli.io
7+
user: updatecli
8+
owner: updatecli
9+
repository: releasepost
10+
username: "updatecli-bot"
11+
branch: main
12+
113
policies:
14+
- name: Update golangci-lint
15+
policy: ghcr.io/updatecli/policies/golangci-lint/githubaction:0.6.1@sha256:a6f5d1c9e809f7a1eb86d61d2f88be1d11bf1bb4a1dd094dc285425e7f737f3f
16+
17+
- name: Updatecli GitHub action
18+
policy: ghcr.io/updatecli/policies/autodiscovery/githubaction:0.2.1@sha256:cfddec11464cc09615135f0f1e069f00ad24d28edc7cc6a4e8224e04c3699008
19+
220
- name: Update Updatecli policies
321
policy: ghcr.io/updatecli/policies/updatecli/autodiscovery:0.6.1@sha256:71ce3cf69ebf8b7c25fa6131c51de2e13ceef9b832a4689b9d9422c7ce03bef1
4-
values:
5-
- updatecli/values.d/scm.yaml
6-
- updatecli/values.d/update-compose.yaml
22+
valuesinline:
23+
pipeline:
24+
labels:
25+
ecosystem: "updatecli"
26+
monitor: active
27+
28+
- name: Update Updatecli version in GitHub action
29+
policy: ghcr.io/updatecli/policies/updatecli/githubaction:0.7.0
30+
valuesinline:
31+
pipeline:
32+
labels:
33+
ecosystem: "updatecli"
34+
monitor: active
735

836
- name: Golang Version
937
policy: ghcr.io/updatecli/policies/golang/version:0.5.1@sha256:e288b0d8bac7b0454a96c587cd7bea8a29173a290c3b4437677b56487cfd127e
10-
values:
11-
- updatecli/values.d/scm.yaml
1238

1339
- name: Major Golang Module update
1440
policy: ghcr.io/updatecli/policies/autodiscovery/golang:0.11.1@sha256:0a66e83d6d5c7a122bb2c7e28eb27a34e16aa16450979a8bc323d52a7a453739
15-
values:
16-
- updatecli/values.d/scm.yaml
17-
- updatecli/values.d/golang_major.yaml
41+
valuesinline:
42+
name: "deps(golang): Bump Major version for Golang module"
43+
pipelineid: "golang/gomod/major"
44+
groupby: all
45+
spec:
46+
versionfilter:
47+
kind: semver
48+
pattern: majoronly
49+
ignore:
50+
- modules:
51+
# Ignoring the following modules as they do not publish release
52+
github.com/shurcooL/githubv4: ""
53+
only:
54+
# This repository contains other go.sum file used for testing.
55+
# So we want to be sure that we only update the one at the root of the repository
56+
- path: "go.mod"
1857

1958
- name: Minor Golang Module update
2059
policy: ghcr.io/updatecli/policies/autodiscovery/golang:0.11.1@sha256:0a66e83d6d5c7a122bb2c7e28eb27a34e16aa16450979a8bc323d52a7a453739
21-
values:
22-
- updatecli/values.d/scm.yaml
23-
- updatecli/values.d/golang_minor.yaml
60+
valuesinline:
61+
name: "deps(golang): Bump Minor version for Golang module"
62+
pipelineid: "golang/gomod/minor"
63+
groupby: individual
64+
65+
spec:
66+
versionfilter:
67+
kind: semver
68+
pattern: minoronly
69+
ignore:
70+
- modules:
71+
# Ignoring the following modules as they do not publish release
72+
github.com/shurcooL/githubv4: ""
73+
only:
74+
# This repository contains other go.sum file used for testing.
75+
# So we want to be sure that we only update the one at the root of the repository
76+
- path: "go.mod"
2477

2578
- name: Patch Golang Module update
2679
policy: ghcr.io/updatecli/policies/autodiscovery/golang:0.11.1@sha256:0a66e83d6d5c7a122bb2c7e28eb27a34e16aa16450979a8bc323d52a7a453739
27-
values:
28-
- updatecli/values.d/scm.yaml
29-
- updatecli/values.d/golang_patch.yaml
30-
31-
- name: Update golangci-lint
32-
policy: ghcr.io/updatecli/policies/golangci-lint/githubaction:0.6.1@sha256:a6f5d1c9e809f7a1eb86d61d2f88be1d11bf1bb4a1dd094dc285425e7f737f3f
33-
values:
34-
- updatecli/values.d/scm.yaml
80+
valuesinline:
81+
name: "deps: bump patch version for Golang module"
82+
pipelineid: "golang/gomod/patch"
3583

36-
- name: Updatecli GitHub action
37-
policy: ghcr.io/updatecli/policies/autodiscovery/githubaction:0.2.1@sha256:cfddec11464cc09615135f0f1e069f00ad24d28edc7cc6a4e8224e04c3699008
38-
values:
39-
- updatecli/values.d/scm.yaml
40-
41-
- name: Update Updatecli version in GitHub action
42-
policy: ghcr.io/updatecli/policies/updatecli/githubaction:0.7.0
43-
values:
44-
- updatecli/values.d/scm.yaml
45-
- updatecli/values.d/githubaction.yaml
84+
spec:
85+
versionfilter:
86+
kind: semver
87+
pattern: patch
88+
ignore:
89+
- modules:
90+
# Ignoring the following modules as they do not publish release
91+
github.com/shurcooL/githubv4: ""
92+
only:
93+
# This repository contains other go.sum file used for testing.
94+
# So we want to be sure that we only update the one at the root of the repository
95+
- path: "go.mod"

updatecli/values.d/golang_major.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

updatecli/values.d/golang_minor.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

updatecli/values.d/golang_patch.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

updatecli/values.d/scm.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

updatecli/values.d/update-compose.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)