Skip to content

Commit ecf77b5

Browse files
committed
ci: add zizmor workflow
1 parent 929b653 commit ecf77b5

4 files changed

Lines changed: 43 additions & 9 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,21 @@ concurrency:
1010
cancel-in-progress: true
1111

1212
permissions:
13-
contents: read
13+
contents: write
1414

1515
jobs:
1616
autofix:
1717
name: autofix
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v5.0.0
21+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2222
with:
2323
fetch-depth: 0
24+
# autofix-ci commits formatting fixes back to this branch.
25+
persist-credentials: true
2426
- name: Setup Tools
25-
uses: tanstack/config/.github/setup@main
27+
uses: tanstack/config/.github/setup@8f433551298bae362c0e7a356f38c7d240c05d47 # main
2628
- name: Fix formatting
2729
run: pnpm format
2830
- name: Apply fixes

.github/workflows/pr.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,21 @@ name: PR
33
on:
44
pull_request:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
pr:
811
name: PR
912
runs-on: ubuntu-latest
1013
steps:
1114
- name: Checkout
12-
uses: actions/checkout@v5.0.0
15+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1316
with:
1417
fetch-depth: 0
18+
persist-credentials: false
1519
- name: Setup Tools
16-
uses: tanstack/config/.github/setup@main
20+
uses: tanstack/config/.github/setup@8f433551298bae362c0e7a356f38c7d240c05d47 # main
1721
- name: Run Build
1822
run: pnpm build
1923
- name: Run Tests

.github/workflows/update-tanstack-deps.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,20 @@ jobs:
1010
update-deps:
1111
name: Update TanStack Dependencies
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
1315
steps:
1416
- name: Git Checkout
15-
uses: actions/checkout@v4
17+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1618
with:
17-
token: ${{ secrets.GITHUB_TOKEN }}
19+
# This scheduled job commits dependency updates back to the branch.
20+
persist-credentials: true
1821

1922
- name: Setup pnpm
20-
uses: pnpm/action-setup@v4
23+
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
2124

2225
- name: Setup Node
23-
uses: actions/setup-node@v4
26+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
2427
with:
2528
node-version-file: .nvmrc
2629
cache: pnpm

.github/workflows/zizmor.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: GitHub Actions Security Analysis
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: ['**']
8+
9+
permissions: {}
10+
11+
jobs:
12+
zizmor:
13+
name: Run zizmor
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18+
with:
19+
persist-credentials: false
20+
21+
- name: Run zizmor
22+
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3
23+
with:
24+
advanced-security: false
25+
annotations: true

0 commit comments

Comments
 (0)