Skip to content

Commit 800145f

Browse files
ci: enable caching for GoReleaser and ignore zizmor warning (#2709)
Enabled Go caching in the `docker` job of `checks.yml` by removing `cache: false`. Added a `zizmor` configuration file to ignore the `cache-poisoning` warning for this workflow, and updated the `zizmor` workflow to use this configuration. --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent afd73ce commit 800145f

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/checks.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ jobs:
158158
with:
159159
go-version-file: "go.mod"
160160
check-latest: true
161-
cache: false
162161
- uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
163162
- uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
164163
- name: Run GoReleaser

.github/workflows/zizmor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ jobs:
2323

2424
- name: Run zizmor 🌈
2525
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
26+
with:
27+
arguments: "--config .github/zizmor-config.yml"

.github/zizmor-config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
rules:
2+
cache-poisoning:
3+
ignore:
4+
- .github/workflows/checks.yml

0 commit comments

Comments
 (0)