Skip to content

Commit 8fbc978

Browse files
committed
chore(ci): harden workflows and bump packageManager to pnpm@11.1.1
1 parent 1c25dc5 commit 8fbc978

10 files changed

Lines changed: 195 additions & 690 deletions

.github/workflows/check-skills.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ jobs:
2424
check:
2525
name: Check for stale skills
2626
runs-on: ubuntu-latest
27+
timeout-minutes: 15
2728
steps:
2829
- name: Checkout
29-
uses: actions/checkout@v4
30+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
3031
with:
3132
fetch-depth: 0
3233

3334
- name: Setup Node
34-
uses: actions/setup-node@v4
35+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3536
with:
3637
node-version: 20
3738

.github/workflows/e2e-opportunistic-matrix.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
matrix-e2e:
2020
name: Matrix (${{ matrix.scenario }})
2121
runs-on: ubuntu-latest
22+
timeout-minutes: 45
2223
continue-on-error: true
2324
strategy:
2425
fail-fast: false
@@ -34,9 +35,10 @@ jobs:
3435
- react-toolchain-deploy
3536
steps:
3637
- name: Checkout
37-
uses: actions/checkout@v6.0.1
38+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3839
with:
3940
fetch-depth: 0
41+
persist-credentials: false
4042
- name: Setup Tools
4143
uses: tanstack/config/.github/setup@main
4244
- name: Install Playwright Chrome
@@ -47,7 +49,7 @@ jobs:
4749
run: pnpm nx run @tanstack/cli:test:e2e:matrix
4850
- name: Upload Playwright Report
4951
if: always()
50-
uses: actions/upload-artifact@v4
52+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5153
with:
5254
name: playwright-report-${{ matrix.scenario }}
5355
path: packages/cli/playwright-report

.github/workflows/notify-intent.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,20 @@ on:
2222
- 'docs/**'
2323
- 'src/**'
2424

25+
permissions:
26+
contents: read
27+
2528
jobs:
2629
notify:
2730
name: Notify TanStack Intent
2831
runs-on: ubuntu-latest
32+
timeout-minutes: 10
2933
steps:
3034
- name: Checkout
31-
uses: actions/checkout@v4
35+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
3236
with:
3337
fetch-depth: 2
38+
persist-credentials: false
3439

3540
- name: Collect changed files
3641
id: changes
@@ -39,7 +44,7 @@ jobs:
3944
echo "files=$FILES" >> "$GITHUB_OUTPUT"
4045
4146
- name: Dispatch to intent repo
42-
uses: peter-evans/repository-dispatch@v3
47+
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0
4348
with:
4449
token: ${{ secrets.INTENT_NOTIFY_TOKEN }}
4550
repository: TanStack/intent

.github/workflows/pr.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ jobs:
1717
test-unit:
1818
name: Test (Unit)
1919
runs-on: ubuntu-latest
20+
timeout-minutes: 30
2021
steps:
2122
- name: Checkout
22-
uses: actions/checkout@v6.0.1
23+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2324
with:
2425
fetch-depth: 0
26+
persist-credentials: false
2527
- name: Setup Tools
2628
uses: tanstack/config/.github/setup@main
2729
- name: Build
@@ -31,27 +33,31 @@ jobs:
3133
provenance:
3234
name: Provenance
3335
runs-on: ubuntu-latest
36+
timeout-minutes: 15
3437
steps:
3538
- name: Checkout
36-
uses: actions/checkout@v6.0.1
39+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3740
with:
3841
fetch-depth: 0
42+
persist-credentials: false
3943
- name: Check Provenance
40-
uses: danielroe/provenance-action@v0.1.1
44+
uses: danielroe/provenance-action@41bcc969e579d9e29af08ba44fcbfdf95cee6e6c # v0.1.1
4145
with:
4246
fail-on-downgrade: true
4347
test-e2e:
4448
name: Test (E2E Blocking)
4549
runs-on: ubuntu-latest
50+
timeout-minutes: 45
4651
steps:
4752
- name: Checkout
48-
uses: actions/checkout@v6.0.1
53+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4954
with:
5055
fetch-depth: 0
56+
persist-credentials: false
5157
- name: Setup Tools
5258
uses: tanstack/config/.github/setup@main
5359
- name: Get base and head commits for `nx affected`
54-
uses: nrwl/nx-set-shas@v4.4.0
60+
uses: nrwl/nx-set-shas@3e9ad7370203c1e93d109be57f3b72eb0eb511b1 # v4.4.0
5561
with:
5662
main-branch-name: main
5763
- name: Install Playwright Chrome

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ jobs:
2323
name: Release
2424
if: ${{ github.repository_owner == 'TanStack' && !contains(github.event.head_commit.message, '[skip ci]') }}
2525
runs-on: ubuntu-latest
26+
timeout-minutes: 45
2627
steps:
2728
- name: Checkout
28-
uses: actions/checkout@v6.0.1
29+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2930
with:
3031
fetch-depth: 0
3132
- name: Setup Tools

.github/workflows/validate-skills.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,26 @@ on:
1212
- 'skills/**'
1313
- '**/skills/**'
1414

15+
permissions:
16+
contents: read
17+
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
20+
cancel-in-progress: true
21+
1522
jobs:
1623
validate:
1724
name: Validate skill files
1825
runs-on: ubuntu-latest
26+
timeout-minutes: 15
1927
steps:
2028
- name: Checkout
21-
uses: actions/checkout@v4
29+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
30+
with:
31+
persist-credentials: false
2232

2333
- name: Setup Node
24-
uses: actions/setup-node@v4
34+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2535
with:
2636
node-version: 20
2737

.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+
timeout-minutes: 10
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19+
with:
20+
persist-credentials: false
21+
- name: Run zizmor
22+
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3
23+
with:
24+
advanced-security: false
25+
annotations: true

package.json

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "git",
66
"url": "git+https://github.com/TanStack/cli.git"
77
},
8-
"packageManager": "pnpm@10.24.0",
8+
"packageManager": "pnpm@11.1.1+sha512.d1fdf5f73c617b64fa1a56a81c3c8dfe0e966e33a6010aa256b517ae77be21d93e05affc0de1a83b0e4f29d569f68b446ae8f068cd7247c0bb3df0fb4d7bdf9a",
99
"type": "module",
1010
"scripts": {
1111
"cleanNodeModules": "rm -rf node_modules && pnpm -r exec rm -rf node_modules",
@@ -37,16 +37,5 @@
3737
"nx": "22.1.3",
3838
"semver": "^7.6.3",
3939
"typescript": "^6.0.2"
40-
},
41-
"pnpm": {
42-
"overrides": {
43-
"@tanstack/create-start": "workspace:*",
44-
"create-start-app": "workspace:*",
45-
"create-tanstack": "workspace:*",
46-
"create-tanstack-app": "workspace:*",
47-
"create-tsrouter-app": "workspace:*",
48-
"@tanstack/cli": "workspace:*",
49-
"@tanstack/create": "workspace:*"
50-
}
5140
}
5241
}

0 commit comments

Comments
 (0)