Skip to content

Commit c6742a5

Browse files
authored
harden supply chain by adding dependabot cooldowns and goflag readonly (#92)
Signed-off-by: Eric Pickard <piceri@github.com>
1 parent ae48944 commit c6742a5

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ updates:
99
update-types:
1010
- "minor"
1111
- "patch"
12+
cooldown:
13+
default-days: 3
1214

1315
- package-ecosystem: "github-actions"
1416
directory: "/"
@@ -19,8 +21,17 @@ updates:
1921
update-types:
2022
- "minor"
2123
- "patch"
24+
cooldown:
25+
default-days: 3
2226

2327
- package-ecosystem: "docker"
2428
directory: "/"
2529
schedule:
2630
interval: "weekly"
31+
groups:
32+
minor-patch:
33+
update-types:
34+
- "minor"
35+
- "patch"
36+
cooldown:
37+
default-days: 3

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
build:
1313
name: build
1414
runs-on: ubuntu-latest
15+
env:
16+
GOFLAGS: "-mod=readonly"
1517
permissions:
1618
contents: read
1719
steps:
@@ -30,6 +32,8 @@ jobs:
3032
test:
3133
name: Test
3234
runs-on: ubuntu-latest
35+
env:
36+
GOFLAGS: "-mod=readonly"
3337
permissions:
3438
contents: read
3539
steps:

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
golangci-lint:
1313
name: lint
1414
runs-on: ubuntu-latest
15+
env:
16+
GOFLAGS: "-mod=readonly"
1517
permissions:
1618
contents: read
1719
steps:

0 commit comments

Comments
 (0)