Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ permissions: {}

jobs:
actions-lint:
# zizmorはセキュリティ観点のチェックのため、PR時のみ実行する
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -26,6 +28,8 @@ jobs:
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
with:
min-severity: informational
# SARIFをCode Scanningへアップロードしない(security-events: write権限が不要になる)
advanced-security: false
lint:
runs-on: ubuntu-latest
permissions:
Expand All @@ -35,7 +39,7 @@ jobs:
with:
persist-credentials: false

- uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2
- uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2
with:
bun-version: "1.3.9"

Expand All @@ -57,7 +61,7 @@ jobs:
with:
persist-credentials: false

- uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2
- uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2
with:
bun-version: "1.3.9"

Expand All @@ -76,7 +80,7 @@ jobs:
with:
persist-credentials: false

- uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2
- uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2
with:
bun-version: "1.3.9"

Expand All @@ -98,7 +102,7 @@ jobs:
with:
persist-credentials: false

- uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2
- uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2
with:
bun-version: "1.3.9"

Expand All @@ -117,7 +121,7 @@ jobs:
with:
persist-credentials: false

- uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2
- uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2
with:
bun-version: "1.3.9"

Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ jobs:
with:
persist-credentials: false

- uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2
- uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2
with:
bun-version: "1.3.9"
# リリースワークフローではキャッシュ汚染を避けるためキャッシュを無効化する
no-cache: true

- name: Install dependencies
run: bun install --frozen-lockfile
Expand All @@ -72,17 +74,20 @@ jobs:
with:
persist-credentials: false

- uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2
- uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2
with:
bun-version: "1.3.9"
# リリースワークフローではキャッシュ汚染を避けるためキャッシュを無効化する
no-cache: true

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Build
run: bun run build

- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
# cacheを設定しておらず実際のキャッシュ復元は行わないため抑制する
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 # zizmor: ignore[cache-poisoning]
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
Expand Down
Loading