From 575a1ed7aa7927a7c3366b3afdd062be19216073 Mon Sep 17 00:00:00 2001 From: cpanato Date: Mon, 13 Jan 2025 15:45:22 +0100 Subject: [PATCH] clean/update ci actions and add dependabot config Signed-off-by: cpanato --- .github/actions/prepare-k8s/action.yaml | 18 ++++++++---------- .github/dependabot.yml | 23 +++++++++++++++++++++++ .github/workflows/lint-test.yaml | 20 +++++++++----------- .github/workflows/release.yaml | 8 ++++---- 4 files changed, 44 insertions(+), 25 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/actions/prepare-k8s/action.yaml b/.github/actions/prepare-k8s/action.yaml index 4c80097c..9b4de03c 100644 --- a/.github/actions/prepare-k8s/action.yaml +++ b/.github/actions/prepare-k8s/action.yaml @@ -3,29 +3,27 @@ runs: using: "composite" steps: - name: Set up Helm - uses: azure/setup-helm@v4 + uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 with: - version: v3.14.4 + version: v3.16.4 # Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and # yamllint (https://github.com/adrienverge/yamllint) which require Python - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 with: - python-version: 3.7 + python-version: 3.9 - name: Set up chart-testing - uses: helm/chart-testing-action@v2.6.1 - with: - version: v3.10.1 + uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1 - name: Create kind cluster - uses: helm/kind-action@v1.9.0 + uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12.0 - name: Install kubectl - uses: azure/setup-kubectl@v4.0.0 + uses: azure/setup-kubectl@3e0aec4d80787158d308d7b364cb1b702e7feb7f # v4.0.0 with: - version: 'v1.28.8' + version: 'v1.30.8' id: install - name: Set up cert-manager diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..43f013fa --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,23 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + open-pull-requests-limit: 10 + groups: + actions: + update-types: + - "minor" + - "patch" + + - package-ecosystem: "github-actions" + directory: "./.github/actions/prepare-k8s" + schedule: + interval: "weekly" + open-pull-requests-limit: 10 + groups: + actions: + update-types: + - "minor" + - "patch" diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 4b7b2b25..fb85125b 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -6,26 +6,24 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 - name: Set up Helm - uses: azure/setup-helm@v4 + uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 with: - version: v3.14.4 + version: v3.16.4 # Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and # yamllint (https://github.com/adrienverge/yamllint) which require Python - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 with: - python-version: 3.7 + python-version: 3.9 - name: Set up chart-testing - uses: helm/chart-testing-action@v2.6.1 - with: - version: v3.10.1 + uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1 - name: Run chart-testing (list-changed) id: list-changed @@ -41,7 +39,7 @@ jobs: test-with-cassandra: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 @@ -52,7 +50,7 @@ jobs: test-with-allInOne: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 @@ -70,7 +68,7 @@ jobs: test-with-elasticsearch: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ad2214c7..bbabff29 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 @@ -20,9 +20,9 @@ jobs: git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - name: Install Helm - uses: azure/setup-helm@v1 + uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 with: - version: v3.4.1 + version: v3.16.4 - name: Add dependency chart repos run: | @@ -31,6 +31,6 @@ jobs: helm repo add bitnami https://charts.bitnami.com/bitnami - name: Run chart-releaser - uses: helm/chart-releaser-action@v1.1.0 + uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 # v1.6.0 env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"