Skip to content

Commit 6e550ae

Browse files
authored
ci: update renovate.json; disable setup-go cache (#49)
Signed-off-by: Tyler Gillson <[email protected]>
1 parent fbe1e36 commit 6e550ae

File tree

4 files changed

+75
-53
lines changed

4 files changed

+75
-53
lines changed

.github/workflows/bulwark-golicences.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ concurrency:
1111
jobs:
1212
golicense-pr-scan:
1313
runs-on: [self-hosted, Linux, X64, validator]
14+
container:
15+
image: gcr.io/spectro-images-public/golang:1.22-alpine
1416
steps:
15-
- name: install-git
16-
run: sudo apt-get install -y git
17-
1817
- name: checkout
1918
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
2019

2120
- name: Set up Go
2221
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5
2322
with:
23+
cache: false
2424
go-version-file: go.mod
2525

2626
- name: install-golicenses
27-
run: go install github.com/google/go-licenses@v1.0.0
27+
run: go install github.com/google/go-licenses@latest
2828

2929
- name: golicense-scan
3030
run: |

.github/workflows/bulwark-gosec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
- name: Set up Go
2323
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5
2424
with:
25-
go-version: '1.21'
25+
cache: false
26+
go-version-file: go.mod
2627

2728
- name: run-gosec-scan
2829
shell: sh

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- name: Set up Go
2222
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5
2323
with:
24+
cache: false
2425
go-version-file: go.mod
2526

2627
- name: Test

renovate.json

Lines changed: 68 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,69 @@
11
{
2-
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:base",
5-
"helpers:pinGitHubActionDigests",
6-
":gitSignOff"
7-
],
8-
"addLabels": ["dependencies"],
9-
"postUpdateOptions": [
10-
"gomodTidy",
11-
"gomodMassage"
12-
],
13-
"packageRules": [
14-
{
15-
"matchUpdateTypes": ["minor", "patch"],
16-
"matchCurrentVersion": "!/^0/",
17-
"automerge": true
18-
},
19-
{
20-
"matchManagers": ["gomod"],
21-
"addLabels": ["go"],
22-
"automerge": true
23-
},
24-
{
25-
"matchManagers": ["github-actions"],
26-
"addLabels": ["github_actions"],
27-
"automerge": true
28-
},
29-
{
30-
"matchManagers": ["dockerfile"],
31-
"addLabels": ["docker"],
32-
"automerge": true
33-
}
34-
],
35-
"regexManagers": [
36-
{
37-
"fileMatch": [
38-
"(^|\\/)Makefile$",
39-
"(^|\\/)Dockerfile",
40-
"(^|\\/).*\\.ya?ml$",
41-
"(^|\\/).*\\.toml$",
42-
"(^|\\/).*\\.sh$"
43-
],
44-
"matchStrings": [
45-
"# renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)\\s.*?_VERSION ?(\\??=|\\: ?) ?\\\"?(?<currentValue>.+?)?\\\"?\\s"
46-
]
47-
}
48-
]
49-
}
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:base",
5+
"helpers:pinGitHubActionDigests",
6+
":gitSignOff"
7+
],
8+
"addLabels": ["dependencies"],
9+
"postUpdateOptions": [
10+
"gomodTidy",
11+
"gomodMassage"
12+
],
13+
"packageRules": [
14+
{
15+
"matchUpdateTypes": ["pin", "pinDigest", "digest"],
16+
"addLabels": ["pin"],
17+
"automerge": true
18+
},
19+
{
20+
"matchUpdateTypes": ["minor", "patch"],
21+
"matchCurrentVersion": "!/^0/",
22+
"automerge": true
23+
},
24+
{
25+
"matchManagers": ["gomod"],
26+
"addLabels": ["go"],
27+
"automerge": true
28+
},
29+
{
30+
"matchManagers": ["github-actions"],
31+
"addLabels": ["github_actions"],
32+
"automerge": true
33+
},
34+
{
35+
"matchManagers": ["crossplane"],
36+
"addLabels": ["crossplane"],
37+
"automerge": true
38+
},
39+
{
40+
"matchManagers": ["dockerfile"],
41+
"addLabels": ["docker"],
42+
"automerge": true
43+
},
44+
{
45+
"matchManagers": ["kustomize"],
46+
"addLabels": ["kustomize"],
47+
"automerge": true
48+
},
49+
{
50+
"matchManagers": ["helm-values"],
51+
"addLabels": ["helm_values"],
52+
"automerge": true
53+
}
54+
],
55+
"regexManagers": [
56+
{
57+
"fileMatch": [
58+
"(^|\\/)Makefile$",
59+
"(^|\\/)Dockerfile",
60+
"(^|\\/).*\\.ya?ml$",
61+
"(^|\\/).*\\.toml$",
62+
"(^|\\/).*\\.sh$"
63+
],
64+
"matchStrings": [
65+
"# renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)\\s.*?_VERSION ?(\\??=|\\: ?) ?\\\"?(?<currentValue>.+?)?\\\"?\\s"
66+
]
67+
}
68+
]
69+
}

0 commit comments

Comments
 (0)