Skip to content

Commit 06db288

Browse files
Harden CI workflow per zizmor
- Add top-level 'permissions: contents: read' (fixes excessive-permissions) - Set 'persist-credentials: false' on actions/checkout (fixes artipacked) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 04238e5 commit 06db288

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/push.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
on: [push, pull_request]
22

33
name: CI
4+
5+
permissions:
6+
contents: read
7+
48
jobs:
59
test:
610
strategy:
@@ -13,6 +17,8 @@ jobs:
1317

1418
steps:
1519
- uses: actions/checkout@v6
20+
with:
21+
persist-credentials: false
1622
- name: Setup go
1723
uses: actions/setup-go@v6
1824
with:

0 commit comments

Comments
 (0)