From 3148c6ff226e18cdf88f9c2b8487e2e875911889 Mon Sep 17 00:00:00 2001 From: Doarakko Date: Sat, 2 May 2026 22:32:29 +0900 Subject: [PATCH] chore: group dependabot updates and pin actions to commit hashes - Add patch group for non-actions/terraform ecosystems - Group all GitHub Actions and Terraform providers into single groups - Pin GitHub Actions to commit hashes via pinact --- .github/dependabot.yml | 20 ++++++++++++++------ .github/workflows/build-and-lint.yml | 10 +++++----- .github/workflows/release.yml | 10 +++++----- 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 054cfc0..b3c6e24 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,11 +1,19 @@ version: 2 updates: - - package-ecosystem: github-actions - directory: / + - package-ecosystem: "github-actions" + directory: "/" schedule: - interval: monthly + interval: "monthly" + groups: + all-actions: + patterns: + - "*" - - package-ecosystem: gomod - directory: / + - package-ecosystem: "gomod" + directory: "/" schedule: - interval: monthly + interval: "monthly" + groups: + patch: + update-types: + - "patch" diff --git a/.github/workflows/build-and-lint.yml b/.github/workflows/build-and-lint.yml index 19602cf..d78a89e 100644 --- a/.github/workflows/build-and-lint.yml +++ b/.github/workflows/build-and-lint.yml @@ -7,10 +7,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Setup Go - uses: actions/setup-go@v6 + uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 with: go-version-file: go.mod cache: true @@ -21,13 +21,13 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Setup Go - uses: actions/setup-go@v6 + uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 with: go-version-file: go.mod cache: true - name: golangci-lint - uses: golangci/golangci-lint-action@v6 + uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 574d3d6..44a5b8b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,10 +32,10 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Setup Go - uses: actions/setup-go@v6 + uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 with: go-version-file: go.mod cache: true @@ -53,7 +53,7 @@ jobs: shasum -a 256 ${{ matrix.name }}.tar.gz > ${{ matrix.name }}.tar.gz.sha256 - name: Upload artifact - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: ${{ matrix.name }} path: dist/${{ matrix.name }}.tar.gz* @@ -63,10 +63,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Download artifacts - uses: actions/download-artifact@v7 + uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 with: path: artifacts merge-multiple: true