Skip to content

Commit 2d7859e

Browse files
reberhardt7claude
andcommitted
fix: harden GitHub Actions workflows (zizmor)
- Add `permissions: {}` to test workflow to fix excessive-permissions - Upgrade actions/checkout to v6.0.2 and add persist-credentials: false - Remove npm cache from publish workflow to prevent cache-poisoning - Add dependabot cooldown configuration (auto-fix) - Disable secrets-outside-env rule via .github/zizmor.yml Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 32aae45 commit 2d7859e

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ updates:
55
directory: "/"
66
schedule:
77
interval: "daily"
8+
cooldown:
9+
default-days: 7
810
- package-ecosystem: "github-actions"
911
directory: "/"
1012
schedule:
1113
interval: "daily"
14+
cooldown:
15+
default-days: 7

.github/workflows/provenance.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ jobs:
2222
id-token: write
2323

2424
steps:
25-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
25+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
26+
with:
27+
persist-credentials: false
2628
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f #v6.1.0
2729
with:
2830
node-version: '22'
2931
registry-url: 'https://registry.npmjs.org'
30-
cache: npm
3132
scope: '@socketregistry'
3233
- run: npm install -g npm@latest
3334
- run: npm ci

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: tests
33

44
on: [pull_request, push]
55

6+
permissions: {}
7+
68
env:
79
FORCE_COLOR: 1
810

@@ -17,7 +19,9 @@ jobs:
1719
node: ['lts/*']
1820

1921
steps:
20-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
22+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
with:
24+
persist-credentials: false
2125
- name: Use Node.js ${{ matrix.node }}
2226
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f #v6.1.0
2327
with:

.github/zizmor.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
rules:
2+
secrets-outside-env:
3+
disable: true

0 commit comments

Comments
 (0)