Skip to content

Commit 60683d0

Browse files
authored
Merge pull request #604 from yumemi-inc/improve/#602
ci(bun): bun install 時に --ignore-scripts を追加しセキュリティ対策
2 parents 3c88540 + 75c9b62 commit 60683d0

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/initialization/TOOL_VERSION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ labels: initialization
4545

4646
## `package.json` で管理する Node.js パッケージ
4747

48-
以下のツールは `package.json``devDependencies` でバージョンが指定され、`bun install` コマンドでインストールされます。(一部抜粋)
48+
以下のツールは `package.json``devDependencies` でバージョンが指定され、`bun install --ignore-scripts` コマンドでインストールされます。(一部抜粋)
4949

5050
- **cspell (Spell Checker)**:
5151
- 確認: `bun run cspell --version`

.github/workflows/wc-check-code-spell.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
install_args: "bun"
2828

2929
- name: Install dependencies
30-
run: bun install --frozen-lockfile
30+
run: bun install --frozen-lockfile --ignore-scripts
3131

3232
- name: Run spell check
3333
run: bun run cspell lint

docs/SPELL_CHECK.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Pull Request 作成時などに GitHub Actions によって自動的にスペル
8383
mise install
8484

8585
# パッケージのインストール
86-
bun install
86+
bun install --ignore-scripts
8787
```
8888

8989
インストールが終わったら、以下のコマンドを実行してプロジェクト全体のスペルチェックを行います。

tools/bootstrap.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ fi
5959
##
6060
##############################################################################
6161
echo ""
62-
print_step "bun install"
62+
print_step "bun install --ignore-scripts"
6363
if type bun >/dev/null 2>&1; then
64-
if bun install; then
65-
print_result 0 "bun install"
64+
if bun install --ignore-scripts; then
65+
print_result 0 "bun install --ignore-scripts"
6666
else
67-
print_result $? "bun install"
67+
print_result $? "bun install --ignore-scripts"
6868
fi
6969
else
70-
echo -e "${YELLOW}[!] bun install: Skip because it could not be found.${NC}"
70+
echo -e "${YELLOW}[!] bun install --ignore-scripts: Skip because it could not be found.${NC}"
7171
echo -e "${YELLOW}[!] This may be due to mise installation not completed.${NC}"
7272
fi
7373

0 commit comments

Comments
 (0)