ReviewOS

also looking at this

craft-native/craft

ci: pin the pantry action to a commit

#45
Closed chris wants to merge ci/pin-pantry-action into main
7 files +35 -15
.github/workflows/README.mdmodified+20-0
Changes to .github/workflows/README.md
@@ -11,3 +11,23 @@ This folder contains the following GitHub Actions:
1111
1212[CI]: ./workflows/ci.yml
1313[Release]: ./workflows/release.yml
14
15## Pinned actions
16
17`pantry-pm/pantry/packages/action` is pinned to a commit, not to `@main`.
18
19`@main` means an unrelated push to another repository decides whether every
20job here runs, and on 2026-08-20 that happened twice in one night: first the
21action stopped shipping its built `dist/index.js`, so every job failed at step
22one with `File not found`; then, after that was fixed upstream, the setup step
23began hanging — every job on both Linux and macOS sat on **Setup Pantry** until
24GitHub killed it at the six-hour ceiling.
25
26The pin is `ef37fca8440cdb483fb355fefa5ae3cc6e669a69` (pantry 0.11.36), the
27revision the last fully green run on `main` used.
28
29To bump it: change the SHA everywhere it appears under `.github/workflows/`,
30in one commit, and let CI prove the new revision before it lands. The same
31reasoning applies to the first-party Zig dependencies — see
32[`.github/actions/first-party-zig-deps/pins.env`](../actions/first-party-zig-deps/pins.env).
33
.github/workflows/benchmarks.ymlmodified+1-1
Changes to .github/workflows/benchmarks.yml
@@ -35,7 +35,7 @@ jobs:
3535 fetch-depth: 0
3636
3737 - name: Setup Zig
38 uses: pantry-pm/pantry/packages/action@main
38 uses: pantry-pm/pantry/packages/action@ef37fca8440cdb483fb355fefa5ae3cc6e669a69 # pantry 0.11.36
3939 - name: Install Linux dependencies
4040 run: |
4141 sudo apt-get update
.github/workflows/binary-size.ymlmodified+1-1
Changes to .github/workflows/binary-size.yml
@@ -49,7 +49,7 @@ jobs:
4949 fetch-depth: 0
5050
5151 - name: Setup Zig
52 uses: pantry-pm/pantry/packages/action@main
52 uses: pantry-pm/pantry/packages/action@ef37fca8440cdb483fb355fefa5ae3cc6e669a69 # pantry 0.11.36
5353 - name: Install Linux dependencies
5454 run: |
5555 sudo apt-get update
.github/workflows/ci.ymlmodified+7-7
Changes to .github/workflows/ci.yml
@@ -32,7 +32,7 @@ jobs:
3232 - uses: actions/checkout@v6
3333
3434 - name: Setup Pantry (provides Bun, Zig, etc.)
35 uses: pantry-pm/pantry/packages/action@main
35 uses: pantry-pm/pantry/packages/action@ef37fca8440cdb483fb355fefa5ae3cc6e669a69 # pantry 0.11.36
3636
3737 - name: Verify Zig installation
3838 run: eval "$(pantry env | sed -n '/^export /,$p')" && zig version
@@ -80,7 +80,7 @@ jobs:
8080 - uses: actions/checkout@v6
8181
8282 - name: Setup Pantry (provides Bun, Zig, etc.)
83 uses: pantry-pm/pantry/packages/action@main
83 uses: pantry-pm/pantry/packages/action@ef37fca8440cdb483fb355fefa5ae3cc6e669a69 # pantry 0.11.36
8484
8585 - name: Install dependencies
8686 run: bun install
@@ -116,7 +116,7 @@ jobs:
116116 - uses: actions/checkout@v6
117117
118118 - name: Setup Pantry (provides Bun, Zig, etc.)
119 uses: pantry-pm/pantry/packages/action@main
119 uses: pantry-pm/pantry/packages/action@ef37fca8440cdb483fb355fefa5ae3cc6e669a69 # pantry 0.11.36
120120
121121 - name: Install dependencies
122122 run: bun install
@@ -132,7 +132,7 @@ jobs:
132132 - uses: actions/checkout@v6
133133
134134 - name: Setup Pantry (provides Bun, Zig, etc.)
135 uses: pantry-pm/pantry/packages/action@main
135 uses: pantry-pm/pantry/packages/action@ef37fca8440cdb483fb355fefa5ae3cc6e669a69 # pantry 0.11.36
136136
137137 - name: Install dependencies
138138 run: bun install
@@ -156,7 +156,7 @@ jobs:
156156 - uses: actions/checkout@v6
157157
158158 - name: Setup Pantry (provides Bun, Zig, etc.)
159 uses: pantry-pm/pantry/packages/action@main
159 uses: pantry-pm/pantry/packages/action@ef37fca8440cdb483fb355fefa5ae3cc6e669a69 # pantry 0.11.36
160160
161161 - name: Install dependencies
162162 run: bun install
@@ -179,7 +179,7 @@ jobs:
179179 - uses: actions/checkout@v6
180180
181181 - name: Setup Pantry (provides Bun, Zig, etc.)
182 uses: pantry-pm/pantry/packages/action@main
182 uses: pantry-pm/pantry/packages/action@ef37fca8440cdb483fb355fefa5ae3cc6e669a69 # pantry 0.11.36
183183
184184 - name: Install dependencies
185185 run: bun install
@@ -228,7 +228,7 @@ jobs:
228228 fetch-depth: 0
229229
230230 - name: Setup Pantry (provides Bun, Zig, etc.)
231 uses: pantry-pm/pantry/packages/action@main
231 uses: pantry-pm/pantry/packages/action@ef37fca8440cdb483fb355fefa5ae3cc6e669a69 # pantry 0.11.36
232232
233233 - name: Install Dependencies
234234 run: bun install
.github/workflows/mobile-e2e.ymlmodified+2-2
Changes to .github/workflows/mobile-e2e.yml
@@ -29,7 +29,7 @@ jobs:
2929 - uses: actions/checkout@v6
3030
3131 - name: Setup Zig
32 uses: pantry-pm/pantry/packages/action@main
32 uses: pantry-pm/pantry/packages/action@ef37fca8440cdb483fb355fefa5ae3cc6e669a69 # pantry 0.11.36
3333 - name: Setup Xcode
3434 uses: maxim-lobanov/setup-xcode@v1
3535 with:
@@ -142,7 +142,7 @@ jobs:
142142 - uses: actions/checkout@v6
143143
144144 - name: Setup Zig
145 uses: pantry-pm/pantry/packages/action@main
145 uses: pantry-pm/pantry/packages/action@ef37fca8440cdb483fb355fefa5ae3cc6e669a69 # pantry 0.11.36
146146 - name: Setup Java
147147 uses: actions/setup-java@v4
148148 with:
.github/workflows/native-lifecycle.ymlmodified+1-1
Changes to .github/workflows/native-lifecycle.yml
@@ -52,7 +52,7 @@ jobs:
5252 - uses: actions/checkout@v6
5353
5454 - name: Setup Pantry (provides Bun)
55 uses: pantry-pm/pantry/packages/action@main
55 uses: pantry-pm/pantry/packages/action@ef37fca8440cdb483fb355fefa5ae3cc6e669a69 # pantry 0.11.36
5656
5757 - name: Install dependencies
5858 run: bun install --frozen-lockfile
.github/workflows/release.ymlmodified+3-3
Changes to .github/workflows/release.yml
@@ -30,7 +30,7 @@ jobs:
3030 fetch-depth: 0
3131
3232 - name: Setup Pantry (provides Bun, Zig, etc.)
33 uses: pantry-pm/pantry/packages/action@main
33 uses: pantry-pm/pantry/packages/action@ef37fca8440cdb483fb355fefa5ae3cc6e669a69 # pantry 0.11.36
3434
3535 - name: Install System Dependencies
3636 if: matrix.platform.deps != ''
@@ -199,7 +199,7 @@ jobs:
199199 # 2. Auto-packages binaries from zig-out/ into platform-named zips
200200 # 3. Creates/updates GitHub release with all artifacts + changelog
201201 - name: Publish & Release
202 uses: pantry-pm/pantry/packages/action@main
202 uses: pantry-pm/pantry/packages/action@ef37fca8440cdb483fb355fefa5ae3cc6e669a69 # pantry 0.11.36
203203 with:
204204 install: 'false'
205205 publish: 'zig'
@@ -232,7 +232,7 @@ jobs:
232232 fetch-depth: 0
233233
234234 - name: Setup Pantry (provides Bun, Zig, etc.)
235 uses: pantry-pm/pantry/packages/action@main
235 uses: pantry-pm/pantry/packages/action@ef37fca8440cdb483fb355fefa5ae3cc6e669a69 # pantry 0.11.36
236236 - name: Install Dependencies
237237 run: bun install
238238