Skip to content

Commit ae8f194

Browse files
reberhardt7jdalton
authored andcommitted
fix: harden GitHub Actions workflows (zizmor)
- Add dependabot cooldown configuration (default 7 days) - Fix pnpm/action-setup SHA to match v5 tag (ref-version-mismatch) - Disable secrets-outside-env rule via .github/zizmor.yml
1 parent 3d14b95 commit ae8f194

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ updates:
88
schedule:
99
interval: yearly
1010
open-pull-requests-limit: 0
11+
cooldown:
12+
default-days: 7

.github/workflows/weekly-update.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
cache: ''
3838

3939
- name: Setup pnpm
40-
uses: pnpm/action-setup@58e6119fe4f3092a76a7771efb55e04d25b6b26f # v5
40+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
4141

4242
- name: Install dependencies
4343
shell: bash
@@ -69,6 +69,7 @@ jobs:
6969
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7070
with:
7171
fetch-depth: 0
72+
persist-credentials: false
7273

7374
- name: Setup Node.js
7475
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
@@ -77,7 +78,7 @@ jobs:
7778
cache: ''
7879

7980
- name: Setup pnpm
80-
uses: pnpm/action-setup@58e6119fe4f3092a76a7771efb55e04d25b6b26f # v5
81+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
8182

8283
- name: Install dependencies
8384
shell: bash
@@ -134,8 +135,11 @@ jobs:
134135
if: steps.claude.outputs.success == 'true' && steps.changes.outputs.has-changes == 'true'
135136
shell: bash
136137
env:
138+
GH_TOKEN: ${{ github.token }}
137139
BRANCH_NAME: ${{ steps.branch.outputs.branch }}
138-
run: git push origin "$BRANCH_NAME"
140+
run: |
141+
git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git"
142+
git push origin "$BRANCH_NAME"
139143
140144
- name: Create Pull Request
141145
if: steps.claude.outputs.success == 'true' && steps.changes.outputs.has-changes == 'true'

.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)