From d45a88097505167ed61a634a0872bbdc20d90084 Mon Sep 17 00:00:00 2001 From: Doarakko Date: Sat, 2 May 2026 22:31:31 +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 5f2555c..1db3497 100644 --- a/.github/workflows/build-and-lint.yml +++ b/.github/workflows/build-and-lint.yml @@ -7,9 +7,9 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: actions/setup-go@v6 + - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 with: go-version-file: go.mod cache: true @@ -23,12 +23,12 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - 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 717e4f0..d3fc1a2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,9 +32,9 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: actions/setup-go@v6 + - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 with: go-version-file: go.mod cache: true @@ -54,7 +54,7 @@ jobs: shasum -a 256 ${{ matrix.name }}.tar.gz > ${{ matrix.name }}.tar.gz.sha256 - name: Upload artifact - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: name: ${{ matrix.name }} path: dist/${{ matrix.name }}.tar.gz* @@ -64,10 +64,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