Skip to content

Commit 9be6c0b

Browse files
committed
fix(ci): clone rolldown repo in cargo deny workflow
The rolldown directory is not a git submodule — it's an external repo cloned by the CI clone action. The deny workflow had `submodules: true` which was a no-op. Replace it with an explicit rolldown checkout at the pinned hash from .upstream-versions.json.
1 parent 808be2d commit 9be6c0b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/deny.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,16 @@ jobs:
3030
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3131
with:
3232
persist-credentials: false
33-
submodules: true
33+
34+
- name: Output rolldown hash
35+
id: upstream-versions
36+
run: node -e "console.log('ROLLDOWN_HASH=' + require('./packages/tools/.upstream-versions.json').rolldown.hash)" >> $GITHUB_OUTPUT
37+
38+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
39+
with:
40+
repository: rolldown/rolldown
41+
path: rolldown
42+
ref: ${{ steps.upstream-versions.outputs.ROLLDOWN_HASH }}
3443

3544
- uses: oxc-project/setup-rust@d286d43bc1f606abbd98096666ff8be68c8d5f57 # v1.0.0
3645
with:

0 commit comments

Comments
 (0)