Skip to content

Commit f7def8d

Browse files
tashianclaude
andcommitted
Fix zizmor security findings and add suppression config
- Fix template injection in docker-buildx-push.yml (cosign step) - Fix spoofable bot-conditions in dependabot-auto-merge.yml - Add .github/zizmor.yml with targeted ignores for intentional patterns (internal unpinned-uses, excessive-permissions on reusable callers) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 90feb43 commit f7def8d

3 files changed

Lines changed: 23 additions & 2 deletions

File tree

.github/workflows/dependabot-auto-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions: {}
1111
jobs:
1212
dependabot:
1313
runs-on: ubuntu-latest
14-
if: ${{ github.actor == 'dependabot[bot]' }}
14+
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
1515
permissions:
1616
contents: write
1717
pull-requests: write

.github/workflows/docker-buildx-push.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,8 @@ jobs:
6969
build-args: ${{ inputs.docker_build_args }}
7070
- name: Cosign
7171
id: cosign
72+
env:
73+
DOCKER_IMAGE: ${{ inputs.docker_image }}
74+
DIGEST: ${{ steps.build-and-push.outputs.digest }}
7275
run: |
73-
cosign sign -r ${{ inputs.docker_image }}@${{ steps.build-and-push.outputs.digest }} --yes
76+
cosign sign -r "${DOCKER_IMAGE}@${DIGEST}" --yes

.github/zizmor.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
rules:
2+
unpinned-uses:
3+
ignore:
4+
- code-scan.yml:12
5+
- goreleaser.yml:133
6+
- goreleaser.yml:141
7+
excessive-permissions:
8+
ignore:
9+
- ci.yml:1
10+
- ci.yml:19
11+
- ci.yml:35
12+
- code-scan.yml:10
13+
- goCI.yml:97
14+
- goCI.yml:111
15+
- goCI.yml:121
16+
- goCI.yml:133
17+
- goCI.yml:158
18+
- sync-winget-fork.yml:9

0 commit comments

Comments
 (0)