From 12a1fdfa3b6d01da4291dd505f337aed2cb2b738 Mon Sep 17 00:00:00 2001 From: fabasoad Date: Wed, 15 Nov 2023 15:30:27 +0900 Subject: [PATCH] Bump pre-commit/pre-commit-hooks from 4.4.0 to 4.5.0 --- .github/workflows/pre-commit.yml | 3 ++- .github/workflows/publish-package.yml | 6 ++++-- .github/workflows/release.yml | 3 ++- .github/workflows/security.yml | 5 +++-- .github/workflows/sync-labels.yml | 3 ++- .github/workflows/unit-tests.yml | 6 ++++-- .github/workflows/update-license.yml | 6 ++++-- .pre-commit-config.yaml | 8 ++++---- .tool-versions | 2 +- 9 files changed, 26 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 963b1c9..31e95c0 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -19,7 +19,8 @@ jobs: env: SKIP: no-commit-to-branch, build, snyk-test, test steps: - - uses: actions/checkout@v4 + - name: Checkout ${{ github.repository }} + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Update git config diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index dfac4fc..d52fe0d 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -14,13 +14,15 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v4 + - name: Checkout ${{ github.repository }} + uses: actions/checkout@v4 - name: Get versions id: versions run: | java_version=$(grep -Eo 'java [a-z0-9.-]+' .tool-versions | cut -d'-' -f2) echo "java=$java_version" >> $GITHUB_OUTPUT - - uses: actions/setup-java@v3 + - name: Setup Java + uses: actions/setup-java@v3 with: java-version: ${{ steps.versions.outputs.java }} distribution: temurin diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 58bf6eb..38f9338 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,8 @@ jobs: name: Create release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout ${{ github.repository }} + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Get changelog diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index 97709b8..d7386e8 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -16,14 +16,15 @@ jobs: matrix: language: ['java'] steps: - - name: Checkout repository + - name: Checkout ${{ github.repository }} uses: actions/checkout@v4 - name: Get versions id: versions run: | java_version=$(grep -Eo 'java [a-z0-9.-]+' .tool-versions | cut -d'-' -f2) echo "java=$java_version" >> $GITHUB_OUTPUT - - uses: actions/setup-java@v3 + - name: Setup Java + uses: actions/setup-java@v3 with: java-version: ${{ steps.versions.outputs.java }} distribution: temurin diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 2c23565..0955b73 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -14,7 +14,8 @@ jobs: name: Sync labels runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout ${{ github.repository }} + uses: actions/checkout@v4 - name: Run Label Syncer uses: micnncim/action-label-syncer@v1 env: diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index b2d2949..c542b27 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -13,13 +13,15 @@ jobs: timeout-minutes: 5 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout ${{ github.repository }} + uses: actions/checkout@v4 - name: Get versions id: versions run: | java_version=$(grep -Eo 'java [a-z0-9.-]+' .tool-versions | cut -d'-' -f2) echo "java=$java_version" >> $GITHUB_OUTPUT - - uses: actions/setup-java@v3 + - name: Setup Java + uses: actions/setup-java@v3 with: java-version: ${{ steps.versions.outputs.java }} distribution: temurin diff --git a/.github/workflows/update-license.yml b/.github/workflows/update-license.yml index a771f33..9ea3937 100644 --- a/.github/workflows/update-license.yml +++ b/.github/workflows/update-license.yml @@ -9,10 +9,12 @@ jobs: run: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout ${{ github.repository }} + uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: FantasticFiasco/action-update-license-year@v3 + - name: Update LICENSE file + uses: FantasticFiasco/action-update-license-year@v3 with: token: ${{ secrets.GITHUB_TOKEN }} assignees: ${{ github.repository_owner }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d1deed3..7240f20 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,7 +31,7 @@ repos: - id: gitleaks stages: ["commit", "push"] - repo: https://github.com/fabasoad/pre-commit-snyk - rev: v0.4.0 + rev: v0.5.0 hooks: - id: snyk-test stages: ["push"] @@ -43,7 +43,7 @@ repos: args: ['-R', 'java-basic,java-empty,java-imports,java-unnecessary,java-unusedcode', '-dir', '.'] exclude: /test/ - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks - rev: v2.10.0 + rev: v2.11.0 hooks: - id: pretty-format-java args: [--autofix] @@ -54,12 +54,12 @@ repos: - id: markdownlint # Yaml - repo: https://github.com/adrienverge/yamllint - rev: v1.32.0 + rev: v1.33.0 hooks: - id: yamllint # Other - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-merge-conflict - id: check-json diff --git a/.tool-versions b/.tool-versions index e9b5322..852c5aa 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ java openjdk-20 -pre-commit 3.4.0 +pre-commit 3.5.0