Skip to content

Commit 80bcd7e

Browse files
authored
ci: harden workflow (#669)
1 parent 134ab52 commit 80bcd7e

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ jobs:
2828
with:
2929
node-version: lts/*
3030
registry-url: https://registry.npmjs.org/
31-
cache: "pnpm"
31+
# disable cache, to avoid cache poisoning (https://docs.zizmor.sh/audits/#cache-poisoning)
32+
33+
- name: Disallow installation scripts
34+
run: yq '.onlyBuiltDependencies = []' -i pnpm-workspace.yaml
3235

3336
- name: Install deps
3437
run: pnpm install

.github/workflows/release-continuous.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ jobs:
1717
- uses: actions/setup-node@v4
1818
with:
1919
node-version: lts/*
20-
cache: pnpm
20+
# disable cache, to avoid cache poisoning (https://docs.zizmor.sh/audits/#cache-poisoning)
21+
22+
- name: Disallow installation scripts
23+
run: yq '.onlyBuiltDependencies = []' -i pnpm-workspace.yaml
2124

2225
- name: Install dependencies
2326
run: pnpm install

.github/workflows/release-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
3535
- name: Create Release for Tag
3636
id: release_tag
37-
uses: yyx990803/release-tag@master
37+
uses: yyx990803/release-tag@8cccf7c5aa332d71d222df46677f70f77a8d2dc0 # v1.0.0
3838
env:
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4040
with:

0 commit comments

Comments
 (0)