From 87f040f784c6983b5d6f2a419ad0dd68d4ab4a9b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 7 Aug 2026 00:41:43 +0000 Subject: [PATCH 1/5] chore(deps): bump actions/checkout from 4.2.1 to 7.0.1 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.1 to 7.0.1. - [Release notes](https://github.com/actions/checkout/releases) - [Commits](https://github.com/actions/checkout/compare/v4.2.1...v7.0.1) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/articles-changed-detection.yaml | 4 ++-- .github/workflows/blank.yml | 2 +- .github/workflows/chapter-1-hello.yaml | 2 +- .github/workflows/chapter-2-1-ci.yaml | 2 +- .github/workflows/chapter-2-2-cd.yaml | 2 +- .github/workflows/chapter-2-3-cd-action.yaml | 2 +- .github/workflows/chapter-3-1-context.yaml | 2 +- .github/workflows/chapter-3-2-artifacts.yaml | 4 ++-- .github/workflows/chapter-3-4-cache.yaml | 14 +++++++------- .github/workflows/chapter-3-6-permissions.yaml | 2 +- .github/workflows/chapter-3-7-secrets.yaml | 2 +- .github/workflows/chapter-4-1-containers.yaml | 2 +- .github/workflows/chapter-4-2-matrix.yaml | 2 +- .github/workflows/chapter-4-3-cache-restore.yaml | 2 +- .../workflows/chapter-5-1-reusable-e2e-test.yaml | 2 +- .../chapter-5-3-skips-if-no-changes-detected.yaml | 8 ++++---- .../chapter-5-4-rerun-only-failed-tests.yaml | 2 +- .github/workflows/ex-11-good-practices.yaml | 2 +- 18 files changed, 29 insertions(+), 29 deletions(-) diff --git a/.github/workflows/articles-changed-detection.yaml b/.github/workflows/articles-changed-detection.yaml index a9a78f5..7ca00df 100644 --- a/.github/workflows/articles-changed-detection.yaml +++ b/.github/workflows/articles-changed-detection.yaml @@ -32,7 +32,7 @@ jobs: projects: ${{ steps.set-matrix.outputs.projects }} steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 with: # Get the entire history for difference detection fetch-depth: 0 @@ -86,7 +86,7 @@ jobs: project: ${{ fromJson(needs.detect-changes.outputs.projects) }} steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 - name: Log Target Project Info run: | echo "==========================================================" diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 112cd34..dadabea 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -37,7 +37,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 # Runs a single command using the runners shell - name: Run a one-line script diff --git a/.github/workflows/chapter-1-hello.yaml b/.github/workflows/chapter-1-hello.yaml index 51fa4ec..e12f85f 100644 --- a/.github/workflows/chapter-1-hello.yaml +++ b/.github/workflows/chapter-1-hello.yaml @@ -49,7 +49,7 @@ jobs: # steps は job の中で実行されるタスクの集合体です。 steps: # 複雑な処理や頻繁に使用する処理は、アクションを定義して使用することができます。 - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 - name: Set up Go uses: actions/setup-go@v7 diff --git a/.github/workflows/chapter-2-1-ci.yaml b/.github/workflows/chapter-2-1-ci.yaml index 72f904d..1d035ce 100644 --- a/.github/workflows/chapter-2-1-ci.yaml +++ b/.github/workflows/chapter-2-1-ci.yaml @@ -33,7 +33,7 @@ jobs: steps: - name: チェックアウトする - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 - name: Go の環境をセットアップする uses: actions/setup-go@v7 diff --git a/.github/workflows/chapter-2-2-cd.yaml b/.github/workflows/chapter-2-2-cd.yaml index 4d2ed75..29110fe 100644 --- a/.github/workflows/chapter-2-2-cd.yaml +++ b/.github/workflows/chapter-2-2-cd.yaml @@ -34,7 +34,7 @@ jobs: working-directory: './chapters/go/hello-api/' steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 - name: Container registry に認証する run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin diff --git a/.github/workflows/chapter-2-3-cd-action.yaml b/.github/workflows/chapter-2-3-cd-action.yaml index 7fbe8e8..bc63256 100644 --- a/.github/workflows/chapter-2-3-cd-action.yaml +++ b/.github/workflows/chapter-2-3-cd-action.yaml @@ -32,7 +32,7 @@ jobs: working-directory: './chapters/go/hello-api/' steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 # https://github.com/marketplace/actions/build-and-push-docker-images - name: Login to Docker Hub diff --git a/.github/workflows/chapter-3-1-context.yaml b/.github/workflows/chapter-3-1-context.yaml index fecfa78..a593b5b 100644 --- a/.github/workflows/chapter-3-1-context.yaml +++ b/.github/workflows/chapter-3-1-context.yaml @@ -54,7 +54,7 @@ jobs: RUNNER_CONTEXT: ${{ toJson(runner) }} run: echo "$RUNNER_CONTEXT" - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 # steps コンテキストを利用するには、id を指定する必要があります id: checkout diff --git a/.github/workflows/chapter-3-2-artifacts.yaml b/.github/workflows/chapter-3-2-artifacts.yaml index 05693c8..101f54c 100644 --- a/.github/workflows/chapter-3-2-artifacts.yaml +++ b/.github/workflows/chapter-3-2-artifacts.yaml @@ -27,7 +27,7 @@ jobs: contents: read steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 - name: ビルド(ダミー) run: | @@ -49,7 +49,7 @@ jobs: contents: write # gh release upload に必要 steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 - name: 成果物のダウンロード uses: actions/download-artifact@v8 diff --git a/.github/workflows/chapter-3-4-cache.yaml b/.github/workflows/chapter-3-4-cache.yaml index fc807c9..e611d45 100644 --- a/.github/workflows/chapter-3-4-cache.yaml +++ b/.github/workflows/chapter-3-4-cache.yaml @@ -40,7 +40,7 @@ jobs: run: working-directory: './chapters/go/hello-api/' steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 # https://github.com/actions/setup-go#caching-dependency-files-and-build-outputs # const primaryKey = `setup-go-${platform}-${arch}-${linuxVersion}go-${versionSpec}-${fileHash}`; # fileHash のデフォルトは `go.mod` のハッシュ値だそうで @@ -63,7 +63,7 @@ jobs: run: working-directory: './chapters/go/hello-api/' steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 - uses: actions/setup-go@v7 with: go-version: '1.26' @@ -96,7 +96,7 @@ jobs: run: working-directory: './chapters/node/calc/' steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 # https://github.com/actions/setup-node/blob/v4/docs/advanced-usage.md#caching-packages-data # const keyPrefix = `node-cache-${platform}-${arch}-${packageManager}`; # const primaryKey = `${keyPrefix}-${fileHash}`; @@ -118,7 +118,7 @@ jobs: run: working-directory: './chapters/node/calc-yarn/' steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 - uses: actions/setup-node@v7 with: node-version: '26' @@ -137,7 +137,7 @@ jobs: run: working-directory: './chapters/node/calc-pnpm/' steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 # https://github.com/pnpm/action-setup#setup-pnpm # pnpm/action-setup 自体にもキャッシュ機能をサポートしているようです(デフォルト:false) - uses: pnpm/action-setup@v6 @@ -165,7 +165,7 @@ jobs: env: NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 # https://github.com/actions/setup-dotnet#caching-nuget-packages # const primaryKey = `dotnet-cache-${platform}-${fileHash}`; - uses: actions/setup-dotnet@v6 @@ -187,7 +187,7 @@ jobs: env: NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 - uses: actions/cache@v6 with: path: ~/.nuget/packages diff --git a/.github/workflows/chapter-3-6-permissions.yaml b/.github/workflows/chapter-3-6-permissions.yaml index 8f8f94f..c8a50da 100644 --- a/.github/workflows/chapter-3-6-permissions.yaml +++ b/.github/workflows/chapter-3-6-permissions.yaml @@ -30,7 +30,7 @@ jobs: issues: write # issue を作成するために必要な権限 steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 - name: GitHub CLI auth status run: gh auth status env: diff --git a/.github/workflows/chapter-3-7-secrets.yaml b/.github/workflows/chapter-3-7-secrets.yaml index f55a7d2..a5531f8 100644 --- a/.github/workflows/chapter-3-7-secrets.yaml +++ b/.github/workflows/chapter-3-7-secrets.yaml @@ -26,7 +26,7 @@ jobs: contents: read steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 - name: Show variables. env: VARIABLES_VALUE: ${{ vars.USER_VALUE }} diff --git a/.github/workflows/chapter-4-1-containers.yaml b/.github/workflows/chapter-4-1-containers.yaml index 2a47cd6..50e0c3d 100644 --- a/.github/workflows/chapter-4-1-containers.yaml +++ b/.github/workflows/chapter-4-1-containers.yaml @@ -37,7 +37,7 @@ jobs: --health-timeout 5s --health-retries 5 steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 - name: Connect postgres # ERROR: column d.daticulocale does not exist # This occurs when running "psql \l" from a v16 client to a v17 server. diff --git a/.github/workflows/chapter-4-2-matrix.yaml b/.github/workflows/chapter-4-2-matrix.yaml index 9c104d3..fe4bce0 100644 --- a/.github/workflows/chapter-4-2-matrix.yaml +++ b/.github/workflows/chapter-4-2-matrix.yaml @@ -26,7 +26,7 @@ jobs: working-directory: './chapters/go/hello-api/' steps: - name: Checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 - name: Ser up Go ${{ matrix.go-version }} uses: actions/setup-go@v7 with: diff --git a/.github/workflows/chapter-4-3-cache-restore.yaml b/.github/workflows/chapter-4-3-cache-restore.yaml index c237445..225c722 100644 --- a/.github/workflows/chapter-4-3-cache-restore.yaml +++ b/.github/workflows/chapter-4-3-cache-restore.yaml @@ -17,7 +17,7 @@ jobs: contents: read timeout-minutes: 5 steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 - uses: actions/cache/restore@v6 with: path: | diff --git a/.github/workflows/chapter-5-1-reusable-e2e-test.yaml b/.github/workflows/chapter-5-1-reusable-e2e-test.yaml index 35f158d..77b9847 100644 --- a/.github/workflows/chapter-5-1-reusable-e2e-test.yaml +++ b/.github/workflows/chapter-5-1-reusable-e2e-test.yaml @@ -22,7 +22,7 @@ jobs: contents: read timeout-minutes: 5 steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 - uses: pnpm/action-setup@v6 with: package_json_file: ${{ inputs.working-directory }}/package.json diff --git a/.github/workflows/chapter-5-3-skips-if-no-changes-detected.yaml b/.github/workflows/chapter-5-3-skips-if-no-changes-detected.yaml index 87ced7f..ffa31ae 100644 --- a/.github/workflows/chapter-5-3-skips-if-no-changes-detected.yaml +++ b/.github/workflows/chapter-5-3-skips-if-no-changes-detected.yaml @@ -24,7 +24,7 @@ jobs: backend: ${{ steps.changed_directory.outputs.backend }} renovate: ${{ steps.changed_directory.outputs.renovate }} steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 with: filter: blob:none # gitの履歴のみを取得する fetch-depth: 2 # ファイルの変更を取得するために必要 @@ -45,7 +45,7 @@ jobs: contents: read timeout-minutes: 5 steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 - run: echo "Frontend passes lint, tests, and build are listed here." backend: runs-on: ubuntu-latest @@ -55,7 +55,7 @@ jobs: contents: read timeout-minutes: 5 steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 - run: echo "Backend passes lint, tests, and build are listed here." renovate: runs-on: ubuntu-latest @@ -65,5 +65,5 @@ jobs: contents: read timeout-minutes: 5 steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 - run: echo "Configuration file changes that pass validation are listed here." diff --git a/.github/workflows/chapter-5-4-rerun-only-failed-tests.yaml b/.github/workflows/chapter-5-4-rerun-only-failed-tests.yaml index d86cc06..ae311a7 100644 --- a/.github/workflows/chapter-5-4-rerun-only-failed-tests.yaml +++ b/.github/workflows/chapter-5-4-rerun-only-failed-tests.yaml @@ -24,7 +24,7 @@ jobs: working-directory: ./packages/node steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 - uses: actions/setup-node@v7 - name: Set environment diff --git a/.github/workflows/ex-11-good-practices.yaml b/.github/workflows/ex-11-good-practices.yaml index a07e07b..99e765f 100644 --- a/.github/workflows/ex-11-good-practices.yaml +++ b/.github/workflows/ex-11-good-practices.yaml @@ -40,7 +40,7 @@ jobs: steps: # 8. アクションはコミットハッシュで固定する - name: Checkout - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # 9. Bashトレーシングオプションでログを詳細に出力する(ログに表示されている気がする) # 3.「actionlint」ですばやく構文エラーをチェックする From 87f21a3a87b5993ae1a2e5b83f7bfe207572d218 Mon Sep 17 00:00:00 2001 From: "A.suzuki" Date: Fri, 7 Aug 2026 11:11:11 +0900 Subject: [PATCH 2/5] fix: Do not specify anything below the major version. --- .github/dependabot.yml | 5 +++++ .github/workflows/articles-changed-detection.yaml | 4 ++-- .github/workflows/blank.yml | 2 +- .github/workflows/chapter-1-hello.yaml | 2 +- .github/workflows/chapter-2-1-ci.yaml | 2 +- .github/workflows/chapter-2-2-cd.yaml | 2 +- .github/workflows/chapter-2-3-cd-action.yaml | 2 +- .github/workflows/chapter-3-1-context.yaml | 2 +- .github/workflows/chapter-3-2-artifacts.yaml | 4 ++-- .github/workflows/chapter-3-4-cache.yaml | 14 +++++++------- .github/workflows/chapter-3-6-permissions.yaml | 2 +- .github/workflows/chapter-3-7-secrets.yaml | 2 +- .github/workflows/chapter-4-1-containers.yaml | 2 +- .github/workflows/chapter-4-2-matrix.yaml | 2 +- .github/workflows/chapter-4-3-cache-restore.yaml | 2 +- .../workflows/chapter-5-1-reusable-e2e-test.yaml | 2 +- .../chapter-5-3-skips-if-no-changes-detected.yaml | 8 ++++---- .../chapter-5-4-rerun-only-failed-tests.yaml | 2 +- 18 files changed, 33 insertions(+), 28 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e82f132..76998eb 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -14,3 +14,8 @@ updates: directory: "/" schedule: interval: "weekly" + ignore: + - dependency-name: '*' + update-types: + # - version-update:semver-minor + - version-update:semver-patch diff --git a/.github/workflows/articles-changed-detection.yaml b/.github/workflows/articles-changed-detection.yaml index 7ca00df..a9a78f5 100644 --- a/.github/workflows/articles-changed-detection.yaml +++ b/.github/workflows/articles-changed-detection.yaml @@ -32,7 +32,7 @@ jobs: projects: ${{ steps.set-matrix.outputs.projects }} steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: # Get the entire history for difference detection fetch-depth: 0 @@ -86,7 +86,7 @@ jobs: project: ${{ fromJson(needs.detect-changes.outputs.projects) }} steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 - name: Log Target Project Info run: | echo "==========================================================" diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index dadabea..112cd34 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -37,7 +37,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 # Runs a single command using the runners shell - name: Run a one-line script diff --git a/.github/workflows/chapter-1-hello.yaml b/.github/workflows/chapter-1-hello.yaml index e12f85f..51fa4ec 100644 --- a/.github/workflows/chapter-1-hello.yaml +++ b/.github/workflows/chapter-1-hello.yaml @@ -49,7 +49,7 @@ jobs: # steps は job の中で実行されるタスクの集合体です。 steps: # 複雑な処理や頻繁に使用する処理は、アクションを定義して使用することができます。 - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 - name: Set up Go uses: actions/setup-go@v7 diff --git a/.github/workflows/chapter-2-1-ci.yaml b/.github/workflows/chapter-2-1-ci.yaml index 1d035ce..72f904d 100644 --- a/.github/workflows/chapter-2-1-ci.yaml +++ b/.github/workflows/chapter-2-1-ci.yaml @@ -33,7 +33,7 @@ jobs: steps: - name: チェックアウトする - uses: actions/checkout@v7.0.1 + uses: actions/checkout@v7 - name: Go の環境をセットアップする uses: actions/setup-go@v7 diff --git a/.github/workflows/chapter-2-2-cd.yaml b/.github/workflows/chapter-2-2-cd.yaml index 29110fe..4d2ed75 100644 --- a/.github/workflows/chapter-2-2-cd.yaml +++ b/.github/workflows/chapter-2-2-cd.yaml @@ -34,7 +34,7 @@ jobs: working-directory: './chapters/go/hello-api/' steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 - name: Container registry に認証する run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin diff --git a/.github/workflows/chapter-2-3-cd-action.yaml b/.github/workflows/chapter-2-3-cd-action.yaml index bc63256..7fbe8e8 100644 --- a/.github/workflows/chapter-2-3-cd-action.yaml +++ b/.github/workflows/chapter-2-3-cd-action.yaml @@ -32,7 +32,7 @@ jobs: working-directory: './chapters/go/hello-api/' steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 # https://github.com/marketplace/actions/build-and-push-docker-images - name: Login to Docker Hub diff --git a/.github/workflows/chapter-3-1-context.yaml b/.github/workflows/chapter-3-1-context.yaml index a593b5b..fecfa78 100644 --- a/.github/workflows/chapter-3-1-context.yaml +++ b/.github/workflows/chapter-3-1-context.yaml @@ -54,7 +54,7 @@ jobs: RUNNER_CONTEXT: ${{ toJson(runner) }} run: echo "$RUNNER_CONTEXT" - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 # steps コンテキストを利用するには、id を指定する必要があります id: checkout diff --git a/.github/workflows/chapter-3-2-artifacts.yaml b/.github/workflows/chapter-3-2-artifacts.yaml index 101f54c..05693c8 100644 --- a/.github/workflows/chapter-3-2-artifacts.yaml +++ b/.github/workflows/chapter-3-2-artifacts.yaml @@ -27,7 +27,7 @@ jobs: contents: read steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 - name: ビルド(ダミー) run: | @@ -49,7 +49,7 @@ jobs: contents: write # gh release upload に必要 steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 - name: 成果物のダウンロード uses: actions/download-artifact@v8 diff --git a/.github/workflows/chapter-3-4-cache.yaml b/.github/workflows/chapter-3-4-cache.yaml index e611d45..fc807c9 100644 --- a/.github/workflows/chapter-3-4-cache.yaml +++ b/.github/workflows/chapter-3-4-cache.yaml @@ -40,7 +40,7 @@ jobs: run: working-directory: './chapters/go/hello-api/' steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 # https://github.com/actions/setup-go#caching-dependency-files-and-build-outputs # const primaryKey = `setup-go-${platform}-${arch}-${linuxVersion}go-${versionSpec}-${fileHash}`; # fileHash のデフォルトは `go.mod` のハッシュ値だそうで @@ -63,7 +63,7 @@ jobs: run: working-directory: './chapters/go/hello-api/' steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 - uses: actions/setup-go@v7 with: go-version: '1.26' @@ -96,7 +96,7 @@ jobs: run: working-directory: './chapters/node/calc/' steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 # https://github.com/actions/setup-node/blob/v4/docs/advanced-usage.md#caching-packages-data # const keyPrefix = `node-cache-${platform}-${arch}-${packageManager}`; # const primaryKey = `${keyPrefix}-${fileHash}`; @@ -118,7 +118,7 @@ jobs: run: working-directory: './chapters/node/calc-yarn/' steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 - uses: actions/setup-node@v7 with: node-version: '26' @@ -137,7 +137,7 @@ jobs: run: working-directory: './chapters/node/calc-pnpm/' steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 # https://github.com/pnpm/action-setup#setup-pnpm # pnpm/action-setup 自体にもキャッシュ機能をサポートしているようです(デフォルト:false) - uses: pnpm/action-setup@v6 @@ -165,7 +165,7 @@ jobs: env: NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 # https://github.com/actions/setup-dotnet#caching-nuget-packages # const primaryKey = `dotnet-cache-${platform}-${fileHash}`; - uses: actions/setup-dotnet@v6 @@ -187,7 +187,7 @@ jobs: env: NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 - uses: actions/cache@v6 with: path: ~/.nuget/packages diff --git a/.github/workflows/chapter-3-6-permissions.yaml b/.github/workflows/chapter-3-6-permissions.yaml index c8a50da..8f8f94f 100644 --- a/.github/workflows/chapter-3-6-permissions.yaml +++ b/.github/workflows/chapter-3-6-permissions.yaml @@ -30,7 +30,7 @@ jobs: issues: write # issue を作成するために必要な権限 steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 - name: GitHub CLI auth status run: gh auth status env: diff --git a/.github/workflows/chapter-3-7-secrets.yaml b/.github/workflows/chapter-3-7-secrets.yaml index a5531f8..f55a7d2 100644 --- a/.github/workflows/chapter-3-7-secrets.yaml +++ b/.github/workflows/chapter-3-7-secrets.yaml @@ -26,7 +26,7 @@ jobs: contents: read steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 - name: Show variables. env: VARIABLES_VALUE: ${{ vars.USER_VALUE }} diff --git a/.github/workflows/chapter-4-1-containers.yaml b/.github/workflows/chapter-4-1-containers.yaml index 50e0c3d..2a47cd6 100644 --- a/.github/workflows/chapter-4-1-containers.yaml +++ b/.github/workflows/chapter-4-1-containers.yaml @@ -37,7 +37,7 @@ jobs: --health-timeout 5s --health-retries 5 steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 - name: Connect postgres # ERROR: column d.daticulocale does not exist # This occurs when running "psql \l" from a v16 client to a v17 server. diff --git a/.github/workflows/chapter-4-2-matrix.yaml b/.github/workflows/chapter-4-2-matrix.yaml index fe4bce0..9c104d3 100644 --- a/.github/workflows/chapter-4-2-matrix.yaml +++ b/.github/workflows/chapter-4-2-matrix.yaml @@ -26,7 +26,7 @@ jobs: working-directory: './chapters/go/hello-api/' steps: - name: Checkout - uses: actions/checkout@v7.0.1 + uses: actions/checkout@v7 - name: Ser up Go ${{ matrix.go-version }} uses: actions/setup-go@v7 with: diff --git a/.github/workflows/chapter-4-3-cache-restore.yaml b/.github/workflows/chapter-4-3-cache-restore.yaml index 225c722..c237445 100644 --- a/.github/workflows/chapter-4-3-cache-restore.yaml +++ b/.github/workflows/chapter-4-3-cache-restore.yaml @@ -17,7 +17,7 @@ jobs: contents: read timeout-minutes: 5 steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 - uses: actions/cache/restore@v6 with: path: | diff --git a/.github/workflows/chapter-5-1-reusable-e2e-test.yaml b/.github/workflows/chapter-5-1-reusable-e2e-test.yaml index 77b9847..35f158d 100644 --- a/.github/workflows/chapter-5-1-reusable-e2e-test.yaml +++ b/.github/workflows/chapter-5-1-reusable-e2e-test.yaml @@ -22,7 +22,7 @@ jobs: contents: read timeout-minutes: 5 steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 - uses: pnpm/action-setup@v6 with: package_json_file: ${{ inputs.working-directory }}/package.json diff --git a/.github/workflows/chapter-5-3-skips-if-no-changes-detected.yaml b/.github/workflows/chapter-5-3-skips-if-no-changes-detected.yaml index ffa31ae..87ced7f 100644 --- a/.github/workflows/chapter-5-3-skips-if-no-changes-detected.yaml +++ b/.github/workflows/chapter-5-3-skips-if-no-changes-detected.yaml @@ -24,7 +24,7 @@ jobs: backend: ${{ steps.changed_directory.outputs.backend }} renovate: ${{ steps.changed_directory.outputs.renovate }} steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: filter: blob:none # gitの履歴のみを取得する fetch-depth: 2 # ファイルの変更を取得するために必要 @@ -45,7 +45,7 @@ jobs: contents: read timeout-minutes: 5 steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 - run: echo "Frontend passes lint, tests, and build are listed here." backend: runs-on: ubuntu-latest @@ -55,7 +55,7 @@ jobs: contents: read timeout-minutes: 5 steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 - run: echo "Backend passes lint, tests, and build are listed here." renovate: runs-on: ubuntu-latest @@ -65,5 +65,5 @@ jobs: contents: read timeout-minutes: 5 steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 - run: echo "Configuration file changes that pass validation are listed here." diff --git a/.github/workflows/chapter-5-4-rerun-only-failed-tests.yaml b/.github/workflows/chapter-5-4-rerun-only-failed-tests.yaml index ae311a7..d86cc06 100644 --- a/.github/workflows/chapter-5-4-rerun-only-failed-tests.yaml +++ b/.github/workflows/chapter-5-4-rerun-only-failed-tests.yaml @@ -24,7 +24,7 @@ jobs: working-directory: ./packages/node steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 - uses: actions/setup-node@v7 - name: Set environment From 17bfde74112441fd4ce11b8979fd0165b03db78c Mon Sep 17 00:00:00 2001 From: "A.suzuki" Date: Fri, 7 Aug 2026 11:16:31 +0900 Subject: [PATCH 3/5] fix: typo. --- .github/workflows/articles-changed-detection.yaml | 12 ++++++------ .../category-1/README.md | 2 +- .../category-2}/README.md | 2 +- .../category-2/scripts/generate-test-assets.sh | 0 .../category-3}/README.md | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) rename articles/{changed-detenctions => changed-detections}/category-1/README.md (69%) rename articles/{changed-detenctions/category-3 => changed-detections/category-2}/README.md (65%) rename articles/{changed-detenctions => changed-detections}/category-2/scripts/generate-test-assets.sh (100%) rename articles/{changed-detenctions/category-2 => changed-detections/category-3}/README.md (69%) diff --git a/.github/workflows/articles-changed-detection.yaml b/.github/workflows/articles-changed-detection.yaml index a9a78f5..3609af2 100644 --- a/.github/workflows/articles-changed-detection.yaml +++ b/.github/workflows/articles-changed-detection.yaml @@ -6,21 +6,21 @@ on: pull_request: paths: # Since variables cannot be used in `on.paths`, this part must be hardcoded. - - "articles/changed-detenctions/**" - - ".github/workflows/articles-changed-detection.yaml" + - 'articles/changed-detections/**' + - '.github/workflows/articles-changed-detection.yaml' workflow_dispatch: permissions: {} defaults: run: shell: bash - + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true env: - TARGET_BASE_DIR: "articles/changed-detenctions" + TARGET_BASE_DIR: 'articles/changed-detections' jobs: detect-changes: @@ -92,7 +92,7 @@ jobs: echo "==========================================================" echo "🚀 Processing Project: ${{ matrix.project }}" echo "==========================================================" - + - name: Find Target and Define Assets Path run: | # 1. First, search for the target @@ -121,7 +121,7 @@ jobs: - name: Build for ${{ matrix.project }} run: | echo ${{ env.TARGET_PATH }} - + - name: Run Test Assets Scripts (If exists) run: | SCRIPT_PATH="$TARGET_BASE_DIR/${{ matrix.project }}/scripts/generate-test-assets.sh" diff --git a/articles/changed-detenctions/category-1/README.md b/articles/changed-detections/category-1/README.md similarity index 69% rename from articles/changed-detenctions/category-1/README.md rename to articles/changed-detections/category-1/README.md index 3908034..f05212c 100644 --- a/articles/changed-detenctions/category-1/README.md +++ b/articles/changed-detections/category-1/README.md @@ -1,3 +1,3 @@ -# Categoty 1 +# Category 1 update at: 2026-07-16 21:47 diff --git a/articles/changed-detenctions/category-3/README.md b/articles/changed-detections/category-2/README.md similarity index 65% rename from articles/changed-detenctions/category-3/README.md rename to articles/changed-detections/category-2/README.md index 41e6e77..6677d4d 100644 --- a/articles/changed-detenctions/category-3/README.md +++ b/articles/changed-detections/category-2/README.md @@ -1,3 +1,3 @@ -# Categoty 3 +# # Category 2 update at: 2026-07-16 21:47 diff --git a/articles/changed-detenctions/category-2/scripts/generate-test-assets.sh b/articles/changed-detections/category-2/scripts/generate-test-assets.sh similarity index 100% rename from articles/changed-detenctions/category-2/scripts/generate-test-assets.sh rename to articles/changed-detections/category-2/scripts/generate-test-assets.sh diff --git a/articles/changed-detenctions/category-2/README.md b/articles/changed-detections/category-3/README.md similarity index 69% rename from articles/changed-detenctions/category-2/README.md rename to articles/changed-detections/category-3/README.md index 3908034..4bc2b95 100644 --- a/articles/changed-detenctions/category-2/README.md +++ b/articles/changed-detections/category-3/README.md @@ -1,3 +1,3 @@ -# Categoty 1 +# Category 3 update at: 2026-07-16 21:47 From 7efb87cb356e43fbd489cf27859162caacbed4e2 Mon Sep 17 00:00:00 2001 From: "A.suzuki" Date: Fri, 7 Aug 2026 13:20:31 +0900 Subject: [PATCH 4/5] fix: actionlint. --- .../workflows/articles-changed-detection.yaml | 13 ++++++------ .github/workflows/chapter-1-hello.yaml | 2 +- .github/workflows/chapter-2-1-ci.yaml | 2 +- .github/workflows/chapter-2-2-cd.yaml | 4 ++-- .github/workflows/chapter-2-3-cd-action.yaml | 4 ++-- .../workflows/chapter-3-3-control-flow.yaml | 20 +++++++++++-------- .github/workflows/chapter-5-1-e2e-test.yaml | 12 +++++------ .github/workflows/ex-11-good-practices.yaml | 6 +++--- .gitignore | 1 + 9 files changed, 35 insertions(+), 29 deletions(-) diff --git a/.github/workflows/articles-changed-detection.yaml b/.github/workflows/articles-changed-detection.yaml index 3609af2..a430f84 100644 --- a/.github/workflows/articles-changed-detection.yaml +++ b/.github/workflows/articles-changed-detection.yaml @@ -54,18 +54,19 @@ jobs: run: | # For manual execution (workflow_dispatch), target all projects under path/to/ if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then - PROJECTS=$(ls -d $TARGET_BASE_DIR/*/ | cut -d'/' -f3 | jq -R -s -c 'split("\n") | map(select(length > 0))') - echo "projects=$PROJECTS" >> $GITHUB_OUTPUT + PROJECTS=$(find "$TARGET_BASE_DIR" -mindepth 1 -maxdepth 1 -type d \ + | cut -d'/' -f3 | jq -R -s -c 'split("\n") | map(select(length > 0))') + echo "projects=$PROJECTS" >> "$GITHUB_OUTPUT" else # json array returned from the plugin (e.g. ["path/to/AAA", "path/to/BBB"]) CHANGED_DIRS='${{ steps.changed-files.outputs.all_changed_files }}' if [ "$CHANGED_DIRS" = "[]" ] || [ -z "$CHANGED_DIRS" ]; then - echo "projects=[]" >> $GITHUB_OUTPUT + echo "projects=[]" >> "$GITHUB_OUTPUT" else # Trim to "path/to/web" -> "web" instantly with jq PROJECTS=$(echo "$CHANGED_DIRS" | jq -c 'map(split("/") | .[2])') - echo "projects=$PROJECTS" >> $GITHUB_OUTPUT + echo "projects=$PROJECTS" >> "$GITHUB_OUTPUT" fi fi @@ -112,8 +113,8 @@ jobs: PROJECT_ASSETS_PATH="${{ github.workspace }}/$TARGET_DIR/assets" # Save each to environment variables - echo "TARGET_PATH=$TARGET" >> $GITHUB_ENV - echo "TEST_ASSETS_PATH=$PROJECT_ASSETS_PATH" >> $GITHUB_ENV + echo "TARGET_PATH=$TARGET" >> "$GITHUB_ENV" + echo "TEST_ASSETS_PATH=$PROJECT_ASSETS_PATH" >> "$GITHUB_ENV" echo "🎯 Target detected: $TARGET" echo "📂 Test assets will be generated at: $PROJECT_ASSETS_PATH" diff --git a/.github/workflows/chapter-1-hello.yaml b/.github/workflows/chapter-1-hello.yaml index 51fa4ec..f972f9a 100644 --- a/.github/workflows/chapter-1-hello.yaml +++ b/.github/workflows/chapter-1-hello.yaml @@ -11,7 +11,7 @@ on: branches: - main paths: - - './chapters/go/hello/**' + - 'chapters/go/hello/**' - '.github/workflows/chapter-1-hello.yaml' # issusのコメントでワークフローをトリガーする設定 diff --git a/.github/workflows/chapter-2-1-ci.yaml b/.github/workflows/chapter-2-1-ci.yaml index 72f904d..aaa7b58 100644 --- a/.github/workflows/chapter-2-1-ci.yaml +++ b/.github/workflows/chapter-2-1-ci.yaml @@ -8,7 +8,7 @@ on: branches: - main paths: - - './chapters/go/hello-api/**' + - 'chapters/go/hello-api/**' - '.github/workflows/chapter-2-1-ci.yaml' workflow_dispatch: diff --git a/.github/workflows/chapter-2-2-cd.yaml b/.github/workflows/chapter-2-2-cd.yaml index 4d2ed75..fea5009 100644 --- a/.github/workflows/chapter-2-2-cd.yaml +++ b/.github/workflows/chapter-2-2-cd.yaml @@ -8,8 +8,8 @@ on: branches: - main paths: - - './chapters/go/hello-api/**' - - './.github/workflows/chapter-2-2-cd.yaml' + - 'chapters/go/hello-api/**' + - '.github/workflows/chapter-2-2-cd.yaml' workflow_dispatch: permissions: {} diff --git a/.github/workflows/chapter-2-3-cd-action.yaml b/.github/workflows/chapter-2-3-cd-action.yaml index 7fbe8e8..7f030cf 100644 --- a/.github/workflows/chapter-2-3-cd-action.yaml +++ b/.github/workflows/chapter-2-3-cd-action.yaml @@ -7,8 +7,8 @@ on: branches: - main paths: - - './chapters/go/hello-api/**' - - './.github/workflows/chapter-2-3-cd-action.yaml' + - 'chapters/go/hello-api/**' + - '.github/workflows/chapter-2-3-cd-action.yaml' workflow_dispatch: permissions: {} diff --git a/.github/workflows/chapter-3-3-control-flow.yaml b/.github/workflows/chapter-3-3-control-flow.yaml index 3d02a6a..4ba9824 100644 --- a/.github/workflows/chapter-3-3-control-flow.yaml +++ b/.github/workflows/chapter-3-3-control-flow.yaml @@ -69,10 +69,12 @@ jobs: run: | echo "::notice::【手動テスト】ワークフローが正常に成功しました!" - echo "# 🟢 テスト成功通知" >> $GITHUB_STEP_SUMMARY - echo "手動実行されたジョブが正常に完了しました。" >> $GITHUB_STEP_SUMMARY - echo "- **ステータス:** SUCCESS" >> $GITHUB_STEP_SUMMARY - echo "- [ログを確認する](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> $GITHUB_STEP_SUMMARY + { + echo "# 🟢 テスト成功通知" + echo "手動実行されたジョブが正常に完了しました。" + echo "- **ステータス:** SUCCESS" + echo "- [ログを確認する](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" + } >> "$GITHUB_STEP_SUMMARY" # 【失敗(赤)のときの通知】 - name: Notify on Failure @@ -80,7 +82,9 @@ jobs: run: | echo "::error::【手動テスト】ワークフローが失敗しました。確認してください!" - echo "# ❌ テストエラー通知" >> $GITHUB_STEP_SUMMARY - echo "手動実行されたジョブでエラーを検知しました。" >> $GITHUB_STEP_SUMMARY - echo "- **ステータス:** FAILURE" >> $GITHUB_STEP_SUMMARY - echo "- [ログを確認する](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> $GITHUB_STEP_SUMMARY + { + echo "# ❌ テストエラー通知" + echo "手動実行されたジョブでエラーを検知しました。" + echo "- **ステータス:** FAILURE" + echo "- [ログを確認する](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" + } >> "$GITHUB_STEP_SUMMARY" diff --git a/.github/workflows/chapter-5-1-e2e-test.yaml b/.github/workflows/chapter-5-1-e2e-test.yaml index 360f882..702c7e9 100644 --- a/.github/workflows/chapter-5-1-e2e-test.yaml +++ b/.github/workflows/chapter-5-1-e2e-test.yaml @@ -5,10 +5,10 @@ name: Chapter 5 - E2E test (Call) on: pull_request: paths: - - ".github/workflows/e2e-test.yaml" - - ".github/workflows/reusable-e2e-test.yaml" - - ".github/actions/setup-playwright/action.yaml" - - "packages/e2e/**" + - '.github/workflows/e2e-test.yaml' + - '.github/workflows/reusable-e2e-test.yaml' + - '.github/actions/setup-playwright/action.yaml' + - 'packages/e2e/**' workflow_dispatch: permissions: {} @@ -17,6 +17,6 @@ jobs: e2e: permissions: contents: read - uses: ./.github/workflows/reusable-e2e-test.yaml + uses: ./.github/workflows/chapter-5-1-reusable-e2e-test.yaml with: - working-directory: "packages/e2e" + working-directory: 'packages/e2e' diff --git a/.github/workflows/ex-11-good-practices.yaml b/.github/workflows/ex-11-good-practices.yaml index 99e765f..a830499 100644 --- a/.github/workflows/ex-11-good-practices.yaml +++ b/.github/workflows/ex-11-good-practices.yaml @@ -12,8 +12,8 @@ on: workflow_dispatch: # 5. 不要なイベントで起動しないようにフィルタリングする pull_request: - paths: - - ".github/workflows/ex-11-good-practices.yaml" + paths: + - '.github/workflows/ex-11-good-practices.yaml' # ワークフローレベルでパーミッションをすべて無効化 permissions: {} @@ -47,4 +47,4 @@ jobs: - name: Run actionlint run: | set -x - docker run --rm -v "$(pwd):$(pwd)" -w "$(pwd)" rhysd/actionlint:1.7.3 + docker run --rm -v "$(pwd):$(pwd)" -w "$(pwd)" rhysd/actionlint:1.7.12 diff --git a/.gitignore b/.gitignore index 4dd6230..08cd44e 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,4 @@ bin/ .nuget/ **/dotnet/runfile-discovery/ **/cache.staging.json +.DS_Store From 459fa2501783f6de94a4cef329856c2726ac41e4 Mon Sep 17 00:00:00 2001 From: "A.suzuki" Date: Fri, 7 Aug 2026 13:23:14 +0900 Subject: [PATCH 5/5] fix: rename file. --- .../{chapter-3-5-trigger.yaml => chapter-3-5-triggers.yaml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{chapter-3-5-trigger.yaml => chapter-3-5-triggers.yaml} (96%) diff --git a/.github/workflows/chapter-3-5-trigger.yaml b/.github/workflows/chapter-3-5-triggers.yaml similarity index 96% rename from .github/workflows/chapter-3-5-trigger.yaml rename to .github/workflows/chapter-3-5-triggers.yaml index 22431a8..50c332a 100644 --- a/.github/workflows/chapter-3-5-trigger.yaml +++ b/.github/workflows/chapter-3-5-triggers.yaml @@ -7,7 +7,7 @@ on: pull_request: # 特定のファイルが変更されたときにトリガーする paths: - - '.github/workflows/chapter-3-5-trigger.yaml' + - '.github/workflows/chapter-3-5-triggers.yaml' push: # 特定のブランチに push したときにトリガーする branches: